PDA

View Full Version : AnyLink CSS Vertical Menu - on click rather than hover?



batfastad
12-06-2006, 08:04 PM
1) Script Title:
AnyLink CSS Vertical Menu

2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex1/anylinkcss2.htm

3) Describe problem:
Hi everyone

I was wondering if it's possible to change the behaviour of the AnyLink CSS Vertical Menu script so that the vertical menu pops up when you click the link rather than hover over it.

Is that possible?
Or does that represent a pretty major change in the working of the script?

Thanks in advance

Ben

Twey
12-06-2006, 08:14 PM
On the contrary, it's very simple. Take:
<a href="http://www.dynamicdrive.com/" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'anylinkmenu1')">Web Design</a>And instead use:
<a href="http://www.dynamicdrive.com/" onclick="dropdownmenu(this, event, 'anylinkmenu1');return clickreturnvalue();">Web Design</a>

batfastad
12-06-2006, 08:25 PM
Wow, excellent stuff.
Works straight away.

Thanks for the quick reply! :D

batfastad
12-06-2006, 11:44 PM
Just had one funny thing happen with this though.
It seems the first time you try and activate it on the page, you have to give it a double click, or 2 consecutive single-clicks.

From then after a single click works fine.

This happens in both IE 6 and FF 1.5

Any ideas or is it just something weird?


Thanks

Twey
12-07-2006, 11:43 AM
Hm, sounds odd. Do you have a demo page?