treehouse : what would you like to learn today?
Web Design Web Development iOS Development

JS Conflict with Anything Slider

  • 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: http://emasai.com/depinho/branding-education.html
    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.
    http://emasai.com/depinho/books-education.html

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

    Thanks
  • Apparently I need to put a noconflict in there, but as I cannot identify what is causing the conflict, I'm stumped.
  • Hmmm, have you tried switching the order in which the .js files load?
  • @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.
  • 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.