In order to improve the performance of the Spectral Amplitude Coding-Optical Code Division Multiple Access (SAC-OCDMA) system, a zero cross-correlation (ZCC) code named double weight multi-diagonal (DW-MD) is proposed with constant weight (CW) or variable weight (VW). Mathematical results illustrate that it is feasible to reduce the number of filters without sacrificing system performance by using the CW DW-MD code instead of the multi-diagonal (MD) code. And for the VW DW-MD code, the supportable number of users for lower code weight WL (3) at bit error rate (BER) of 10−3 (voice) is 43, medium code weight WM (4) at BER of 10−9 (data) is 29, and higher code weight WH (5) at BER of 10−12 (video) is 32. Finally, the analysis about the position of chips “1” is given, and the simulation setups show that the CW DW-MD code outperforms the MD code when Gaussian optical filter is used.