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 4 of 4
  1. #1
    Senior Coder timgolding's Avatar
    Join Date
    Aug 2006
    Location
    Southampton
    Posts
    1,519
    Thanks
    114
    Thanked 110 Times in 109 Posts

    child combinator

    I have a site that i thought i would try and get my drop down menu working on IE6 this boring tuesday afternoon.

    The css i am using to handle this hover event is as follows.
    Code:
           ul#top_nav li:hover > ul.sub_menu {
                display: block;
            }
            
            ul#top_nav ul
            {
                display:none;
            }
    As you can see it uses the hover event on the parent li and then the child combinator to set its child ul to display block. As you can imagine this doens't work on IE6. This might be a bit of a long shot for Tuesday afternoon.

    I tried csshover.htc which adds hover support to elements other than the anchor tag in IE6. This hack seems to work for things like
    Code:
    li:hover
    {
     color:green;
    }
    However IE6 doesn't support child combinator so i can get the HTC hack to work for

    Code:
    li:hover > ul.sub_menu
    And i cant even remove the combinator and have
    Code:
    li:hover ul.sub_menu1
    {
       display:block;
    }
    Is there something i can do using the hover HTC? Im even happy to try using some javascript as if they are using IE6 and have JS disabled then tough they shouldn't be such a computer noob.
    You can not say you know how to do something, until you can teach it to someone else.

  • #2
    Senior Coder
    Join Date
    Sep 2010
    Posts
    1,903
    Thanks
    15
    Thanked 226 Times in 226 Posts
    I think you might need to give your code a 'javascript assist' to make it work on IE6, some code that duplicates the style actions, but with simple JS. I wrote a menu with JS assist and it worked all the way back to Windows 95b with IE5.5 .
    Welcome to http://www.myphotowizard.net

    where you can edit images, make a photo calendar, add text to images, and do much more.


    When you know what you're doing it's called Engineering, when you don't know, it's called Research and Development. And you can always charge more for Research and Development.

  • Users who have thanked DrDOS for this post:

    timgolding (09-24-2013)

  • #3
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,849
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • Users who have thanked abduraooft for this post:

    timgolding (09-24-2013)

  • #4
    Senior Coder timgolding's Avatar
    Join Date
    Aug 2006
    Location
    Southampton
    Posts
    1,519
    Thanks
    114
    Thanked 110 Times in 109 Posts
    Thanks guys ill have a look.
    You can not say you know how to do something, until you can teach it to someone else.


  •  

    Tags for this Thread

    Posting Permissions

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