sumitmehta
New Member
- Messages
- 215
- Reaction score
- 1
- Points
- 0
Here is a simple tutorial in javascript on moving text in IE statusbar.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Test Page</title>
</head>
<body onload="setStatus();">
<script language="javascript" >
var s="I am testing moving text ";
var l=0;
var ll=s.length;
function setStatus() {
var ss=s.substr(l,s.length-l);
var sss=s.substr(0,l);
ss=ss + sss;
window.status=ss;
l=l+1;
if(l==s.length) {
l=0;
}
setTimeout("setStatus()",500);
}
</script>
</body>
</html>
Last edited: