Your WebCode

Log In / Submit Code / Join     

Find Code
    Highest Rated
    Newest
    Most Viewed
    Browse
           ASP
           ASP.NET
           CSS
           JAVA
           JavaScript
           PERL
           PHP


Sponsors
  
Sites of Interest
   Asp.net Problems
   seminar topics
   Funny Videos
   You Tube videos
   Comedy videos
   Watch YouTube
   Funny You Tube videos
   smart diet
   craiglist
   Asp VS Php

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.



Reviews
Hide Reviews | Add Review | Delete Review 
No Reviews

Blog | Monthly Contest | Current Contest Leaders | FAQ | Link to us
Privacy Policy | Terms | Credits | Other Sites | Contact Us
Copyright © 2008, Your WebCode.