<font face="courier new, courier, mono" color="#0000ff" size="3"> <hr> <br><br><title>实现背景颜色的改变</title> <br><br><br><br> print("\n");<br> print("\n");<br> print("<title>改变背景颜色</title>\n");<br> print("\n");<br> /* <br> ** 第一次被浏览的时候<br> ** 使用白色为默认的颜色。<br> */<br> if($inputColor == "")<br> {<br> $inputColor = "FFFFFF";<br> }<br> /* <br> ** 使用背景颜色打开网页 <br> */<br> print("\n");<br> /* <br> ** 表单提交到本页 <br> */<br> print("<form action="%5C%2237.php%5C%22" method='\"post\"'>\n");<br> /* <br> ** 得到颜色的数据<br> */<br> print("<b>请填写HTML颜色代码:</b> ");<br> print("<input> print("TYPE=\"text\" ");<br> print("NAME=\"inputColor\" ");<br> print("VALUE=\"$inputColor\">\n");<br> /* <br> ** 提交的按钮 <br> */<br> print("<input> print("TYPE=\"submit\" ");<br> print("NAME=\"Submit_Button\" ");<br> print("VALUE=\"提交颜色\">\n");<br> print("</form>\n");<br> print("\n");<br> print("\n");<br>?><br><br> <hr> </font><br><img alt="" hspace="0" src="http://img.bitscn.com/upimg/php/20070123/11E54b1H603R44.jpg" style="max-width:90%" align="baseline" border="0">