I got this scrolling script just working right but my problem is that I have another javascript in the same page. At times visitors gets
an error message and at times the script on the bottom wouldn't function as it should. I tried to paste the "Onload...etc" to the
other onload but still the problem persist.
Can someone tell me how to solve this..
You can view a sample of the script in question together with the one below at;
http://www.marksignusa.com/pp---NOT.html

thanks in advance!



<html>
<head>
<script>
function statusScroll(stuff)
{
var m1 = " Hello and welcome to our shop";
var m2 = " The On-Line shop.....etc";
var m3 = " Specializing in ...............etc";
var m4 = " We manufacture ..................etc";
var msg = m1+m2+m3+m4;
var out=" ";
var c=1;
if (stuff > 100) {
stuff --;
var cmd="statusScroll("+stuff+")";
timerTwo=window.setTimeout(cmd,100);
}
else if (stuff <=100 && stuff >0) {
for (c=0; c<stuff; c++){
out+=" ";
}
out+=msg;
stuff--;
var cmd="statusScroll("+stuff+")";
window.status=out;
timerTwo=window.setTimeout(cmd,100);
}
else if (stuff <=0) {
if (-stuff <msg.length){
out+=msg.substring(-stuff, msg.length);
stuff--;
var cmd="statusScroll("+stuff+")";
window.status=out;
timerTwo=window.setTimeout(cmd,100);
}
else {
window.status=" ";
timerTwo=window.setTimeout("statusScroll(100)",75);
}
}
}
</script>
</head>
<body bgcolor=ffffff onLoad="TimerTWO=window.setTimeout('statusScroll(100)',500);">
<center>
<font face=arial size=2 color="000080">