From: David C. <dle...@ya...> - 2001-02-17 16:40:08
|
Hey Ken, Some good stuff there. Let me start out by explaining the goal of the original widget. I wanted to be able to use the wipe.js to make the popup.js appear when triggered by an image button (based on buttonimage.js). I wanted to use the popup.js as is for compatibility purposes (have made changes now as noted below). Second, I wanted to have several instances on the page that would not interfere with each other. Changes to popup.js: Altered the create listener to make it precreate added line to precreate listener to remove itself NN6 has a real problem with execution speed when too many listeners are active added lines to mouse item events to ignore submenu items and blank items. To address your comments (just why they are what they are, not that they cannot be changed) "Also, it seems unreasonable to to provide information like menu depth and number of submenus when it has all the info necessary to to figure that stuff out." number of submenus: The structure is that it names the main menu (the one with the effect) "menu" nad each submenu "MenuSub[]" as part of an array. This uniform naming allows the resizing and assigning of submenus to be done with just a number. I could have assigned the submenus as they were initialized also. That may be a good change. The menu depth is left over code, not removed yet. The widget now calculates the total display width of the menu system for the "trapping" layer. Other items in the initial setup "items below main" I am working on having the widget calculate this I am having problems understanding what the goals of your code are. However I have just started looking at it and will probably understand better after going over it a few times. If you have time, could you write out what it is supposed to do? Maybe the fasttreenode.js or treenode.js is closer to what you are trying to do? They are available at Richard's site under Richard's examples. http://www.resass.f2s.com/dynapi/php/index2.php For everyone else, we are discussing my image button menu widget. Viewable here: http://www.merlinsworld.net/dynapi_ri_dcexamples/button_menu.html Cheers Dave C. "You Changed What?!?" __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ |