<script>
alert("#"+Math.round(16777215*Math.random()).toString(16));
</script>
alert("#"+Math.round(16777215*Math.random()).toString(16));
</script>
解决方案 »
- for-loop, continue問題
- 页面中多个层的innerHTML包含的对象相同,但层的id唯一,如何通过层的id区别相同名称的对象??
- 这段代码为什么在firefox下版面会错乱?
- 求一个鼠标替代效果,谢谢!
- 关于html里title换行的问题(有关js)
- javascirpt怎么才能引用application变量
- 怎么判断checkbox为空,我的这个那里错了,谢谢
- 当选择下拉列表框不同的值,立刻执行一段代码填充下一个表格?急求 100分
- 怎样让页面弹出来
- 如何用jQuery在页面实现把一个table中的tb拖拽到另外一个table中,并且把数据添加到新的table中
- javascript脚本和css样式单是否有冲突?
- 谁有IE自带的结构化图形控件的完整使用说明?
<script>
setInterval('document.body.bgColor = "#"+Math.round(16777215*Math.random()).toString(16);',2000);
</script>
<font id="name">123</font>
document.name.color=******这么写不行吗?
<script>
setInterval('document.all("f001").style.color = "#"+Math.round(16777215*Math.random()).toString(16);}',500);
setInterval('document.all("f002").style.color = "#"+Math.round(16777215*Math.random()).toString(16);',600);
setInterval('document.all("f003").style.color = "#"+Math.round(16777215*Math.random()).toString(16);',700);
setInterval('document.all("f004").style.color = "#"+Math.round(16777215*Math.random()).toString(16);',800);
setInterval('document.all("f005").style.color = "#"+Math.round(16777215*Math.random()).toString(16);',900);
setInterval('document.all("f006").style.color = "#"+Math.round(16777215*Math.random()).toString(16);',1000);
setInterval('document.all("f007").style.color = "#"+Math.round(16777215*Math.random()).toString(16);',1100);
setInterval('document.all("f008").style.color = "#"+Math.round(16777215*Math.random()).toString(16);',1200);
setInterval('document.all("f009").style.color = "#"+Math.round(16777215*Math.random()).toString(16);',1300);
setInterval('document.all("f010").style.color = "#"+Math.round(16777215*Math.random()).toString(16);',1400);
setInterval('document.all("f011").style.color = "#"+Math.round(16777215*Math.random()).toString(16);',1500);
setInterval('document.all("f012").style.color = "#"+Math.round(16777215*Math.random()).toString(16);',1600);
setInterval('document.all("f013").style.color = "#"+Math.round(16777215*Math.random()).toString(16);',1700);
</script>
<DIV style="WIDTH: 260px; HEIGHT: 68px">
<P><EM><STRONG>
<FONT id = "f001" face=Arial color=#cc10ff size=3>B</FONT>
<FONT id = "f002" face=Arial color=#008000 size=3>e</FONT>
<FONT id = "f003" face=Arial color=#ff00ff size=3>s</FONT>
<FONT id = "f004" face=Arial color=#0000ff size=3>t</FONT>
<FONT id = "f005" face=Arial color=#00ffff size=3> </FONT>
<FONT id = "f006" face=Arial color=#ff9933 size=3>R</FONT>
<FONT id = "f007" face=Arial color=#00cc00 size=3>e</FONT>
<FONT id = "f008" face=Arial color=#008000 size=3>g</FONT>
<FONT id = "f009" face=Arial color=#800080 size=3>a</FONT>
<FONT id = "f010" face=Arial color=#ff99ff size=3>r</FONT>
<FONT id = "f011" face=Arial color=#66ccff size=3>d</FONT>
<FONT id = "f012" face=Arial color=#000000 size=3>s</FONT>
<FONT id = "f013" face=Arial color=#cc66ff size=3>! </FONT>
</STRONG></EM></P>