如何在后台动态的控制页面背景色????急!!!!!!!!!!!!!!!!1
如问题
[解决办法]
不用后台,js即可
- HTML code
<html><script language="javascript">var index=0;function changeColor(){ window.setTimeout("changeColor()",1000) if(index==0) { document.body.style.backgroundColor="#00FF00"; } if(index==1) { document.body.style.backgroundColor="#FF0000"; } if(index==2) { document.body.style.backgroundColor="#0000FF"; index=-1; } index++}window.onload=changeColor</script><body></body></html>
[解决办法]
不知道你要怎的
你在後置面背景色的代吧
this.Response.Write("<body><script language=\"javascript\" type=\"text/javascript\">document.body.bgColor = \"#123456\";</script></body>");
[解决办法]