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: Wednesday July 18 2012 - 06:07:41

open menu vs open page onclick question


Poster: sherylt __at__ owt.com
Dated: Friday April 26 2002 - 4:46:01 BST

I have a menu that I want to open onclick from a set of graphics. The first two graphics launch a submenu and that works fine. The third just needs to go directly to a single page so an additional menu is not required. This third item does not do anything onclick.

Please see http://users.owt.com/sherylt/costarica/ for the example. "Travel Log" and "Photo Album" work correctly onclick. "Links" needs to directly open a page when clicked on, not spawn a menu. Is this possible?

Thanks,
Sheryl

Re: open menu vs open page onclick question


Poster: webbosom __at__ online.de
Dated: Friday April 26 2002 - 19:09:56 BST

Sure. Just make a menu entry without a "show-menu=xxx". Instead use "http://www.blabla.com" (perhaps with a "target=" to open the Link in any (new) window. If you want, there is an example for singleclick on http://www.webbosom.online.de/index2.htm (Opera = strange behaviour with the flying one)

regs
michael

Re: open menu vs open page onclick question


Poster: sherylt __at__ owt.com
Dated: Friday April 26 2002 - 21:09:23 BST

Thanks Michael, but I think that's what I've done and it does not seem to work. I tried adding a target to point to the parent frame, but that didn't make a difference. I see that it works for you, so I must have something else fouled up. Here is my code, any suggestions? Sheryl

addmenu(menu=["main", // this is the array that contains your menu properties and details
490, // Top
520, // left
150, // Width
1, // Border Width
"", // Screen Position - here you can use "center;middle;right"
style1, // Properties Array - as above
1, // Always Visible - allows the menu item to be visible at all time
"left", // Alignment - sets the menu elements alignment
, // Filter
, // Follow Scrolling
, // Horizontal Menu
, // Keep Alive
, // Position of TOP sub image left:center:right
, // ..Now Obsolete..
1, // Right To Left - Used in Hebrew for example. (1=on/0=off)
1, // Open the Menus OnClick - leave blank for OnMouseover (1=on/0=off)
, // ID of the div you want to hide on MouseOver
,,,, // Reserved for future use
"<img src=/sherylt/costarica/images/travel_log.jpg width=150 height=25 border=0 alt=Travel Log>","show-menu=travel",,,0,
"<img src=/sherylt/costarica/images/photo_album.jpg width=150 height=25 border=0 alt=Photo Album>","show-menu=photo",,,0,
"<img src=/sherylt/costarica/images/links.jpg width=150 height=25 border=0 alt=Links>","http://users.owt.com/sherylt/costarica/links.html target=_parent",,,0
])