Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I ...

Status
Not open for further replies.

NoIDea

MIS
Jan 19, 2001
4
AU
I dont know what this is called and as I am new to web designing I guessed it would be javasript...
Put simply how do I make text appear in the status bar when the move there cursor over the object
e.g a button that was a link to Checkout when the cursot moved over it text would display in the status bar i.e Want to Checkout and when the cursor is off the object it returns to the normal Done or scrolling text..
Help would be greatly appreciated!
 
This involves the window object, representing the actual browser window. This the code to do it:

window.status = 'Want to checkout'

Now for some reason it is recommended to have the function return true when setting these, or results may vary!

Then if you like you can set the default message that will be displayed by:

window.defaultStatus ='some massage here'


<BODY onLoad=&quot;window.defaultStatus = 'default message here!'&quot;>
...

<img src=&quot;buttonPic_1.gif&quot; onMouseOver = &quot;window.status='Want to checkout?';return true&quot;>


That should do it! -Ben &quot;Alright whatever man, I'll hook up the hair, but I aint touchin the ring...Cause I'm still a pla--yer&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top