Multilinks

Sometimes you want a single hyperlink to lead to several pages and present a dynamic JavaScript menu when clicked. This is usually done through an intermediary page. This JavaScript will provide a dynamic JavaScript menu by creating an absolutely-positioned DIV tag on the fly, which will contain the list of links.




Over 2000+ free Javascript
at JavaScriptBank.com Website
Sampled by JavaScriptBank.com Click for other JavaScript sources

The handler should call the show_hide_multilink function with five parameters:

  • The first parameter should always be this.
  • The second and the third are width and height of the box respectively.
  • The fourth is a style class name, which will be applied to all the elements of created DIV (The DIV itself, LI and A tags). Unless the BODY of your page has background set, specify background in this style class.
  • The last one is a ;-separated list of URLs and anchor texts that should apppear.