onopen and onclose Menu Properties

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

onopen and onclose Menu Properties

Post by kevin3442 »

Hi All,

I think it would be useful to have menu properties, say onopen and onclose, that you could use to fire a function when a menu opens or closes respectively. Currenly, the onfunction and offfunction menu item properties are it. Don't get me wrong... those are great and can certainly substitute for onopen and onclose menu properties in some circumstances. But the onfunction and offfunction are limited to individual items, making it harder to use them to help track/do things based on opening and closing of a whole menu.

Respecfully submitted,

Kevin
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

I agree Kevin, you can't have too many events at one's disposal, ya know? I also think an onClick should also be implemented. I can think of a few instances where it may be helpful. And you would not have to rely on putting the javascript: in the url. What do you think? Do you think the url=javascript: is enough?
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

As you say Dave, can't have too many events ;) ... yes, I agree. Having onclick available might also stifle IE's annoying propensity to de-animate animated gifs.

Cheers,

Kevin
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

So what do ya think there Andy? Is it a possibility? At least on the todo list? ;) Us javascript junkies love having as many events to latch on to as possible... :lol:
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
Post Reply