Scrolling Title
Scrolling Title
This script scrolls the title.
Paste the following script in the <HEAD> section of your page. Change the variable msg to your web page title. Change the scroll speed by changing the value of the variable time_length. Here it is 100, which means that each character will change it's position after 100 milliseconds, i.e a scroll speed of 10 pixels/second.
<script language="javascript">
// (c) Premshree Pillai
// http://www.qiksearch.com
// premshree@hotmail.com
// Use freely as long as this message is intact.
var msg = " Your Web Page Title ";
var pos = 0;
var spacer = " ... ";
var time_length = 100;
function ScrollTitle()
{
document.title = msg.substring(pos, msg.length) + spacer + msg.substring(0, pos);
pos++;
if (pos > msg.length) pos=0;
window.setTimeout("ScrollTitle()",time_length);
}
ScrollTitle();
</script>
© Premshree Pillai