Skip to content Skip to sidebar Skip to footer

Can't Get Dropotron Script To Work Properly [html/css/javascript]

I asked a previous question about creating a dropdown menu on my webpage similar to a template. I figured out that the template was using dropotron to create this menu. I downloade

Solution 1:

For formatting purposes I'm putting this as an answer. Your scripts should look like this at the bottom and there should be no scripts in the head:

<!-- Scripts --><scriptsrc="assets/js/jquery.min.js"></script><scriptsrc="assets/js/jquery.poptrox.min.js"></script><scriptsrc="assets/js/jquery.scrolly.min.js"></script><scriptsrc="assets/js/jquery.scrollex.min.js"></script><scriptsrc="assets/js/skel.min.js"></script><scriptsrc="assets/js/util.js"></script><!--[if lte IE 8]><script src="assets/js/ie/respond.min.js"></script><![endif]--><scriptsrc="assets/js/jquery.dropotron.js"></script><script>
  $(function() {

    // Note: make sure you call dropotron on the top level <ul>
    $('#nav > ul').dropotron({ 
      offsetY: -10// Nudge up submenus by 10px to account for padding
    });

  });
</script><scriptsrc="assets/js/main.js"></script>

By the way, your <--[if lte blah] didn't have the closing angle bracket > all the way at the end

Post a Comment for "Can't Get Dropotron Script To Work Properly [html/css/javascript]"