Results 1 to 2 of 2

Thread: Dropdown menu with external parameters

  1. #1
    Join Date
    May 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Dropdown menu with external parameters

    I need a simple dropdown that uses an external file for the list of items in the dropdown and links.

    Currently, in my site, the list is built into the template and to change the items in the list I need to change the template and re-upload all the pages that use the template.

    Using an external file, I can make changes to one file, like menuitems.js, and the dropdowns on pages would change.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    It should be possible to convert most menus so the data is pulled from an external .js file instead. For example, in the case of Anylink Menu, simple take everything within the <script>...</script> tags inside the code of Step 1, paste it into a blank text file, and save as as something.js. Then, reference that on your pages instead:

    Code:
    <script type="text/javascript" src="something.js">
    
    //credit notice goes here
    
    </script>
    This tutorial might be helpful.

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
  •