J
SCRIPT
Javascript Library
To
insert scrolling words in status bar.
Step 1 : Put following script in the head section.
<HEAD>
<script
language="JavaScript">
<!-- Hide the script from old browsers --
//======================================================
// Java Script code by Java Script It!
www.computan.on.ca/~todd/JavaScriptIt!
//======================================================
var timerID = null;
var timerRunning = false;
var id,pause=0,position=0;
function txtScroll() {
var i,x
var message=" Have a nice day. ";x=(60/message.length)+1;
for(i=0;i<=x;i++) message+=" "+message;
window.status=message.substring(position,position+60);
if(position++==128) position=2;
id=setTimeout("txtScroll()",1000/10);}function action()
{
if(!pause) {
clearTimeout(id);
pause=1; }
else {
ticker();
pause=0; }
}
// --End Hiding Here -->
</script>
</HEAD>
Step 2 : Put your words in place of " Have a nice day. "
Step 3 : Put
following script in the <BODY> body tag.
<body
onLoad="txtScroll()">
Now the script is ready.
This Javascript Code is provided by Java Script It! http://www.computan.on.ca/~todd/JavaScriptIt!
|