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

multiple hovers 1

Status
Not open for further replies.

deecee

Technical User
Aug 25, 2001
1,678
US
how do i have multiple instances for hover. and how do i implement them. i can do a. and all the other tags but hover eludes me.

1 star for who can help me solve this one.

[afro] yup im a star whore
 
You can't do a simple hover for say a td or a hr. You can use javascript, though. You can do this:
<td bgcolor=&quot;orange&quot; onMouseOver=&quot;this.background='blue';&quot; onMouseOut=&quot;this.background='orange';&quot;></td>

Or if you don't want to use javascript and it's for text, you can do this:

<style>
.link2 a{
text-decoration:none;
}
</style>
<a href=&quot;#&quot; onClick=&quot;return false;&quot; class=&quot;link2&quot;>the link</a>

Rick It's a pleasure to know that I've helped you. If I have,
please click the link below to let me know. :)
 
im sorry man but the javascript didnt work is there anything i put in the head

[afro] yup im a star whore
 
Sorry about that code, I always mess up when I'm in a hurry. This will work fine:

<table>
<tr>
<td bgcolor=&quot;orange&quot;
onMouseOver=&quot;this.style.background='blue';&quot;
onMouseOut=&quot;this.style.background='orange';&quot;>this is some text</td>
</tr>
</table>

Rick It's a pleasure to know that I've helped you. If I have,
please click the link below to let me know. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top