Hi,
Second posting:
We would like to have an layer over a Link. If the user moves over the link, the layer opens (Like a popup window).
It's easy to get some code from different libraries. In fact, the Milonic menu does the same. To keep the code as small as possible, i don't want to add a lot of redundant code from different sources.
Is it possible to use some of the code from the Milonic menu to draw a simple box? Are samples available?
Thanks
Layer on MouseOver
Hi Martin,
You can use the menu's built in popup() function to open a menu from a hyperlink. e.g.,
or
menuName is the name of the menu you want to open, as defined in the menu array's first element. Passing a 1 as the second parameter will cause the specified menu to open at the mouse pointer, so that the menu's upper left corner is at the pointer. If you want to be able to have more control over where the menu opens, and you don't mind waiting a few more days (early next week), I'll be posting a library of menu positioning functions that I've been playing with. Perhaps one of those will serve your purpose if popup() doesn't.
Hope that helps,
Kevin
You can use the menu's built in popup() function to open a menu from a hyperlink. e.g.,
Code: Select all
Click <a href="javascript:popup('menuName',1)">here</a> to open a menu
Code: Select all
Point <a href="javascript://nothing" onmouseover="popup('menuName',1)">here</a> to open a menu
Hope that helps,
Kevin