Compact Drop Down Menu -- Can there be an external file?
1) Script Title: Compact Drop Down Menu
2) Script URL (on DD): http://dynamicdrive.com/dynamicindex1/compactmenu.htm
3) Describe problem: This script works perfectly, but I was trying to create an external file, such as the Smooth Menu Navigation Bar can have, and it is not working for me. Can I make an external file for the Compact Drop Down Menu Script? If so, could you tell me what I need to do?
I had put the section that needed to go in the body instead into a file called sitemapmobile.html, and then I put this as the body:
Code:
<div id="menu3">
<noscript>
<a href="sitemapmobile.html"></a>
</noscript>
</div>
What am I doing wrong, or will this code not work with an external file?
I have this as the head section on the page:
Code:
<!-- Required Libraries -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/modernizr/2.7.1/modernizr.min.js"></script>
<!-- Load Menu Specific Files -->
<script src="compactmenu.js"></script>
<link rel="stylesheet" type="text/css" href="compactmenu.css" />
<script>
$(function() {
$("#menu3").menu({
theme: 'theme-theme3',
transition: 'set3'
});
});
</script>