This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes HTML, CSS and JavaScript and the fly likes web technology Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "web technology" Watch "web technology" New topic

web technology

bala kan
Ranch Hand

Joined: Aug 20, 2012
Posts: 44
hi guys, first of all, i ask thanks for all quick responses given by you all

actually, i need to create nested submenu, in which i have to create main menu "menu" after i am getting mouse over this, submenu "submenu1" should appear..

similarly,after getting mouse over it, the nested submenu "nested submenu1" should appear..

then, after getting mouse out of the nested submenu, both the submenu and nested submenu should disappear..

these are my requirements.. i have done it but i could not able to make my submenu "submenu1" to still appear after getting mouse move out of submenu1

my codes are as follows

thanks in advance
Keith Wood
Ranch Hand

Joined: Aug 28, 2012
Posts: 38

It's invalid HTML to have a div directly within a ul - it should only contain li's. So restructure your menu to have embedded lists for the sub-menus:

Then if you were using jQuery the code to show/hide the menus would be

Author of the upcoming "Extending jQuery" book from Manning.
bala kan
Ranch Hand

Joined: Aug 20, 2012
Posts: 44
thank you so much mr.keith wood for your quick and valuable response..
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: web technology