menu drop down by Deluxe-Menu.com

DHTML Faq » Can a pure css menu item that expands the submenu items when selected work as link?

Can a pure css menu item that expands the submenu items when selected work as link?

Filed under: Recent Posts — Tags: , , — admin @ November 20, 2008 at 3:00 pm

Q:

Can a pure css menu item that expands the submenu items when selected also work as a link?

A:

Actually you cannot 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", "", "", "", "", "", "", "", ],

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment