Results 1 to 2 of 2

Thread: Hover Links

  1. #1
    Join Date
    Jun 2007
    Posts
    6

    Hover Links

    how do i make multiple types of hover links. so, have one link go one color when a mouse pointer goes over it, and another link glow another color.

    also how do i change the color of a link and keep the hover effect color.

  2. #2
    Join Date
    Nov 2004
    Posts
    4
    By assigning a class to them

    CSS
    Code:
    a.theselinks:link, a.theselinks:visited, a.theselinks:active {
      color: #900;
      text-decoration: none;
    }
    
    a.theselinks:hover {
      color: #f00;
      text-decoration: underline;
    }
    
    a.otherlinks:link, a.otherlinks:visited, a.otherlinks:active {
      color: #090;
      text-decoration: none;
    }
    
    a.otherlinks:hover {
      color: #0f0;
      text-decoration: underline;
    }
    HTML
    Code:
    <a href="text.html" class="theselinks">linky</a>
    <a href="text.html" class="theselinks">linky</a>
    ...
    <a href="text.html" class="otherlinks">linky too</a>
    <a href="text.html" class="otherlinks">linky too</a>

Similar Threads

  1. hover links
    By staino in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 0
    Last Post: 20 Jun 2007, 04:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •