SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Guru phanie12.geo's Avatar
    Join Date
    Oct 1999
    Location
    pompano beach, fl
    Posts
    665
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question MouseOver Script for Link Text?

    Hi Guys,

    What is that quick little text for onmouseover javascript text color changes for links? I have used it in the past and now I cannot find it. Thanks so much.

  2. #2
    SitePoint Enthusiast teknikewl's Avatar
    Join Date
    Feb 2002
    Location
    Pennsylvania, USA
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CSS

    Are you looking for the CSS code?

    Code:
    <style type="text/css">
    
    A:link { COLOR: #000000 }
    A:visited { COLOR: #333333 }
    A:hover { COLOR: #778899 }
    A:active { COLOR: #778899 }
    
    </style>
    Last edited by teknikewl; Mar 29, 2002 at 15:49.

  3. #3
    Prolific Blogger silver trophy Technosailor's Avatar
    Join Date
    Jun 2001
    Location
    Before These Crowded Streets
    Posts
    9,446
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    CSS is definitely a better option than javascript (although you can do both). However, even by doing ti with javascript you are still doing it via CSS...just the hard way. So stick with Bryan's method and set the a:hover property to be your mouseover effect.

    Sketch
    Aaron Brazell
    Technosailor



  4. #4
    SitePoint Guru phanie12.geo's Avatar
    Join Date
    Oct 1999
    Location
    pompano beach, fl
    Posts
    665
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    YEs, that's it. You're right CSS is better. Put that into my little toolbox.


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
  •