Furious_Angel
02-03-2004, 12:50 AM
yea i;m working on a site and i'm trying to add a new feature... its a moving status bar... my friend gave me the HTML codes for it but i cant seem to get it to work the codes i have are
<script language=JavaScript><script language="JavaScript">
<!--
msg = "Welcome To The Matrix";
timeID = 10;
stcnt = 16;
wmsg = new Array(33);
wmsg[0]=msg;
blnk = " ";
for (i=1; i<32; i++)
{
b = blnk.substring(0,i);
wmsg[i]="";
for (j=0; j<msg.length; j++) wmsg[i]=wmsg[i]+msg.charAt(j)+b;
}
function wiper()
{
if (stcnt > -1) str = wmsg[stcnt]; else str = wmsg[0];
if (stcnt-- < -40) stcnt=31;
status = str;
clearTimeout(timeID);
timeID = setTimeout("wiper()",100);
}
wiper()
// -->
</script>
first off do i need to put this in the head or bodyy? and if theres anything wrong with the code does anyone know what it is?
<script language=JavaScript><script language="JavaScript">
<!--
msg = "Welcome To The Matrix";
timeID = 10;
stcnt = 16;
wmsg = new Array(33);
wmsg[0]=msg;
blnk = " ";
for (i=1; i<32; i++)
{
b = blnk.substring(0,i);
wmsg[i]="";
for (j=0; j<msg.length; j++) wmsg[i]=wmsg[i]+msg.charAt(j)+b;
}
function wiper()
{
if (stcnt > -1) str = wmsg[stcnt]; else str = wmsg[0];
if (stcnt-- < -40) stcnt=31;
status = str;
clearTimeout(timeID);
timeID = setTimeout("wiper()",100);
}
wiper()
// -->
</script>
first off do i need to put this in the head or bodyy? and if theres anything wrong with the code does anyone know what it is?