Mar 13, 2004 #1 ascikey Programmer Feb 18, 2004 127 GB hi all, i have one of these scrolling status bar messages but what command do i use to stop it. i.e. how do i stop the timer. Code: // call this function again after 100 milliseconds setTimeout("scroll()", 100); } thx
hi all, i have one of these scrolling status bar messages but what command do i use to stop it. i.e. how do i stop the timer. Code: // call this function again after 100 milliseconds setTimeout("scroll()", 100); } thx
Mar 13, 2004 #2 byam Programmer Oct 24, 2003 396 CA try this: var timeoutID; function scroll() { ........ milliseconds timeoutID = setTimeout("scroll()", 100); } // to stop it; clearTimeout(timeoutID); Upvote 0 Downvote
try this: var timeoutID; function scroll() { ........ milliseconds timeoutID = setTimeout("scroll()", 100); } // to stop it; clearTimeout(timeoutID);
Mar 17, 2004 Thread starter #3 ascikey Programmer Feb 18, 2004 127 GB Sorry for my delay in answering thx that worked great Upvote 0 Downvote