Jump to content

Stus Bar displays message


Guest saraghav
 Share

Recommended Posts

Guest saraghav

I have seen a few websites in which the status bar displays a message, sometimes animated. Even when I hover on a link or a button, the page to which they are linked are not displayed in the status bar. Can anyone explain how ?Example of one such site : http://www.mohankumars.com/Maybe it is XML or some other language, I am not sure. Could someone please explain this ?

Link to comment
Share on other sites

Simple example:

<a href="http://www.google.com" onMouseOver="window.status='Go to Google'; return true" onMouseOut="window.status=''; return true">Google</a>

Using javascript window.status you can change the message in the status barHere's an animated one i found with google:

<HEAD> <script LANGUAGE="JavaScript";> <!-- Begin function scrollit(seed) {var m1 = "Hi There! ";var m2 = "..... This is what the message scrolling along the bottom would look like! ";var m3 = "......Enjoy ";var m4 = "";var msg=m1+m2+m3+m4;var out = " ";var c = 1;if (seed > 100) {seed--;cmd="scrollit("+seed+")";timerTwo=window.setTimeout(cmd,100);}else if (seed <= 100 && seed > 0) {for (c=0 ; c < seed ; c++) {out+=" ";}out+=msg;seed--;window.status=out;cmd="scrollit("+seed+")";timerTwo=window.setTimeout(cmd,100);}else if (seed <= 0) {if (-seed < msg.length) {out+=msg.substring(-seed,msg.length);seed--;window.status=out;cmd="scrollit("+seed+")";timerTwo=window.setTimeout(cmd,100);}else {window.status=" ";timerTwo=window.setTimeout("scrollit(100)",75);}}}// End --></SCRIPT></HEAD> <BODY onLoad="scrollit(100)"> 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...