[Javascript] Scrolling text

Iztok Polanic iztokp at amis.net
Wed Aug 7 02:47:04 CDT 2002


 Hi!
 
 I've written a code which scrolls text vertically. But now when a user
 triggers OnmouseOut event the scroller should stop where it is. How to do
 this?  Here is the code for scrolling:
 
 function moveUp()
 {
  if (tblSize >= size) {
   if (tblSize_2 >= counter1) {
    counter1 += 10;
    document.getElementById('scrollIt').style.top = -counter1;
 
   setTimeout("moveUp()",200);
   }
 
  }
 }
 
 
 
 Bye,
 
 Iztok





More information about the Javascript mailing list