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: Wednesday July 18 2012 - 06:07:22
Link-based Menu position relative to link
Poster: barneson
Dated: Tuesday October 8 2002 - 17:24:04 BST
I am activating a popup menu with the OnMouseOver function. I would like for the menu to popup near the linked text.
How do I accomplish this without setting the absolute position of the menu in the menu_array3.js file? I realize that this would do the trick, but I would have to reposition the menu every time that I added or subtracted copy from the web page.
Is there a way to open a popup menu which is positioned relative to the cursor or to the text to which I have applied the OnMouseOver function?
I Need This Functionality As Well...
Poster: mjrogan
Dated: Friday July 11 2003 - 15:51:43 BST
Is there anyone who has done this that could share? Thanks!
Poster: kevin3442
Dated: Monday July 14 2003 - 22:17:14 BST
The menu has a built-in function called popup(). Pass the name of the menu you want to open as a string in the function's first parameter.
Code:
popup("menuname")
will open the menu named "menuname" at its preassigned position.
Code:
popup("menuname",1)
will open the named menu at the current mouse pointer position.
This should be fine for most text-based or image-based links. If you'd like a little more control, you could try some additional code I wrote to extend the menu's positioning capabilities. You can download the add-on code as well as some examples and docuementation here.
Hope that helps,
Kevin
positioning
Poster: andrew
Dated: Wednesday July 16 2003 - 14:26:45 BST
Hi, is this tool also capable of using CSS positioning? I want to get rid of the frames in my page, so I want to link the menu-items to a certain ID class which I defined in a seperate CSS file. This means that I only have to maintain one single page which displays all links in a certain area on that page.
Please check http://www.avdwal.nl/altius4/menu/menu.htm.
Poster: andrew
Dated: Wednesday July 16 2003 - 20:04:43 BST
sorry, without the dot at the end, so http://www.avdwal.nl/altius4/menu/menu.htm
Kind regards,
Andre