|
|
Can a dhtml javascript menu item that expands the submenu items when selected work as link?
Return to Recent Questions
Q:
Can a dhtml javascript menu item that expands the submenu items when selected also work as a link?
A:
Actually you can't use links for the top items in the XP Style.
But you can write:
["<a href='index.html' class='home'>Home</a>","", "", "", "", "Return to Index page", "", "0", "", ],
["<a href='http://www.domain.uk' class='home'>About Us</a>","", "", "", "", "", "", "0", "", ],
["|Introduction","http://www.domain.uk/introduction.htm", "", "", "", "", "", "", "", ],
And create styles
.home{
color: #FFFFFF;}
.home:hover{
color: #FFBEBE;}
But in that case the submenu and link open when you press "About Us" item. I think that it is not very
good behaviour. You can also try to specify target parameter
["<a href='index.html' class='home'>Home</a>","", "", "", "", "Return to Index page", "", "0", "", ],
["<a href='http://www.domain.uk' class='home' target="_blank">About Us</a>","", "", "", "", "", "", "0", "", ],
["|Introduction","http://www.domain.uk/introduction.htm", "", "", "", "", "", "", "", ],
Return to Recent Questions
Related:
- March 16, 2009 - How can I change item width in the Vista templates in the dhtml javascript menu?
- Apr 03, 2009 - Our submenus don't appear alignment to the toplevel dhtml javascript menu.
- Apr 20, 2009 - I need the BG color behind items to be flush with the sides of the dhtml javascript menu.
- Apr 25, 2009 - How to work with drop down menu web and submenus in JSP?
- May 08, 2009 - The dhtml javascript menu works on our integration system but doen't work on the production system.
- May 22, 2009 - I would like to have links of web navigation bar to our website when javascript turned off.
- May 24, 2009 - Is it possible to have wrap in the middle of the text in the dhtml javascript menu?
- May 27, 2009 - The submenu of dynamic css menu disappears, it goes BEHIND the flash and can't be seen.
- May 29, 2009 - Will this menu popup work for us, as we use IFrames and Frameset?
- Jun 11, 2009 - Can I keep a submenu shown even when my mouse pointer is NOT over dhtml javascript menu
- Jun 16, 2009 - I want to add a javascript link with onclick event to the drop down menu web
|