ryancmartin
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>'
</script>
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
<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>'
</script>
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