Hi, am using below js (asp.net 2003) taken from http://www.a1javascripts.com/text_effects/textwriter/textwriter.html
My issue is that, once first line gets completed, then at the start of second line '0' is displayed... how to get rid of this..
code:
<SCRIPT LANGUAGE="JavaScript"> var d //change var i=(your number of messages) var i=2 var u=0 var time var symbole //change your speed and symbol below (higher=slower) function tableau() { this[0]="100 eTarget - Dashboard Reporting, Access from anywhere within Schneider Network !! " this[1]="150 <%=Session("ExchangeString")%>" }
function scroll() { var tb = new tableau()
time = tb[u].substring(0,3) // the substring command is so cool ;) symbole = tb[u].substring(3,4)
i++
if (i > tb[u].length) { i = 2 //2 = number of messages u++ if (u > 1) { u = 0 } // 1 = line number -1 } d = tb[u].substring(4,i)
document.forms[0].elements[0].value = d+symbole setTimeout ("scroll()",time) }
<body leftMargin="0" scroll="no" topMargin="0" MS_POSITIONING="GridLayout" onLoad="writeMenus();scroll();"
<div nowrap align=center><center><p><font face="Arial,Helvetica" size="-1"><input type="text" size="90" name="mesg" style="background-color:transparent;border:0px solid white;"></font></p> </center> </div>
Thanks.
|
No responses found. Be the first to respond and make money from revenue sharing program.
|