Blink Background Color

[Total: 0    Average: 0/5]

This will toggle the background color from blue to white 3 times.

Body Code:

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
function blinkit(){
intrvl=0;
for(nTimes=0;nTimes<3;nTimes++){
intrvl += 200;
setTimeout("document.bgColor='#0000FF';",intrvl);
intrvl += 200;
setTimeout("document.bgColor='#FFFFFF';",intrvl);
   }
}
// End -->
</SCRIPT>


<FORM>
<INPUT TYPE="BUTTON" VALUE="Blink" onClick="blinkit()">
</FORM>

Times Viewed: 1

Leave a Reply

Your email address will not be published. Required fields are marked *