Log In · Register

 
My code out of work for few day..., please help...
cur113
post Apr 7 2006, 01:03 PM
Post #1


Member
**

Group: Member
Posts: 19
Joined: Jul 2005
Member No: 172,704



This code will make a bar that it will change the colour(the colour code you input) continuously.
But now,it out of work...just like the picture below

how can i make the code work again..?

thanks for help and sorry for my poor english..

the code are here...
what are the problems of the code..?
CODE
<script language=JavaScript>
<!--
var blinkColors = new Array("000000","ffffff");
var blinkBorderColor = "black"
var blinkBorderWidth = 1;
var blinkRows = 1;
var blinkCols = 31;
var blinkWidth = 615;
var blinkRowHeight = 10;
var blinkRate = 8;
st=setTimeout;
document.write("<table id='blinkbox' width='" + blinkWidth +"' border = 0 cellspacing='" + blinkBorderWidth + "' cellpadding=0 bgcolor='" + blinkBorderColor +"'>");
for (r = 0; r < blinkRows; r++){
document.write("<TR>");
for (c = 0; c < blinkCols; c++){
document.write("<TD height='" + blinkRowHeight + "'></TD>");
}
document.write("</TR>");
}
document.write("</table>");
function blinkIt() {
changecell = Math.floor(Math.random() * (blinkCols * blinkRows));
changecolor = Math.floor(Math.random() * blinkColors.length);
bb = document.getElementById("blinkbox");
bbtd = bb.getElementsByTagName("td");
bbtd[changecell].style.backgroundColor = blinkColors[changecolor];
st('blinkIt()', blinkRate);
}
blinkIt();
//-->
</script>
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: