jQuery鼠标滚轮控制页面滚动



51 200 67



特效描述:jQuery 鼠标滚轮控制 页面滚动,jQuery鼠标滚轮控制页面滚动

代码结构

1. 引入CSS

<link rel="stylesheet" type="text/css" href="css/public.css" />
<link rel="stylesheet" type="text/css" href="css/zsstyle.css" />
<link rel="stylesheet" type="text/css" href="css/ie9-style.css" />

2. 引入JS

<script src="js/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="js/html5.js" type="text/javascript"></script>
<script src="js/respond.min.js" type="text/javascript"></script>
<script src="js/sectionscroll.js" type="text/javascript"></script>
<script src="js/jquery.mousewheel.min.js" type="text/javascript"></script>

3. HTML代码

<!-- container -->
<section id="section1" class="section section1">
  <article class="sectionWrapper section1Wrapper fadeInDown">
    <div class="sectionTitle">
      <h1 class="txthide">域名3.0</h1>
      <div class="txthide"> <span></span> <span>易名中国手机客户端</span> </div>
      <div id="gem-back"> <a class="gem-back" href="http://www.51qianduan.com//"></a> </div>
      <h2><img src="images/text_01.png" width="260" alt="易名3.0" ></h2>
      <div class="iph_dload"> <a  href="http://www.51qianduan.com//" > <img src="images/iphone_dload.png" width="260px" height="85px" alt="ipone下载"> </a> </div>
      <div class="andr_dload"> <a  href="http://www.51qianduan.com//" > <img src="images/android_dload.png" width="260px" height="85px" alt="安卓下载"> </a> </div>
    </div>
    <div class="secitonbottombg"> <img src="images/fir_bg.jpg" width="1622px" class="imgpng"/> </div>
    <div class="arrow_down"> <a href="#section2"> <img src="images/arrow_down.png" width="42px" height="24px" alt="arrow_down"> </a> </div>
  </article>
</section>
<section id="section2" class="section section2">
  <article class="sectionWrapper section2Wrapper">
    <div class="secitonbottombg"> <img src="images/sec_bg.jpg"  width="1000"  akt="购买域名"/> </div>
    <div class="arrow_down"> <a href="#section3"> <img src="images/arrow_down.png" width="42px" height="24px" alt="arrow_down"> </a> </div>
  </article>
</section>
<section id="section3" class="section section3">
  <article class="sectionWrapper section3Wrapper">
    <div class="secitonbottombg"> <img src="images/thi_bg.jpg"  width="1128" alt="域名交流"/> </div>
    <div class="arrow_down"> <a href="#section4"> <img src="images/arrow_down.png" width="42px" height="24px" alt="arrow_down"> </a> </div>
  </article>
</section>
<section id="section4" class="section section4">
  <article class="sectionWrapper section4Wrapper">
    <div class="secitonbottombg"> <img src="images/fou_bg.jpg"  width="1128" alt="域名查询注册"/> </div>
    <div class="arrow_down"> <a href="#section5"> <img src="images/arrow_down.png" width="42px" height="24px" alt="arrow_down"> </a> </div>
  </article>
</section>
<section id="section5" class="section section5">
  <article class="sectionWrapper section5Wrapper">
    <div class="secitonbottombg"> <img src="images/fif_bg.jpg"  width="668" alt="域名管理"/> </div>
    <div class="arrow_down"> <a href="#section6"> <img src="images/arrow_down.png" width="42px" height="24px" alt="arrow_down"> </a> </div>
  </article>
</section>
<section id="section6" class="section section6">
  <article class="sectionWrapper section6Wrapper">
    <div class="secitonbottombg"> <img src="images/six_bg.jpg"  width="668" alt="新闻资讯"/> <a href="#" > <img src="images/download.jpg" width="300px" height="105px" alt="立即下载"> </a> </div>
  </article>
</section>
<!--回到顶部-->
<div id="arrow_up" > <a href="http://www.51qianduan.com//" > <img src="images/slide_up.png" width="90px" height="90px" alt="回到顶部" > </a> </div>
<script type="text/javascript">
var h=window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
$(window).scroll(function(){
	var Yoffset=window.pageYOffset || document.documentElement.scrollTop;
	if (Yoffset> 2* h) {  
		$("#arrow_up").fadeIn(100);
	}else{
		$("#arrow_up").fadeOut(100);
	};
});
$("#arrow_up").bind("click",function(e){
	e.preventDefault();
	$("body").animate({"scrollTop":"0"},1000);
});
</script>  
<script src="js/sectionscroll.js" type="text/javascript"></script> 



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


热门标签: 滚动 滚动条 页面滚动 滚动插件 滚动条插件 滚动条美化 自动滚动图片轮播 图片文字滚动 文字图片滚动

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

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

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