Results 1 to 2 of 2

Thread: AnyLink Drop Down Menu

  1. #1
    Join Date
    Jul 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default AnyLink Drop Down Menu

    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

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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:

    http://www.dynamicdrive.com/dynamicindex1/indexc.html

    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •