I know… I know… dont cringe, when you hear ‘flashing’ or blinking. There is a valid reason to need specific cells in my table to flash. That being said…
I need several cells, which I will choose, to flash their background color, back and forth. I found the following solution online:
pmBox.bgColor=’#FFFFFF’;
setInterval(“Timer()”, 300);
x=1;
function Timer() {
set=1;
if(x==0 && set==1) {
pmBox.bgColor=’#FFCC00′;
x=1;
set=0;
}
if(x==1 && set==1) {
pmBox.bgColor=’#FF6600′;
x=0;
set=0;
}
}
The script is then called by setting the TD’s id: (<td id=”pmBox”>)
However, this won’t work for multiple cells, since they cannot have the same ID. Any ideas on how to modify this so it can be used on several cells?
Thanks in advance, JS is not really my thing. I’m spending too much time trying to pick up PHP