ASP ScriptingJava ScriptingCGI ScriptingHTMLJavaLanguage CERP Education Links

JAVA SCRIPTING

To Make a Scrolling Status Bar

     You have probably seen one of the most common use of JavaScript effects while surfing on Net. It's those messages the scroll in the status bar of browser windows. It's not difficult to do. With the given script, you'll know how easy it become. 

<HTML>
<HEAD>
<TITLE>My Scrolling Status Bar</TITLE>
<SCRIPT LANGUAGE=JAVASCRIPT>
<H1><SCRIPT>
<!--Hide script from old browsers
myMsg="Scrolling Message in Status Bar....! "
i=0
function scrollMsg()
{
frontPart=myMsg.substring(i,myMsg.length)
backPart=myMsg.substring(0,i)
window.status=frontPart+backPart
if (i<myMsg.length)
{
i++
}
else
{
i=0
}
setTimeout("scrollingMsg()",50)
}
// End hiding script from old browsers -->
</script>
</H1>
</HEAD>
<BODY BGCOLOR=WHITE onLoad="scrollMsg()">
<H2>I'm a new Web Master providing you Scrolling Status Bar...!</H2>
</BODY>
</HTML>

 


Your Ad Here
Not All Of Your Subscribers Use RSS - AWeber Email Marketing
Your Ad Here