I was very impressed with the functionality of DHTMLlab.com's hiermenu.js script, which produces very nice and very customizable hierarchial DHTML dropdown menus. This single script works on most modern browsers flawlessly.
The problem is that to make the script work on multiple browsers and platforms, the designers had to add a TON of if/else blocks, conditional statements, configuration functions and the like. The script is nice, but it's a 20k monster.
What I would like to see is a customizable script just like hiermenus.js, but with a different approach:
Instead of one big script that tries to be all things to all browsers, I want a set of small, streamlined scripts that all work perfectly; each in only one type of browser.
You could then conditionally load the appropriate script using the following method:
Anybody know of a resource on the web where such scripts are available? I may try to develop them myself, but I don't want to re-invent the wheel.
Thanks,
Petey
The problem is that to make the script work on multiple browsers and platforms, the designers had to add a TON of if/else blocks, conditional statements, configuration functions and the like. The script is nice, but it's a 20k monster.
What I would like to see is a customizable script just like hiermenus.js, but with a different approach:
Instead of one big script that tries to be all things to all browsers, I want a set of small, streamlined scripts that all work perfectly; each in only one type of browser.
You could then conditionally load the appropriate script using the following method:
Code:
if (browser = foo)
document.write("<script language='javascript' src='fooScript.js'>");
Anybody know of a resource on the web where such scripts are available? I may try to develop them myself, but I don't want to re-invent the wheel.
Thanks,
Petey