Treehouse: Grow your CSS skills. Land your dream job.

JS Conflict with Anything Slider

  • # February 15, 2011 at 9:44 pm

    I have a problem with a css/js drop down menu and Chris’s old AnythingSlider which I think is a js conflict.

    Here are the links to the pages that are giving me problems:
    This page is correct:
    The menu correctly stays open when the Branding section is active and all the others stay closed.

    This page with the slider is not right because while the Book Cover section should stay open because it’s active, the Branding section is also open even though it is not active, so it should be closed.

    I would greatly appreciate any help, my future depends on it….


    # February 15, 2011 at 11:35 pm

    Apparently I need to put a noconflict in there, but as I cannot identify what is causing the conflict, I’m stumped.

    # February 16, 2011 at 12:44 am

    Hmmm, have you tried switching the order in which the .js files load?

    # February 16, 2011 at 12:45 am

    @virtual – I thought I solved the problem by closing the list item on Branding & Identity but after further reviewing the code, that doesn’t actually solve the problem because it voids what you were trying to do. I added some of the ul’s to random main links and it does the same thing. In the end I think you’re right, it conflicts with anything slider. Maybe Jamy’s idea might work…hopefully.

    # February 16, 2011 at 11:12 am

    Hi guys, thanks for the comments, I got it fixed by switching the order I was calling the js file before calling the Jquery library.

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

You must be logged in to reply to this topic.