Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:34

Layer on MouseOver


Poster: Martin
Dated: Friday February 7 2003 - 17:39:47 GMT

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


Poster: kevin3442
Dated: Friday February 14 2003 - 5:34:25 GMT

Hi Martin,

You can use the menu's built in popup() function to open a menu from a hyperlink. e.g.,
Code:
Click <a href="javascript:popup('menuName',1)">here</a> to open a menu

or
Code:
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


Poster: Martin
Dated: Friday February 14 2003 - 8:57:31 GMT

Hi,

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

Thanx


Poster: kevin3442
Dated: Friday March 7 2003 - 3:41:23 GMT

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

Kevin

Your code


Poster: Martin
Dated: Friday March 7 2003 - 15:57:48 GMT

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

Thanks again