This javascript function will help you to show a scrolling message in the status bar.
Status bar is the bottom portion of the browser where you will see
link information when you move the mouse over any link.
Features
a) Status bar script function to show scrolling (moving) messages.
b) Should work in all browsers including internet explorer, firefox, opera.
c) Just copy the code in to your page and use it.
Preview
Status bar of this page
Code
<!-- Script by hscripts.com -->
<!-- copyright of HIOX INDIA -->
<!-- more scripts @ http://www.hscripts.com -->
<script type="text/javascript">
function statusbar(val)
{
var msg = "Your message here --- hscripts.com";
var res = " ";
var speed = 100;
var pos = val;
if (pos > 0) {
for (var position=0 ; position< pos; position++) {
res += " ";
}
res+=msg;
pos--;
window.status = res;
timer = window.setTimeout("statusbar("+pos+")",speed);
}
else{
if( -pos < msg.length) {
res += msg.substring(-pos,msg.length);
pos--;
window.status=res;
timer = window.setTimeout("statusbar("+pos+")",speed);
}
else
{
window.status= " ";
timer = window.setTimeout("statusbar(100)",speed);
}
}
}
statusbar(100);
</script>
For customization of this script or any script development, contact us at support@hscripts.com
Usage
a) Copy the code in to your page.
b) Change the message to what ever you want
change the line var msg = "Your message here --- hscripts.com";
example: var msg = "....... mysitename.com ......";
License
- The javascript (misspelled as java script) is given under GPL License
- i.e. Free use for those who use the codes as it is.
- Free, if your modification does not remove our copyright information and links.
- Click Here for detailed license information.
- You can purchase the script if your requirements does not meet our GPL License terms.