0
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
- <script language="javascript"> var msg = " This is a test animating title ";
- var pos = 0;var spacer = " ....";
- var time_length = 200;
- function RunTitle()
- {
- document.title = msg.substring(pos, msg.length) + spacer + msg.substring(0, pos); pos++;
- if (pos > msg.length) pos=0;
- window.setTimeout("RunTitle()",time_length);
- }RunTitle();
- </script>
Post a Comment