system/zend/capatch/image.php二、在487行定义噪声,使其在浅色区域内随机显示颜色,与文本颜色分开,加入代码:
$noise_color = imagecolorallocate($img, rand(100,200), rand(100,200), rand(100,200));三、找到495行,代码如下,并将$text_color修改为$noise_color
 // generate noise
        for ($i=0; $i<$this->_dotNoiseLevel; $i++) {
           imagefilledellipse($img, mt_rand(0,$w), mt_rand(0,$h), 2, 2, $text_color);
        }
        for($i=0; $i<$this->_lineNoiseLevel; $i++) {
           imageline($img, mt_rand(0,$w), mt_rand(0,$h), mt_rand(0,$w), mt_rand(0,$h), $text_color);
        }
四、找到556行继续将$text_color修改为$noise_color
       // generate noise
        for ($i=0; $i<$this->_dotNoiseLevel; $i++) {
            imagefilledellipse($img2, mt_rand(0,$w), mt_rand(0,$h), 2, 2, $noise_color);
        }
        for ($i=0; $i<$this->_lineNoiseLevel; $i++) {
           imageline($img2, mt_rand(0,$w), mt_rand(0,$h), mt_rand(0,$w), mt_rand(0,$h), $noise_color);
        }
效果如下,附送快速注册弹出框效果:
有兴趣的同学还可以修改后面算法。 
                                                                        这家伙很懒,还没有设置简介