Hi
I have managed to scrap together some code to make some dynamically set text blink. I use Firefox to debug by javascript, and did get it working in firefox, however this is required to run in IE (not firefox) and it doesnt work in IE.
Can someone tell my why? the "detailed" error message i get from IE is:
"invalid property value" line 9 char 12
here is the function that is failing:
Tracey
Remember... True happiness is not getting what you want...
Its wanting what you have got!
I have managed to scrap together some code to make some dynamically set text blink. I use Firefox to debug by javascript, and did get it working in firefox, however this is required to run in IE (not firefox) and it doesnt work in IE.
Can someone tell my why? the "detailed" error message i get from IE is:
"invalid property value" line 9 char 12
here is the function that is failing:
Code:
var off_color = "black";
var blink_onoff = 1;
var blinkspeed= 500;
function blink(oncolor)
{
var on_color = oncolor;
if( blink_onoff == 1) {
document.getElementById("riskdiv").style.color = on_color;
blink_onoff = 0; //THIS IS LINE 9 - DONT SEE WHY IT WOULD FAIL
}
else {
document.getElementById("riskdiv").style.color = off_color;
blink_onoff = 1;
}
}
Tracey
Remember... True happiness is not getting what you want...
Its wanting what you have got!