Scrolling Text in the Status Window : StatusBar : Window Browser JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Window Browser » StatusBar »

 

Scrolling Text in the Status Window



<html>
<head>
<title>Scrolling Text</title>
<script language="JavaScript">
var scrollPos = 0
var maxScroll = 100
var blanks = ""

function scrollText(text, milliseconds) {
   window.setInterval("displayText('"+text+"')", milliseconds)
}

function displayText(text) {
     window.defaultStatus = blanks + text
     ++scrollPos
     blanks += " "
     if(scrollPos > maxScroll) {
        scrollPos = 0
        blanks = ""
     }
}
</script>
</head>
<body onload="scrollText('Watch this text scroll!!!', 300)">
<p>Watch the text scroll at the bottom of this window!</p>
</body>
</html>

           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Window Browser
» StatusBar