0
Posted on 12:55 PM by prajeesh and filed under , ,
In some websites you may seen animating or scrolling page titles, here is the trick to do this, just place below code between your page's <head> and </head> tags
  1. <script language="javascript"> var msg = " This is a test animating title ";  
  2. var pos = 0;var spacer = " ....";  
  3. var time_length = 200;  
  4. function RunTitle()  
  5. {   
  6. document.title = msg.substring(pos, msg.length) + spacer + msg.substring(0, pos); pos++;   
  7. if (pos > msg.length) pos=0;  
  8.  window.setTimeout("RunTitle()",time_length);  
  9. }RunTitle();  
  10. </script>  
Shout it kick it on DotNetKicks.com
0
Responses to ... Scrolling page title using javascript