C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




textwriter issue using javascript in asp.net 2003


Posted Date: 11 Oct 2008      Total Responses: 0

Posted By: Mohamed Yasin       Member Level: Gold     Points: 1


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.




Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Post Reply
You must Sign In to post a response.
Next : How to get server time
Previous : calling javascript function by passing server variable
Return to Discussion Forum
Post New Message
Category: JavaScript

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

doors in nj

Contact Us    Privacy Policy    Terms Of Use