Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Message Scroller

Status
Not open for further replies.

rry2k

Programmer
Jun 28, 2001
678
US
Can someone tell me how to put a scroller in the message bar at the botttom of a page.

Thanks..Russ
 
I tried the following code per the instructions and nothing happened:

<html>
<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! -->
<!-- Original: Bryan Pieterse -->
<!-- Web Site: -->
<!-- Begin
function scrollit_r2l(seed)
{
var m1 = " offering Free Scripts ";
var m2 = " .... ";
var m3 = " Visit Us Now! ";
var m4 = " Youm may add as many messages as you like! ";
var m5 = " LOOOK........ Great!! ";
var msg=m1+m2+m3+m2+m4+m2+m5;
var out = "Javascript Source ";
var c = 1;
if (seed > 100) {
seed--;
var cmd="scrollit_r2l(" + seed + ")";
timerTwo=window.setTimeout(cmd,100);
}
else if (seed <= 100 && seed > 0) {
for (c=0 ; c < seed ; c++) {
out+=" ";
}
out+=msg;
seed--;
var cmd="scrollit_r2l(" + 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="scrollit_r2l(" + seed + ")";
window.status=out;
timerTwo=window.setTimeout(cmd,100);
}
else {
window.status=" ";
timerTwo=window.setTimeout("scrollit_r2l(100)",75);
}
}
}
// End -->
</script>

<BODY onLoad="timerONE=window.setTimeout('scrollit_r2()">

<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
by <a href=" JavaScript Source</a></font>
</center><p>

<!-- Script Size: 1.84 KB -->
</body>
</head>
</html>
 
Billy Ray,

Thanks for the script,
I was looking for a scroller on the bottom where it says done and or various other messages,
Thanks..Russ
 
there is a syntax error in the body code
it should be:

onLoad="timerONE=window.setTimeout('scrollit_r2l(100)',500);"



Chris.

Indifference will be the downfall of mankind, but who cares?
 
[tt]
Come on! fellow "Programmers" let's be Courteous and properly close our post. Please
[/tt]
 
Thanks Chris was the close. Were you looking for something else?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top