There and Back Again

phpdoc.org ie7 problems fixed

If you’ve ran into problems with the menus at phpdoc.org in IE7 you should be good now.

I switched from them being CSS driven to them being jquery driven.

There is nothing like jquery for dom manipulation.

$(document).ready(function() {
        $('#nav ul > li').mouseover(function(e) {
                $('#nav ul ul').hide();
                $(this).find('ul').toggle();
        });
});

4 thoughts on “phpdoc.org ie7 problems fixed

  1. enygma

    I’m only recently discovering/using it after wanting something different than Prototype. Needless to say, I’ve been pleasantly surprised…

  2. Karl

    Nice! Be sure to check out the .hover() method, too. It takes two arguments, one for mouseover and one for mouseout, and it fixes some issues with event bubbling that can occur with the straight mouse… event handlers.

  3. Dan

    I think
    $(this).find(‘ul’).toggle();

    can also be written as
    $(‘ul’,this).toggle();