PDA

View Full Version : Is Flex Level DD Menu limited to anchors?



mccaskey
04-25-2012, 06:31 PM
1) Script Title: Flex Level Drop Down Menu

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

3) Describe problem: The documentation says the Flex Level Drop Down Menu is for adding menu to "any link" on a page. The menu will appear below or to the right "of the anchor element."

But is the menu really limited to use with anchors? Could the JQuery function be, for example,

$('span.mylinks').addflexmenu('flexmenu1')
instead of

$('a.mylinks').addflexmenu('flexmenu1')
?

mccaskey
04-28-2012, 02:15 AM
It seems to work, but then the browser's cursor doesn't change into, say, a pointing finger. So using <a> with a null href of some sort is probably better.

ddadmin
04-29-2012, 11:10 PM
It seems to work, but then the browser's cursor doesn't change into, say, a pointing finger. So using <a> with a null href of some sort is probably better.

You can simply use CSS to give those elements a "hand" cursor, for example:


span.mylinks{
cursor: pointer;
}