Status Message Scrolls

[Total: 0    Average: 0/5]

Send your status message scrolling.

Body Code:

<big>See at window.status</big>
<script LANGUAGE="JavaScript">

<!-- Beginning of JavaScript Applet -------------------


function scroll(seed)

{
	var msg="Your message goes here !!!!!!!!!!! "
	var out = " ";
	var c   = 1;
	if (seed > 100) {
		seed--;
		var cmd="scroll(" + seed + ")";
		timerTwo=window.setTimeout(cmd,100);
	}
	else if (seed <= 100 && seed > 0) {
		for (c=0 ; c < seed ; c++) {
			out+=" ";
		}
		out+=msg;
		seed--;
		var cmd="scroll(" + seed + ")";
		    window.status=out;
		timerTwo=window.setTimeout(cmd,100);

	}
	else if (seed <= 0) {
		if (-seed < msg.length) {
			out+=msg.substring(-seed,msg.length);
			seed--;
			var cmd="scroll(" + seed + ")";
			window.status=out;
			timerTwo=window.setTimeout(cmd,100);
		}
		else {
			window.status=" ";
			timerTwo=window.setTimeout("scroll(100)",15);
		}
	}
}


// -- End of JavaScript code -------------- -->
</script>
<script>
setTimeout('scroll(100)',500);
</script>

Times Viewed: 0

Leave a Reply

Your email address will not be published. Required fields are marked *