Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    Senior Coder
    Join Date
    Jun 2002
    Location
    Nashua, NH
    Posts
    1,724
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Internet Explorer HOW TO: make :hover and :active work in IE

    I know I'm not the first one to come up with this, but considering the amount of onmouseovers and onmouseouts I see around, I figured I share my version anyway:
    http://www.vladdy.net/Demos/IEPseudoClassesFix.html
    Enjoy
    Vladdy | KL
    "Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,253
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Excellent!

    Vladdy,

    brrrrr... that sends shivers down my spine because of the ultra-coolness. Really elegant solution for a failing browser! And I can't recall seeing it before...
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #3
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    Why not scan through the css rules and find those with :hover/:active, then extract the style body and apply those on the appropriate events instead? Would be a little more modular and transparent that way.

    I have :before and :after working in IE5 via similar methods.

  • #4
    me'
    me' is offline
    Senior Coder
    Join Date
    Nov 2002
    Location
    Warwickshire, England
    Posts
    1,229
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Also see this.
    David House - Perfect is achieved, not when there is nothing left to add, but when there is nothing left to take away. (Antoine de St. Exupery).
    W3Schools | XHTML Validator | CSS Validator | Colours | Typography | HTML&CSS FAQ | Go get Mozilla Now | I blog!

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    Nashua, NH
    Posts
    1,724
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Agree, jkd.
    That was just a quick demo.
    Still, when there are not too many :hover styles involved it may not be by worth all the parsing code in .htc.
    Last edited by Vladdy; 01-29-2004 at 04:15 PM.
    Vladdy | KL
    "Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"

  • #6
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Originally posted by jkd
    Why not scan through the css rules and find those with :hover/:active, then extract the style body and apply those on the appropriate events instead? Would be a little more modular and transparent that way.
    Now that would be ultra cool!
    OracleGuy

  • #7
    Regular Coder
    Join Date
    Jun 2002
    Location
    Victoria, BC, Canada
    Posts
    962
    Thanks
    0
    Thanked 1 Time in 1 Post
    This is quite interesting. There could be something in this if it's developed a little more, i.e. Making it more modular etc.

  • #8
    Senior Coder
    Join Date
    Jun 2002
    Location
    Nashua, NH
    Posts
    1,724
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Here is another possible application:
    www.vladdy.net/Demos/CSSNav.html

    BTW, GP, what do you mean by "more developed" and "more modular"
    Vladdy | KL
    "Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"

  • #9
    Regular Coder
    Join Date
    Jun 2002
    Location
    Victoria, BC, Canada
    Posts
    962
    Thanks
    0
    Thanked 1 Time in 1 Post
    Well, just in following some of the suggestions posted already to make the script more robust, that's all.


  •  

    Posting Permissions

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