home *** CD-ROM | disk | FTP | other *** search
/ ftp.novell.com / 2014.06.ftp.novell.com.tar / ftp.novell.com / forge / camtasia.msi / Cabs.w1.cab / RMTimerCallback.js < prev    next >
Text File  |  2009-08-17  |  546b  |  28 lines

  1. $JavaScriptScrollWindow
  2.  
  3. function timerInit() 
  4. {
  5.    //Sets the timer to check every .1 second
  6.    window.setInterval("timer()", 100);
  7. }
  8.  
  9. function timer() 
  10. {  
  11.    if( document.$ObjectIDName == undefined || document.$ObjectIDName == null )
  12.    {
  13.       return;
  14.    }
  15.       
  16.    if( document.$ObjectIDName.GetPlayState() == 3 ) 
  17.    {
  18.       var destIndex = null;
  19.       
  20.       $SetIndexColors
  21.       
  22.       if( destIndex != null )
  23.       {
  24.          ScrollToIndex( document.getElementById('$LinkDivID'), destIndex );
  25.       }
  26.    }
  27. }
  28.