| Author: krishna murthy Hosur Ananthappa 28 Jun 2008 | Member Level: Gold | Rating: Points: 0 |
you specify briefly
|
| Author: Mayur 28 Jun 2008 | Member Level: Silver | Rating: Points: 0 |
Hi, Didn't get your question? Please explain..
|
| Author: Aravind 29 Jun 2008 | Member Level: Gold | Rating: 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 2008 | Member Level: Gold | Rating: 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>
|