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



129 513 172



特效描述: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>



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


热门标签: flash导航菜单 flash导航条 flash导航 flash菜单 flash下拉菜单 flash下拉导航菜单 h5动画导航 h5动画菜单 html5动画导航 html5动画菜单 收缩菜单 收缩导航 右键菜单 导航切换 菜单切换 浮动菜单 浮动导航 滑动导航菜单 滑动导航 滑动菜单 滚动导航菜单 滚动菜单 滚动导航 滑动 滑块 滑动门 触屏滑动 滑动插件 滑块插件 导航菜单 导航条 菜单栏 导航栏 分类导航 响应式导航条 响应式导航 滑动选项卡 滑动切换 导航菜单插件 导航插件 菜单插件

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

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

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