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 !




java script


Posted Date: 28 Jun 2008      Total Responses: 4

Posted By: rahamathulla       Member Level: Bronze     Points: 1



hi..very very urgent.....advance wishes for yr response.


In javascript i want to scroll the text in statusbar can tell me the coding for this..........





Responses

Author: krishna murthy Hosur Ananthappa    28 Jun 2008Member Level: GoldRating: Revenue Score: 0     Points: 0

you specify briefly


Author: Mayur    28 Jun 2008Member Level: SilverRating:     Points: 0

Hi,
Didn't get your question?
Please explain..



Author: Aravind    29 Jun 2008Member Level: GoldRating:     Points: 6

This scrolling is done by using some string manipulation operation game in the statusbar text value.

like, you need a for loop and a Time interval function. for a scenario, i am telling you this.


<script>

//global variables
var myString = "This is a test to scroll in statusbar";
var iLooper = -1;

function fnDisplay()
{
iLooper = iLooper + 1;
if(iLooper < myString.value.length)
statusbar.value = myString.charAt(iLooper);
else
iLooper = -1;
}

function fnDoOnload()
{
window.setInterval("fnDisplay()",300);
}

</script>
...
...
<body onload="fnDoOnload()">
...
...
...
</body>




Author: Nithya    10 Jul 2008Member Level: GoldRating:     Points: 5

hi...

try this...

<html>
<head>
<script>
var myString = "This is a test to scroll in statusbar";
var iLooper = -1;
function fnDisplay()
{
iLooper = iLooper + 1;
if(iLooper < myString.value.length)
statusbar.value = myString.charAt(iLooper);
else
iLooper = -1;
}
function fnDoOnload()
{
window.setInterval("fnDisplay()",300);
}
</script>
<body onload="fnDoOnload()">//global variables</body>
</html>



Post Reply
You must Sign In to post a response.
Next : Enter should click the button
Previous : javascript Time functions
Return to Discussion Forum
Post New Message
Category: JavaScript

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use