Grow your CSS skills. Land your dream job.

MenuFader revealing multiple divs

  • # January 16, 2009 at 3:31 pm

    Hi,
    I am new to javascript and would like to get the menufader to reveal multiple divs

    Code:

    Now it only make visible a div and not the childsclass of these last one.

    If somebody has a clu that would lead me somewhere, ike a tutorial on multiple function for javascript, that would be awesome.

    Cheers

    # January 16, 2009 at 3:50 pm

    oh maybe it’s easier. It affects all inside divs to display none.
    If it can only affect the top div and not the childs that would solve it.

    # January 16, 2009 at 3:55 pm

    well i guess i solved it. maybe a bit dirt but it works

    if added:

    Code:
    $(this).parent().find(“MYDIV”).fadeIn();

    after this one

    Code:
    $(“#content”).find(“div:visible”).fadeOut(“fast”, function(){
    //once the fade out is completed, we start to fade in the right div
    $(this).parent().find(“#”+idToLoad[0]).fadeIn();

    If somebody as a better trick let me know :)

    # January 22, 2009 at 1:58 pm

    well all was going fine until I tested freaking IE. even 7 breaks on me.

    Trying to figure things out again:P

    here’s my latest code. If somebody knows the trick let me know :)

    Code:
    # February 8, 2009 at 4:04 am

    sorry no one has been here to help dude, but hopefully someone with jQuery knowledge can help

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".