Jquery.SuperSlide扩展效果里的实用焦点图效果代码,求大神,谢谢
jQuery(".focusBox").slide({titCell:".numli",mainCell:".pic",effect:"fold",autoPlay:tr...
jQuery(".focusBox").slide({ titCell:".num li", mainCell:".pic",effect:"fold", autoPlay:true,trigger:"click",
//下面startFun代码用于控制文字上下切换
startFun:function(i){
jQuery(".focusBox .txt li").eq(i).animate({"bottom":0}).siblings().animate({"bottom":-36});
}});
怎么写才能实现,有现在的打包吗,谢谢。 展开
//下面startFun代码用于控制文字上下切换
startFun:function(i){
jQuery(".focusBox .txt li").eq(i).animate({"bottom":0}).siblings().animate({"bottom":-36});
}});
怎么写才能实现,有现在的打包吗,谢谢。 展开
3个回答
展开全部
以下是全部代码,请自行修改图片及js路径
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">老差
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Language" content="zh-CN">
<meta name="Keywords" content="SuperSlide,jQuery-实用焦点图">
<meta 物谈name="Description" content="SuperSlide,jQuery-实用焦点图">
<title>SuperSlide - 实用焦点图</title>
<script src="http://libs.baidu.com/jquery/1.4.2/jquery.min.js"></script>
<script src="jquery.SuperSlide.2.1.1.js"></script>
</head>
<body>
<style type="text/css">
*{margin:0; padding:0; list-style:none; }
body{ background:#fff; font:normal 12px/22px 宋体; }
img{ border:0; }
a{ text-decoration:none; color:#333; }
a:hover{ color:#1974A1; }
.focusBox { position: relative; width: 320px; height: 240px; overflow: hidden; font: 12px/1.5 Verdana, Geneva, sans-serif; text-align: left; background: white; }
.focusBox .pic img { width: 320px; height: 240px; display: block; }
.focusBox .txt-bg { position: absolute; bottom: 0; z-index: 1; height: 36px; width:100%; background: #333; filter: alpha(opacity=40); opacity: 0.4; overflow: hidden; }
.focusBox .txt { position: absolute; bottom: 0; z-index: 2; height: 36px; width:100%; overflow: hidden; }
.focusBox .txt li{ height:36px; line-height:36px; position:absolute; bottom:-36px;}
.focusBox .txt li a{ display: block; color: white; padding: 0 0 0 10px; font-size: 12px; font-weight: bold; text-decoration: none; }
.focusBox .num { position: absolute; z-index: 3; bottom: 8px; right: 8px; }
.focusBox .num li{ float: left; position: relative; width: 18px; height: 15px; line-height: 15px; overflow: hidden; text-align: center; margin-right: 1px; cursor: pointer; }
.focusBox .num li a,.focusBox .num li span { position: absolute; z-index: 2; display: block; color: white; width: 100%; height: 100%; top: 罩含碰0; left: 0; text-decoration: none; }
.focusBox .num li span { z-index: 1; background: black; filter: alpha(opacity=50); opacity: 0.5; }
.focusBox .num li.on a,.focusBox .num a:hover{ background:#f60; }
</style>
<div class="focusBox" style="margin:0 auto">
<ul class="pic">
<li><a href="#" target="_blank"><img src="images/1.jpg"/></a></li>
<li><a href="#" target="_blank"><img src="images/2.jpg"/></a></li>
<li><a href="#" target="_blank"><img src="images/3.jpg"/></a></li>
<li><a href="#" target="_blank"><img src="images/4.jpg"/></a></li>
</ul>
<div class="txt-bg"></div>
<div class="txt">
<ul>
<li><a href="#">SuperSlide美女福利图Quiet</a></li>
<li><a href="#">SuperSlide美女福利图DoubleLi</a></li>
<li><a href="#">SuperSlide美女福利图爱的练习曲</a></li>
<li><a href="#">SuperSlide美女福利图夜莺</a></li>
</ul>
</div>
<ul class="num">
<li><a>1</a><span></span></li>
<li><a>2</a><span></span></li>
<li><a>3</a><span></span></li>
<li><a>4</a><span></span></li>
</ul>
</div>
<script type="text/javascript">
jQuery(".focusBox").slide({
titCell : ".num li",
mainCell : ".pic",
effect : "fold",
autoPlay : true,
trigger : "click",
startFun : function (i) {
jQuery(".focusBox .txt li").eq(i).animate({
"bottom" : 0
}).siblings().animate({
"bottom" : -36
});
}
});
</script>
</body>
</html>
2015-07-08
展开全部
1.把在线预橡冲览里调好参数。
2.把当前调用代码复制到下载的文件锋晌demo/iframe/10.0-txtMarquee-top-iframe.html里,替换银如锋jquery代码,即可修改效果。
2.把当前调用代码复制到下载的文件锋晌demo/iframe/10.0-txtMarquee-top-iframe.html里,替换银如锋jquery代码,即可修改效果。
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
$(function(){$('#v-focus-nav ul li').mouseover(function(){$(this).addClass("cur").siblings().removeClass('cur');$('#v-focus-picbox ul li').eq($(this).index()).fadeIn().siblings().hide();});var length=$('#v-focus-nav ul li'唤举).length;function ro(){var cur=$('和亮碧#v-focus-nav ul .cur'键和);console.log(cur);next=(cur.index()
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询