Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

stop the scroll

Status
Not open for further replies.

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
 
try this:


var timeoutID;

function scroll() {

........
milliseconds
timeoutID = setTimeout("scroll()", 100);
}

// to stop it;
clearTimeout(timeoutID);
 
Sorry for my delay in answering
thx that worked great
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top