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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing all anchor tags to display mess in statusbar

Status
Not open for further replies.

dwhalen

Programmer
Feb 22, 2002
105
CA
Hey,

I know how to change the status bar on individual anchor tags and such by using the onMouseOver="window.status='Hello Joe';". But is there a way to change all anchor tags to change the statusbar to the same text? Something like: A:hover{statusbar: Hello;}

I have a lot of links that I want to change to display a more user friendly message instead of a javascript function....and I am a very lazy man. :p

thanks
 
Well this isn't really much of a solution, but why don't you create a functon

Code:
function statusOver()
{
window.status="My Message";
}

function statusOut()
{
window.status="";
}


<A href=&quot;[URL unfurl="true"]http://www.tek-tips.com&quot;[/URL]
onMouseOver=&quot;statusOver();&quot;
onMouseOut=&quot;statusOut();&quot;>Tek-Tips Forum</A>

I know that you still have to put the onMouseOver & onMouseOut attribute in each anchor, but at least if you want to change the message, you'll only have to change it once in the function!!!!

[wavey2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top