
HTML
<div class="slider" id="banner">
<ul class="slider-main" style="position: relative;" id="index-banner">
<li class="slider-panel slider-panel-selected">
<a href="https://jy.tp.yuanmeng.life/js" target="_blank">
<img width="730" height="454" src="http://img20.360buyimg.com/da/jfs/t1291/276/611199442/66449/1f94042/55910b69N157d70d8.jpg"
alt="" />
</a>
</li>
<li class="slider-panel">
<a href="https://jy.tp.yuanmeng.life/js" target="_blank">
<img width="730" height="454" src="http://img11.360buyimg.com/da/jfs/t1384/142/417829869/95563/3d505b59/5582959dN74e0bf48.jpg"
alt="" />
</a>
</li>
<li class="slider-panel">
<a href="https://jy.tp.yuanmeng.life/js" target="_blank">
<img width="730" height="454" src="http://img12.360buyimg.com/da/jfs/t874/53/1211664391/94667/b7d11dad/558cf9ceNcf9699a9.jpg"
alt="" />
</a>
</li>
</ul>
</div> 引入jQuery.js和SuperSlide插件
<script src="js/jquery.js" type="text/javascript"></script>
<script src="js/jquery.SuperSlide.2.1.1.js" type="text/javascript"></script> 调用SuperSlide插件
$(function() {
$("#banner").slide({
titCell: "#banner-page",
mainCell: "#index-banner",
effect: "left",
scroll: 1,
vis: 1,
autoPlay: true,
prevCell: "#banner-page-left",
nextCell: "#banner-page-right",
autoPage: "<li class='slider-item'> $ </li>",
interTime: 5000
});
$("#banner").hover(function() {
$(this).find(".slider-page").show();
},
function() {
$(this).find(".slider-page").hide();
})
}) superslide相关API,请点击查看<a href='https://jy.tp.yuanmeng.life/js/7.html'>SuperSlide焦点图_Tab切换_图片滚动_无缝滚动 </a>
*
回帖描述:*
链接类型:*
下载链接:*
描述:*
回帖描述:*
链接类型:*
阅读权限:*
下载链接:



聚优部落技术论坛 © 版权所有 鲁ICP备15007479号-6
Copyright(C)web.com, All Rights Reserved.
