View Full Version : AnyLink Drop Down Menu

07-05-2005, 01:53 PM
currently this script makes you put the link info in the script tag like so:

<script type="text/javascript">
//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="http://www.javascriptkit.com">JavaScript Kit</a>'
menu1[1]='<a href="http://www.freewarejava.com">Freewarejava.com</a>'
menu1[2]='<a href="http://codingforums.com">Coding Forums</a>'
menu1[3]='<a href="http://www.cssdrive.com">CSS Drive</a>'

and then call it like so:

<a href="#" onClick="return dropdownmenu(this, event, menu1, '200px')" onMouseout="delayhidemenu()">News Sites</a>

i want to add the link info into the a href like so:

<a href="#" onClick="return dropdownmenu(this, event,'<a href=""http://cnn.com"">CNN</a>', '200px')" onMouseout="delayhidemenu()">Web Design</a>

but this is breaking because of the '>' in the a href, any suggestions

07-05-2005, 08:09 PM
What you appear to be trying to do is nest in another level to this menu. It was not designed for that. If you want to try to modify it, be my guest. There are many multi-level menus available here:


Just make sure, if you pick one, that it can be positioned on your page the way you want, before you go to all the trouble of configuring it.