redhead
04-18-2003, 06:51 PM
greetings... back to newb i go ;)
this is an extremely simple script (just scrolls an iframe down), so, i was expecting it to work without hiccup. but... as is always the way, when you think its gonna work, it doesnt.
firstly, here's the script:function scrollDown() {
var scroll = setInterval("window.content.scrollBy(0,2);",100);
}
function stop() {
clearInterval(scroll);
}there we go.. nothing life changingly revolutionary about that. but... when stop() is called, the iframe doesnt stop scrolling down... i dont get an error... it just... carries on scrolling.
there must be something elementary i am missing... ive never managed to mess up a script this simple.
this is an extremely simple script (just scrolls an iframe down), so, i was expecting it to work without hiccup. but... as is always the way, when you think its gonna work, it doesnt.
firstly, here's the script:function scrollDown() {
var scroll = setInterval("window.content.scrollBy(0,2);",100);
}
function stop() {
clearInterval(scroll);
}there we go.. nothing life changingly revolutionary about that. but... when stop() is called, the iframe doesnt stop scrolling down... i dont get an error... it just... carries on scrolling.
there must be something elementary i am missing... ive never managed to mess up a script this simple.