HTML title effect java script

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-->

  • Release Date - 16-06-2004
  • Get free version without ©copyright link for just $10/-
  • For customization of this script or any script development, mail to support@hscripts.com

Usage

  • Copy the code in to your page.
  • Change the message to what ever you want scrolling change the line
  • var msg  = "Your message here --- hscripts.com";
    example: var msg = "....... mysitename.com ......";
  • The speed can be altered by changing the variable speed.

License

Related Scripts

Free Javascript Scripts


Ask Questions

Ask Question