rAllocate($image, 0,0,0); $colorList[] = ImageColorAllocate($image, 1,128,180); $colorList[] = ImageColorAllocate($image, 0,153,51); $colorList[] = ImageColorAllocate($image, 60,131,1); $colorList[] = ImageColorAllocate($image, 0,0,0); $fontcolor = ImageColorAllocate($image, 0,0,0); $gray = ImageColorAllocate($image, 245,245,245); $color = imagecolorallocate($image, 255,255,255); $color2 = imagecolorallocate($image, 255,0,0); imagefill($image, 0, 0, $gray); $space = 15; // 字符间距 if($i > 0) // 屏蔽第一帧 { for ($k = 0; $k < strlen($authstr); $k++) { $colorRandom = mt_rand(0,sizeof($colorList)-1); $float_top = rand(0,4); $float_left = rand(0,3); imagestring($image, 6, $space * $k, $top + $float_top, substr($authstr, $k, 1), $colorList[$colorRandom]); } } for ($k = 0; $k < 20; $k++) { &n