颜色调配器问题

颜色调配器问题

这个颜色调配器 怎么运行不成功啊 我是从网上下载下来的  提示arse error: syntax error, unexpected T_RETURN, expecting ',' or ';' in D:\sou\php\admin\config\clorl.php on line 119
就是echo "<td width=".$cell_width." height=".$cell_height." bgcolor=#".$back_color."><a href=# onclick="return set_color('".$back_color."');"><img src=/blank.gif border=0 width=".$cell_width." height=".$cell_height."></a></td>n"; }  这段有问题 请个位大哥 大姐 高手帮帮忙

[复制到剪切板]
CODE:
<? 

$cell_height=10

$cell_width=10

$cell_height_n=24//3的倍数 

$cell_width_n=32

?> 

<
html

<
head

<
title>调色板</title

<
meta http-equiv="Content-Type" content="text/html; charset=gb2312"

<
script language="javascript"//设置当前颜色 

function set_color(the_color



document.color.current_color.value=the_color

return (
false); 



<\/
script

</
head

<
body bgcolor="#FFFFFF"

<? 

echo 
"<table width=".$cell_width*$cell_width_n." border=1 cellspacing=0 cellpadding=0>n"

for (
$i=0;$i<$cell_height_n;$i++) 



echo 
"<tr height=".$cell_height.">n"

for (
$j=0;$j<$cell_width_n;$j++) 



if (
floor($i/($cell_height_n/3))==0



if (
strlen(dechex($i*$cell_width_n+$j))==1



$back_color="00000".dechex($i*$cell_width_n+$j); 



else 



$back_color="0000".dechex($i*$cell_width_n+$j); 





if (
floor($i/($cell_height_n/3))==1



if (
strlen(dechex((($i-$cell_height_n/3)*$cell_width_n+$j)*256))==3



$back_color="000".dechex((($i-$cell_height_n/3)*$cell_width_n+$j)*256); 



else 



$back_color="00".dechex((($i-$cell_height_n/3)*$cell_width_n+$j)*256); 





if (
floor($i/($cell_height_n/3))==2



if (
strlen(dechex((($i-$cell_height_n*2/3)*$cell_width_n+$j)*256*256))==5



$back_color="0".dechex((($i-$cell_height_n*2/3)*$cell_width_n+$j)*256*256); 



else 



$back_color=dechex((($i-$cell_height_n*2/3)*$cell_width_n+$j)*256*256); 





echo 
"<td width=".$cell_width." height=".$cell_height." bgcolor=#".$back_color."><a href=# onclick="return set_color('".$back_color."');"><img src=/blank.gif border=0 width=".$cell_width." height=".$cell_height."></a></td>n"



echo 
"</tr>n"



echo 
"</table>n"

?> 

<
form name="color" 

当前颜色为<input type="text" name="current_color" size="6" maxlength="6"

</
form

</
body

</
html> ;

程序不错.几个 \ 被吃掉了

[复制到剪切板]
CODE:
<? 

$cell_height=10

$cell_width=10

$cell_height_n=24//3的倍数 

$cell_width_n=32

?> 

<
html

<
head

<
title>调色板</title

<
meta http-equiv="Content-Type" content="text/html; charset=gb2312"

<
script language="javascript"//设置当前颜色 

function set_color(the_color



document.color.current_color.value=the_color

return (
false); 



<\/
script

</
head

<
body bgcolor="#FFFFFF"

<? 

echo 
"<table width=".$cell_width*$cell_width_n." border=1 cellspacing=0 cellpadding=0>\n"

for (
$i=0;$i<$cell_height_n;$i++) 



echo 
"<tr height=".$cell_height.">\n"

for (
$j=0;$j<$cell_width_n;$j++) 



if (
floor($i/($cell_height_n/3))==0



if (
strlen(dechex($i*$cell_width_n+$j))==1



$back_color="00000".dechex($i*$cell_width_n+$j); 



else 



$back_color="0000".dechex($i*$cell_width_n+$j); 





if (
floor($i/($cell_height_n/3))==1



if (
strlen(dechex((($i-$cell_height_n/3)*$cell_width_n+$j)*256))==3



$back_color="000".dechex((($i-$cell_height_n/3)*$cell_width_n+$j)*256); 



else 



$back_color="00".dechex((($i-$cell_height_n/3)*$cell_width_n+$j)*256); 





if (
floor($i/($cell_height_n/3))==2



if (
strlen(dechex((($i-$cell_height_n*2/3)*$cell_width_n+$j)*256*256))==5



$back_color="0".dechex((($i-$cell_height_n*2/3)*$cell_width_n+$j)*256*256); 



else 



$back_color=dechex((($i-$cell_height_n*2/3)*$cell_width_n+$j)*256*256); 





echo 
"<td width=".$cell_width." height=".$cell_height." bgcolor=#".$back_color."><a href=# onclick=\"return set_color('".$back_color."');\"><img src=/blank.gif border=0 width=".$cell_width." height=".$cell_height."></a></td>\n"



echo 
"</tr>\n"



echo 
"</table>\n"

?> 

<
form name="color" 

当前颜色为<input type="text" name="current_color" size="6" maxlength="6"

</
form

</
body

</
html> ;

毕业了。。。

心若水寒  你要我怎么感谢你才好呢 我只能说是实在是太感谢你了 下次有机会我一定请你喝咖啡

还有一些小小的该正 由于我语言不是很好 不知哪位兄弟可否帮一下忙  就是点击文本筐才那个色块才会弹出来 再在弹出来的色筐里选颜色 当然颜色代码必须返回到刚才点击的文本筐里的