SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Hybrid View

  1. #1
    SitePoint Guru
    Join Date
    Jul 2002
    Location
    space
    Posts
    845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    I believe this is done in CSS

    Hello, on some sites I notice a row, and when the cursor hovers over that row, it changes color while the mouse is on it. Does anyone know how this is done?

    Thanks.

  2. #2
    The I's for intelligent silver trophy iTechno's Avatar
    Join Date
    Jan 2006
    Location
    Yorkshire, UK
    Posts
    1,796
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think you probably mean basically a bg changer. You mean like on the text

    * Articles
    * Books
    * Blogs
    * Marketplace
    * Forums
    At the top?

  3. #3
    SitePoint Guru
    Join Date
    Jul 2002
    Location
    space
    Posts
    845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes I am looking for that... but it would be on a much larger scale. For instance, when someone hovers over this post, I would want its background to change. So it would be nice if the <tr> background would change.

  4. #4
    SitePoint Wizard trampt's Avatar
    Join Date
    Jan 2003
    Location
    Los Angeles, CA
    Posts
    1,997
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it will work if you set a background color to tr:hover but keep in mind this isn't supported by IE5 or IE6.

  5. #5
    CSS & JS/DOM Adept bronze trophy
    Join Date
    Mar 2005
    Location
    USA
    Posts
    5,482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    IE(4 through 6)/Win only natively support :hover on <a> elements.
    Three ways to simulate :hover in IE5-6/Win:
    Dean Edwards' "IE7" patch for IE5-6
    whatever:hover
    http://www.htmldog.com/articles/suckerfish/
    We miss you, Dan Schulz.
    Learn CSS. | X/HTML Validator | CSS validator
    Dynamic Site Solutions
    Code for Firefox, Chrome, Safari, & Opera, then add fixes for IE, not vice versa.


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
  •