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

Text Mouseover

Status
Not open for further replies.

krichard

Technical User
Dec 5, 2001
41
US
Hello..

Right now I have a script that changes the color of the text when I mouseover it, but I would also like to increase the font of the text when I mouseover, and then go back when I mouseout... Keep in mind the text is not a link!

<h3 align="left" onMouseOver="this.style.color='#ff0000'" onMouseOut="this.style.color='cccccc'">
 
You can add to the code inside your onMouseOver and onMouseOut commands to be the following:

onMouseOver="this.style.color='#ff0000';this.style.fontSize='bigger';"
onMouseOut="this.style.color='#cccccc';this.style.fontSize='normal';"

I hope this helps.

Einstein47
(&quot;The pure and simple truth is rarely pure and never simple.&quot; - Oscar Wilde)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top