Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi
I have got some Links to Other Pages and i want to make them change color when the mouse is put over them,
Thanks George

i made a mistake on the previous post.
you can use this java script
<style>
A.type1:link {color:#FFDD00; text-decoration:none;}
A.type1:visited {color:#FFDD00; text-decoration:none;}
A.type1:active {color:#FFDD00; text-decoration:none;}
A.type1:hover {color:#00FF80; text-decoration:underline;}
</style>

That is NOT JavaScript, it's CSS (Cascading Syle Sheets). It is also the preferred method. However, that code won't as written.
If you want ALL links on the page to use the same color schemes, then just use (remove ".type1"):
a:link {color:#FFDD00; text-decoration:none;}
a:visited {color:#FFDD00; text-decoration:none;}
a:active {color:#FFDD00; text-decoration:none;}
a:hover {color:#00FF80; text-decoration:underline;}But, if you want just specific links to use a particular color scheme, then you can create a class as tyros did above, but you will need to specify the class within the link tag as follows:
You can use as many different classes as you wish.
Michael J

Sorry, forgot to escape the code in the link above. Is should look like this:
< a href="http://www.yahoo.com" class="type1">Yahoo!< /a>
Michael J

Once you get used to using CSS, you'll programming life will get much simpler (in most cases!)
If you're interested in SMS, visit section about sms news.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |