
Stop, Stop, Stop..... Please HELP (code included)
Q1: clearTimeout does not function in this example....
Why?
Q2: Is there anyway (outside of pulling the computer's power plug out
of the wall) to impliment a STOP() function similar to that in NN.
I can supply online example with full code if needed...
Thanks for the help,
Jeff
-------------------------------------
This and the IMG tag below are in a CHILD frame of a frameset.
function canvas_onload() {
if (parent.firstpic == 1) {
window.maindelay =
setTimeout("parent.getimages();",2);
parent.firstpic = 0;
} else {
window.maindelay =
setTimeout("parent.getimages();",parent.delay);
}
Quote:
}
My image that starts the show....
<img src="splash.jpg" onload="canvas_onload();">
--------------------------------------
This is in the PARENT frame
var maindelay = null; <== inits the var for the child frame code
function cleartimers() {
if (maindelay) {
clearTimeout(maindelay);
maindelay = null; <--- this is attempting to kill the loop too
}
Quote:
}
--------------------------------