Home  >  Article  >  Web Front-end  >  Two simple menu navigation bar examples_HTML/Xhtml_Web page production

Two simple menu navigation bar examples_HTML/Xhtml_Web page production

WBOY
WBOYOriginal
2016-05-16 16:37:531351browse

Menu bar example 1:


Copy code
The code is as follows:

http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
http://www.w3.org/1999/xhtml">

http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"> type="text/javascript">
$(function() {
$("#container .menu1 ul li").click(function() {
var index = $("#container .menu1 ul li").index(this);
$(this).addClass("bg").siblings().removeClass();
$("#container .menu2 ul li ul").eq(index).show().parent().siblings("li").children("ul").hide();
})
})












菜单栏示例二:




复制代码
代码如下:



黄页地区列表






Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn