Background Color Test
<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>
< /body>
]<script>
function setcolor()
{
var colorString;
do{
colorString="#"+Math.floor(Math.random()*Math.pow(2,24)).toString(16);
}
while (colorString.length<7);
document.getElementById("mydiv").style.backgroundColor=colorString;
setTimeout(setcolor,100);
}
</script>