Can anyone tell me the solution to this:
I have text fading from white to blue using the setInterval function.
fontint = setInterval("changeColor",50)
... Then the rest of the code to change the color
It works fine but when it's finished fading I want setInterval to stop. It continues calling that function after it's finished.
Microsoft DHTML documentation says (about SetInterval):
"Returns an integer identifier representing the interval. Use this identifier to clear (stop) the interval."
I have tried setting fontint to null and zero but it makes no difference. I have also tried this:
fontint = setInterval("changeColor",0)
fontint = setInterval("",0)
Please any ideas would be very welcome.