Status Eraser


This script displays messages in the status bar and then "erases" it. You can add multiple messages to the script.

<script>
var text1="Hello And Welcome To Developer IQ"
comeback=0
cometo=0

function dis(){
window.status=text1.substring(0,cometo)
if(comeback==1){
cometo--;
if(cometo==0){comeback=0}
}

else {cometo++;if(cometo==text1.length){comeback=1}}
window.status=text1.substring(0,cometo)+"|"
if(cometo==text1.length){window.setTimeout("dis()",500);} else
{window.setTimeout("dis()",50);}
}


dis()
</script>





Added on June 1, 2007 Comment
}