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

Change text style AND color with onmouseover. I'm a newbie, be gentle 1

Status
Not open for further replies.

coolcarls

Technical User
Jan 19, 2002
182
US
I can't seem to change two things at the same time with the onmouseover line. I want to change the font color and style. I can make the color change no prob.
 
do you know CSS (Cascading Style Sheets).

just insert the following between <head></head> of your html document

<style type=&quot;text/css&quot;>
<!--
a:link { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #0000FF}
a:active { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #FFFF00}
a:visited { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #FF0000}
a:hover { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #339900}
-->
</style>

Change the size and color as you want. Please make sure that you keep this order in your style sheet.
Ranjan
:: I earn because I learn ::
 
sorry the right order is

A:link
A:visited
A:hover
A:active

Ranjan
:: I earn because I learn ::
 
Thank you Thank you Thank you!!! Worked Perfectly
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top