Layer on MouseOver

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
User avatar
Martin
Mega User
Mega User
Posts: 113
Joined: Fri Jul 05, 2002 11:57 pm
Location: Zollikon, Switzerland

Layer on MouseOver

Post by Martin »

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
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hi Martin,

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
or

Code: Select all

Point <a href="javascript://nothing" onmouseover="popup('menuName',1)">here</a> to open a menu
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
User avatar
Martin
Mega User
Mega User
Posts: 113
Joined: Fri Jul 05, 2002 11:57 pm
Location: Zollikon, Switzerland

Post by Martin »

Hi,

This sounds nice to me. It's not a problem to wait a few more days. Please keep me up to date.

Thanx
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Don't know if you're still interested, but if you are, have a look at this message.

Kevin
User avatar
Martin
Mega User
Mega User
Posts: 113
Joined: Fri Jul 05, 2002 11:57 pm
Location: Zollikon, Switzerland

Your code

Post by Martin »

Thanks for the code. I will do the first tests next week. I'll will give some feedback later on.

Thanks again
Post Reply