SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Evangelist
    Join Date
    Nov 2000
    Posts
    427
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    a simple rollover

    What would be the best method to use to implement a simple rollover where a link changes from black to purple when the mouse is over it?
    But what care I for praise? - Bob Dylan

  2. #2
    SitePoint Wizard Rick's Avatar
    Join Date
    Oct 2002
    Location
    Lancashire, UK
    Posts
    3,847
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you mean a text link simply use CSS:

    PHP Code:
    <style type="text/css">
        
    A:link color#0000ff; text-decoration: none; }
        
    A:active color#0000ff; text-decoration: none; }
        
    A:visited color#0000ff; text-decoration: none; }
        
    A:hover color#ff0000; text-decoration: underline; }
    </style
    The above code will display links Blue and turn them red and underline them when the mouse is hovered over them.

    Hope this helps

    Rick
    Rick

  3. #3
    pg for mild peril cow's Avatar
    Join Date
    Mar 2000
    Location
    nevada, usa
    Posts
    636
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try using css rollovers...

    edit: oops, zoo beat me to it
    "There's no justice like angry mob justice!" --Seymour Skinner

  4. #4
    SitePoint Wizard Rick's Avatar
    Join Date
    Oct 2002
    Location
    Lancashire, UK
    Posts
    3,847
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by cow
    edit: oops, zoo beat me to it
    I know that particular feeling well

    Rick
    Rick


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
  •