背景色测试
<script> <BR>function setcolor() <BR>{ <BR>var colorString; <BR>do{ <BR>colorString="#"+Math.floor(Math.random()*Math.pow(2,24)).toString(16); <BR>} <BR>while (colorString.length<7); <br><br>document.getElementById("mydiv").style.backgroundColor=colorString; <br><br>setTimeout(setcolor,100); <BR>} <br><br></script>