Your page is in violation of Dynamic Drive's
usage terms, which, among other things, state that the script credit must appear in the source code of the
page(s) using the script. Please reinstate the notice first.
You may take care of the above violation by changing the external tag from (and similar) on all pages using this menu:
HTML Code:
<script src="../js/dropdown.js" type="text/javascript"></script>
to:
HTML Code:
<script src="../js/dropdown.js" type="text/javascript">
/***********************************************
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
</script>
Also, this:
and this:
don't belong in the external script file.
On to your problem - Where you have:
Code:
dropdownmenu(this, event,'../menu1', '135px')
and similar, it should be:
Code:
dropdownmenu(this, event,menu1, '135px')
Since you are accessing the same menu from the same script, no path is required. In fact, that part of the call is not a path at all but a reference to an array. In the case of the example above, it is this array (from the script):
Code:
//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="about.html">About Mike Grant</a>'
menu1[1]='<a href="resume.html">View Resume</a>'
That's where the path will matter. Since you are using it from a different folder and it is referencing pages in the root, the network path will do for any page in any folder (including the root) on the site:
Code:
//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="/about.html">About Mike Grant</a>'
menu1[1]='<a href="/resume.html">View Resume</a>'
One other thing about this script that has nothing to do with your problem is that it has always had a minor error here:
Code:
dropmenuobj.style.left=dropmenuobj.style.top=-500
That line should be:
Code:
dropmenuobj.style.left=dropmenuobj.style.top='-500px';
This might never cause an issue with your particular installation, but it might. So may as well take care of it now.
Bookmarks