Scrolling StatusLine 
You can display a scrolling text in the statusline of the browser. Look at your status and see the action.
Note that many users dislikes this effect!
<script language=javascript type="text/javascript">
<!--
function statusMessageObject(p,d)
{ this.msg = MESSAGE
this.out = " "
this.pos = POSITION
this.delay = DELAY
this.i = 0
this.reset = clearMessage}
function clearMessage(){
this.pos = POSITION}
var POSITION = 100
var DELAY = 70
var MESSAGE = "Welcome to this site - we hope you enjoy your stay."
var scroll = new statusMessageObject()
function scroller(){for (scroll.i = 0; scroll.i < scroll.pos; scroll.i++)
{ scroll.out += " " }
if (scroll.pos >= 0) scroll.out += scroll.msg
else scroll.out = scroll.msg.substring(-scroll.pos,scroll.msg.length)
window.status = scroll.out
scroll.out = " "
scroll.pos--
if (scroll.pos < -(scroll.msg.length)) scroll.reset()
setTimeout ('scroller()',scroll.delay)
}
// -->
</script>
|