去网上下载一个,很多
http://www.designchemical.com/lab/jquery-vertical-mega-menu-plugin/examples/
jquery menu
http://www.open-open.com/news/view/19debf3
这个网上太多了......
javascript菜单
window.mm_menu_1206014015_0 = new Menu("root",102,18,"",12,"#FFFFFF","#FFFFFF","#990000","#99CC33","center","middle",3,0,1000,-5,7,true,true,true,0,true,true);
mm_menu_1206014015_0.addMenuItem("基本服务内容");
mm_menu_1206014015_0.addMenuItem("增值服务内容");
mm_menu_1206014015_0.addMenuItem("公寓服务内容");
mm_menu_1206014015_0.hideOnMouseOut=true;
mm_menu_1206014015_0.bgColor='#555555';
mm_menu_1206014015_0.menuBorder=0;
mm_menu_1206014015_0.menuLiteBgColor='#FFFFFF';
mm_menu_1206014015_0.menuBorderBgColor='#777777';
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <style type="text/css"> #navigation { width: 784px; padding: 8px; margin: 8px auto; background: 3b5998; height: 18px; } #navigation ul li { float: left; margin-right: 14px; position: relative; z-index: 100; } #navigation ul li a { display: block; padding: 0 8px; background: #EEEEEE; font-weight: 700; } #navigation ul li ul { background-color: #88c366; position: absolute; width: 80px; overflow: hidden; display: none; } #navigation ul li:hover ul { background-color: #88C366; position: absolute; width: 100px; display: block; } #navigation ul li ul li { border-bottom: 1px solid #BBB; text-align: left; width: 100%; } </style> </head> <body> <div id="navigation" class="navigation"> <ul> <li><a href="#">首页</a></li> <li><a href="#">衬衫</a> <ul> <li><a href="#">短袖衬衫</a></li> <li><a href="#">长袖衬衫</a></li> <li><a href="#">无袖衬衫</a></li> </ul> </li> <li><a href="#">卫衣</a> <ul> <li><a href="#">开襟卫衣</a></li> <li><a href="#">套头卫衣</a></li> </ul> </li> <li><a href="#">裤子</a> <ul> <li><a href="#">休闲裤</a></li> <li><a href="#">卡其裤</a></li> <li><a href="#">牛仔裤</a></li> <li><a href="#">短裤</a></li> </ul> </li> <li><a href="#">联系我们</a></li> </ul> </div> </body> </html>
这是我刚刚写的一个简单的鼠标悬停效果,希望可以帮到你,谢谢