doodler
05-09-2003, 03:20 PM
Take a lok at this script:
function notifyofdone(){
intrvl=0;
for(nTimes=0;nTimes<3;nTimes++){
intrvl += 200;
setTimeout("document.donecell.bgColor='#FF00FF';",intrvl);
intrvl += 200;
setTimeout("document.donecell.bgColor='#FFFFFF';",intrvl);
}
}
It changes a cell's bgcolor (like a blinker) to 2 colors.
In the body tag i have a onload event that calls this function, when i load the page in my IE browser (not sure about anything else) i get a "document.donecell is null or not an object" error (where donecell is the id of the cell i want to change the bgcolor of). What am i doing wrong?
function notifyofdone(){
intrvl=0;
for(nTimes=0;nTimes<3;nTimes++){
intrvl += 200;
setTimeout("document.donecell.bgColor='#FF00FF';",intrvl);
intrvl += 200;
setTimeout("document.donecell.bgColor='#FFFFFF';",intrvl);
}
}
It changes a cell's bgcolor (like a blinker) to 2 colors.
In the body tag i have a onload event that calls this function, when i load the page in my IE browser (not sure about anything else) i get a "document.donecell is null or not an object" error (where donecell is the id of the cell i want to change the bgcolor of). What am i doing wrong?