Can anybody try to explain the script part
window.status=myMsg.substring(i, myMsg.length) + myMsg.substring(0, i-1)
Below is the code.
<html>
<head>
<title>My JavaScript page</title>
<SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT">
< !-- Hide script
myMsg = "Hey"
i=0
function scrollMsg() {
window.status=myMsg.substring(i, myMsg.length) + myMsg.substring(0, i-1)
if( i < myMsg.length) {
i++
}
else {
i=0
}
setTimeout("scrollMsg()",1000)
}
// End -->
</SCRIPT>
</head>
<body bgcolor=white onLoad="scrollMsg()">
<h2>I'm a kewl JavaScript dood with a scrolling status bar!</h2>
</body>
</html>