...

View Full Version : flashing cell background



pixelsketch
01-19-2006, 04:08 PM
I know flashing sucks, but I still need to know how to do this.

I'm not sure how the best way to pull this off is, Im guessing JS...

Let's say I want a 10x10 table, with 5 preselected cells having their background colors change every 1 second. Any ideas?

thanks

A1ien51
01-19-2006, 05:33 PM
what you need is setInterval

and

var elem = document.getElementById("theId");
elem.className= (elem.className=="white")?"red":"white";

Eric



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum