"Drop Up" option for Anylink and Anylink CSS Menu
by
, 06-01-2010 at 08:19 AM (44279 Views)
Quite a few members have asked for the ability to have a menu drop upwards (instead of the default downwards) for either Anylink Menu and Anylink CSS Menu. With that said, use the below attached modified versions of the respective .js files for the two scripts to achieve this. Then, inside the HTML markup for the anchor link of a menu, to get the menu to drop up for it, make use of the data-dir attribute:
The presence of the attribute in red in combination with the modified .js file will cause the menu for that anchor to drop upwards.Code:<p><a href="http://www.dynamicdrive.com" class="menuanchorclass" rel="anylinkmenu1" data-dir="up">Default Example</a></p>
Enjoy!