|
Change link color on mouseover
| Language: |
CSS |
    
Rated by 1 Users
1 Star = Horrible 5 Stars = Perfect
Rate Code Now
|
| Posted By: |
blake |
| Author Website: |
Differences between ASP and PHP |
| Posted On: |
7/25/2007 |
| Code Views: |
764 |
This is just a simple script that changes the text color of a link when the mouse hovers over it.
|
Paste the following code in the <HEAD> section of your HTML page, or put it into an external .CSS file...
<STYLE TYPE="text/css"> <!-- A.DynamicLink { COLOR: midnightblue; } A.DynamicLink:hover { COLOR: black; } --> </STYLE>
Call this with the following: <a href="http://www.url.com/" class="DynamicLink">Text</a>
View code in Textarea
This code has not been tested by Your WebCode. Use it at your own risk.
Please report any copyright violations.
|
|