Mar 13, 2004 #1 ascikey Programmer Joined Feb 18, 2004 Messages 127 Location 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 Joined Oct 24, 2003 Messages 396 Location 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 Joined Feb 18, 2004 Messages 127 Location GB Sorry for my delay in answering thx that worked great Upvote 0 Downvote