继续浏览精彩内容
慕课网APP
程序员的梦工厂
打开
继续
感谢您的支持,我会继续努力的
赞赏金额会直接到老师账户
将二维码发送给自己后长按识别
微信支付
支付宝支付

使用fullPage做的大图片全屏滚动

慕勒551688
关注TA
已关注
手记 250
粉丝 39
获赞 133

本地的图片和css等文件

<!DOCTYPE html>

<html lang="zh-CN">

<head>

<meta charset="utf-8">

<title>fullPage.js — 背景演示_dowebok</title>

<!--网页的链接css <link rel="stylesheet" href="http://cdn.dowebok.com/77/css/jquery.fullPage.css"> -->

<link rel="stylesheet" href="css/jquery.fullPage.css">

<style>

.section1 { background: url(picuter/1.jpg) 50%;}

.slide{ background: url(picuter/statics-topic-pi-assets-img-panel4_bg3.jpg) 50%;}

.section3 { background: url(picuter/statics-topic-pi-assets-img-panel3_bg3.jpg) 50%;}

.section4 { background: url(picuter/statics-topic-pi-assets-img-panel4_bg1.jpg) 50%;}

</style>

<script src="http://cdn.staticfile.org/jquery/1.8.3/jquery.min.js"></script>

<!-- <script src="http://cdn.dowebok.com/77/js/jquery.fullPage.min.js"></script> -->

<script src="script/jquery.fullPage.min.js"></script>

<script>

$(function(){

$('#dowebok').fullpage();

setInterval(function(){

        $.fn.fullpage.moveSlideRight();  //自动向右滚动

    }, 3000);

});

/* function xian(){            moveSectionDown()向下滚动

  alert({}+'a'<{}+'b');

} */

</script>

</head>


<body>


<div id="dowebok">

<div class="section section1"><center>仙哥的天堂</center></div>

<div class="section section2">

   <div class="slide"></div>

        <div class="slide"><img src="picuter/statics-topic-pi-assets-img-panel3_bg1.jpg"></img></div>

        <div class="slide"><img src="picuter/statics-topic-pi-assets-img-panel3_bg2.jpg"></img></div>

</div>

<div class="section section3"></div>

<div class="section section4"></div>

</div>

<a href="http://www.dowebok.com/" >dowebok</a>

<a href="http://www.dowebok.com/77.html" >jQuery全屏滚动插件fullPage.js</a>

<script src="http://hm.baidu.com/h.js?988268596e7a833ffbfb2e9f82d93e18"></script>

</body>

</html>




网络的css和图片等文件



<!DOCTYPE html>

<html lang="zh-CN">

<head>

<meta charset="utf-8">

<title>fullPage.js — 背景演示_dowebok</title>

<link rel="stylesheet" href="http://cdn.dowebok.com/77/css/jquery.fullPage.css">

<style>

.section1 { background: url(http://www.taofoot.com/1.jpg) 50%;}

.slide{ background: url(http://mainsite.oss-cn-hangzhou.aliyuncs.com/statics/topic/pi/assets/img/panel4_bg3.jpg) 50%;}

.section3 { background: url(http://mainsite.oss-cn-hangzhou.aliyuncs.com/statics/topic/pi/assets/img/panel3_bg3.jpg) 50%;}

.section4 { background: url(http://mainsite.oss-cn-hangzhou.aliyuncs.com/statics/topic/pi/assets/img/panel4_bg1.jpg) 50%;}

</style>

<script src="http://cdn.staticfile.org/jquery/1.8.3/jquery.min.js"></script>

<script src="http://cdn.dowebok.com/77/js/jquery.fullPage.min.js"></script>

<script>

$(function(){

$('#dowebok').fullpage();

});

</script>

</head>


<body>


<div id="dowebok">

<div class="section section1"><center>仙哥的天堂</center></div>

<div class="section section2">

   <div class="slide"></div>

        <div class="slide"><img src="http://mainsite.oss-cn-hangzhou.aliyuncs.com/statics/topic/pi/assets/img/panel3_bg1.jpg"></img></div>

        <div class="slide"><img src="http://mainsite.oss-cn-hangzhou.aliyuncs.com/statics/topic/pi/assets/img/panel3_bg2.jpg"></img></div>

</div>

<div class="section section3"></div>

<div class="section section4"></div>

</div>

<a href="http://www.dowebok.com/" >dowebok</a>

<a href="http://www.dowebok.com/77.html" >jQuery全屏滚动插件fullPage.js</a>

<script src="http://hm.baidu.com/h.js?988268596e7a833ffbfb2e9f82d93e18"></script>


</body>

</html>



打开App,阅读手记
0人推荐
发表评论
随时随地看视频慕课网APP