Results 1 to 2 of 2

Thread: AnyLink Vertical Menu used with Scripts

  1. #1
    Join Date
    Sep 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post AnyLink Vertical Menu used with Scripts

    1) Script Title: AnyLink Vertical Menu

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...nkvertical.htm

    3) Describe problem:
    I need to find a way to run a function instead of a simple html link (see example below). Anyone has any idea how this can be done?

    instead of:
    menu1[1]='<a href="test.html">TEST </a>'

    use something in the line of:
    menu1[1]='<a href="javascript:changetwo('images/titles_23.gif', 'test.html')">TEST </a>'

  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

    Try:

    Code:
    menu1[1]='<a href="#" onclick="changetwo(\'images/titles_23.gif\', \'test.html\');return false;">TEST</a>'
    However, not knowing what changetwo() does, it may cause minor problems.
    - 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
  •