This javascript function will help you to show a scrolling message in the title. Title bar is the topmost portion of the browser. Simple html script that will give a special title effect.
Features
Title Bar script function to show scrolling (movin
messages in title.
Should work well in the Firefox browser.
Just copy the code in to your page and use it.
Preview
Title of this page
Downloads
<!--Script by hscripts.com--> <!-- more scripts @ https://www.hscripts.com --> <script type="text/javascript"> var rev = "fwd"; function titlebar(val) { var msg = "Your message here *** hscripts.com"; var res = " "; var speed = 100; var pos = val;msg = " |--- "+msg+" ---|"; var le = msg.length; if(rev == "fwd"){ if(pos < le){ pos = pos+1; scroll = msg.substr(0,pos); document.title = scroll; timer = window.setTimeout("titlebar("+pos+")",speed); } else{ rev = "bwd"; timer = window.setTimeout("titlebar("+pos+")",speed); } } else{ if(pos > 0){ pos = pos-1; var ale = le-pos; scrol = msg.substr(ale,le); document.title = scrol; timer = window.setTimeout("titlebar("+pos+")",speed); } else{ rev = "fwd"; timer = window.setTimeout("titlebar("+pos+")",speed); }
} } titlebar(0); </script> <!--Script by hscripts.com-->