Hi
How can I reverse the direction of the text in this
scroller ?
Code Follows.....
<html>
<head>
</head>
<body onload="scroll(); return true">
<script language="javascript">
var scrlStr="YOUR MESSAGE GOES HEREYOUR MESSAGE GOES HEREYOUR MESSAGE GOES HERE"
var width=140;
var strLen=scrlStr.length;
var pos=1-width;
function scroll() {
var scroll = "";
pos++;
if(pos == strLen)
pos =1 - width;
if(pos<0){
for(var i=1;i<=Math.abs(pos);i++)
scroll=scroll+" ";
scroll=scroll+scrlStr.substring(0,width-i+1);
}
else
scroll=scroll+scrlStr.substring(pos,pos+width);
window.status=scroll;
setTimeout("scroll()",75);
}
</script>
</body>
</html>
How can I reverse the direction of the text in this
scroller ?
Code Follows.....
<html>
<head>
</head>
<body onload="scroll(); return true">
<script language="javascript">
var scrlStr="YOUR MESSAGE GOES HEREYOUR MESSAGE GOES HEREYOUR MESSAGE GOES HERE"
var width=140;
var strLen=scrlStr.length;
var pos=1-width;
function scroll() {
var scroll = "";
pos++;
if(pos == strLen)
pos =1 - width;
if(pos<0){
for(var i=1;i<=Math.abs(pos);i++)
scroll=scroll+" ";
scroll=scroll+scrlStr.substring(0,width-i+1);
}
else
scroll=scroll+scrlStr.substring(pos,pos+width);
window.status=scroll;
setTimeout("scroll()",75);
}
</script>
</body>
</html>