html5手机端导航分类选项卡滑动效果



166 662 221



特效描述:html5 手机端导航分类 选项卡滑动效果,可使用于手机端的,品牌分类,滑动选卡

代码结构

1. 引入CSS

<link rel="stylesheet" type="text/css" href="css/pub.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="stylesheet" type="text/css" href="css/pub.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />

2. 引入JS

<script type="text/javascript" src="js/jquery-1.10.1.min.js"></script>
<script type="text/javascript" src="js/iscroll.js"></script>
<script type="text/javascript" src="js/jquery-1.10.1.min.js"></script>
<script type="text/javascript" src="js/iscroll.js"></script>

3. HTML代码

<!DOCTYPE html >
<head>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>品牌团分类</title>
<meta name="keywords" content="">
<meta name="description" content="">
<meta http-equiv="Content-Type" content="text/html" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0 , maximum-scale=1.0, user-scalable=0">
<script type="text/javascript" charset="utf-8">   
	$(function() {   		
		//菜单框架自动获取高度
		var doc_H=$(document).height();	
		$('.Menu_box').height(doc_H);
		window.onresize=function(){
			var doc_H=$(document).height();	
			$('.Menu_box').height(doc_H);
		}
	});
	var myScroll_left;
	var myScroll_right;
	function loaded () {
		myScroll_left = new IScroll('#left_Menu', { mouseWheel: true, click: true });
		myScroll_right = new IScroll('#right_Menu', { mouseWheel: true, click: true });
	}
	document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);
    $(document).ready(function() {	//tbl切换
        $(".ot-menu  li").click(function(){
            tabIndex = $(this).index();
            $(this).siblings("li").removeClass("active");
            $(this).addClass("active");
            $(".ot-maininfo").children(".menutype").hide();
            $(".ot-maininfo").children(".menutype").eq(tabIndex).show();
        });
    });
</script>
</head>
<body onLoad="loaded()">
<header class="OldHeader">
    <div class="OHeader">
        <h1>品牌馆分类</h1>
        <div class="OHeadBack"><a href="#"  onclick="history.go(-1)">返回</a></div>
    </div>
</header>
<div class="mg-auto overflow">
	<!--菜单-->
	<div class="Menu_box">
		<!---------左侧菜单---------->
		<div id="left_Menu">
			<div class="ot-menu" id="scroller">
				<ul>
					<li class="active"><a href="#">家电数码</a> </li>
					<li><a href="#">家电数码</a> </li>
					<li><a href="#">家电数码</a> </li>
					<li><a href="#">家电数码</a> </li>
					<li><a href="#">家电数码</a> </li>
					<li><a href="#">家电数码</a> </li>
					<li><a href="#">家电数码</a> </li>
					<li><a href="#">家电数码</a> </li>
					<li><a href="#">家电数码</a> </li>
					<li><a href="#">家电数码</a> </li>
					<li><a href="#">家电数码</a> </li>
					<li><a href="#">家电数码</a> </li>
					<li><a href="#">家电数码</a> </li>
				</ul>
			</div>
		</div>
		<!---------右侧侧菜单---------->
		<div id="right_Menu">
			<div class="menutype" id="scroller2">
				<a href="#"><img src="images/logo-phl.jpg"></a>
				<a href="#"><img src="images/logo-phl.jpg"></a>
				<a href="#"><img src="images/logo-phl.jpg"></a>
				<a href="#"><img src="images/logo-phl.jpg"></a>
				<a href="#"><img src="images/logo-phl.jpg"></a>
				<a href="#"><img src="images/logo-phl.jpg"></a>
				<a href="#"><img src="images/logo-phl.jpg"></a>
				<a href="#"><img src="images/logo-phl.jpg"></a>
				<a href="#"><img src="images/logo-phl.jpg"></a>
				<a href="#"><img src="images/logo-phl.jpg"></a>
				<a href="#"><img src="images/logo-phl.jpg"></a>
				<a href="#"><img src="images/logo-phl.jpg"></a>
				<a href="#"><img src="images/logo-phl.jpg"></a>
				<a href="#"><img src="images/logo-phl.jpg"></a>
				<a href="#"><img src="images/logo-phl.jpg"></a>
				<a href="#"><img src="images/logo-phl.jpg"></a>
				<a href="#"><img src="images/logo-phl.jpg"></a>
				<a href="#"><img src="images/logo-phl.jpg"></a>
			</div>
		</div>
	</div>
	<!--菜单end-->
</div>
</body>
</html>



用户评论
大牛,别默默的看了,快登录帮我点评一下吧!:)      登录 | 注册


热门标签: 滑动导航菜单 二级导航菜单 滑动选项卡切换 下拉导航菜单 图片滑动 竖直导航菜单 文字滑动 图标导航菜单 滑动手风琴 固定导航菜单 滑动星星打分 侧边导航菜单 树形导航菜单 网址导航菜单 导航菜单插件 文字导航菜单 滚动导航菜单 滑动导航菜单 浮动导航菜单 导航切换 右键菜单 收缩导航菜单 html5动画导航菜单 flash导航菜单 滑动滑过 导航菜单导航条

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

jQuery/js讨论群
群号:642649996
Css3+Html5讨论群
群号:322131262

加群请备注:从官网了解到