Results 1 to 2 of 2

Thread: mouse over effect

  1. #1
    Join Date
    Jul 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default mouse over effect

    Script: onMouseover Link Effects IE
    http://www.dynamicdrive.com/dynamicindex5/linkover.htm

    When I go to change the color of the link the mouse over effect doesn't work.

    ex:
    <a href=""><font color="#f5f5f5">blah</font></a>

    If I do something like this the mouse over effect all of the sudden doesn't work. Let me know what is wrong.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Don't do that then. If you specify a color nested inside where this script (it really isn't a script but, rather style) has influence, it will override it. In your example, get rid of the font tag. Set the 'starting out color' for links in the style section:

    <style>
    a:link {color:black;}
    a:hover{color:red; }
    </style>

    a:link is the starting out color, a:hover is the mouseover color.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

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