资讯

精准传达 • 有效沟通

从品牌网站建设到网络营销策划,从策略到执行的一站式服务

jquery焦点图代码,jquery设置焦点

网页用了插件jquery.royalslider做的焦点图-如何自动播放?

autoPlay:true, 改为如下代码即可:

网站建设哪家好,找创新互联建站!专注于网页设计、网站建设、微信开发、成都小程序开发、集团企业网站建设等服务项目。为回馈新老客户创新互联还提供了东乡免费建站欢迎大家使用!

autoPlay: {

enabled: true, //是否启用自动播放

pauseOnHover: true, //鼠标移入暂停播放

delay: 6000//播放间隔,单位ms

},

制作网页怎样做图片切换效果?最好详细代码!

1、首先输入代码:

div class="wrapper"

div id="focus"

ul

lia href="" target="_blank"img src="img/01.jpg" alt="QQ商城焦点图效果下载" //a/li

2、然后输入代码:

lia href="" target="_blank"img src="img/02.jpg" alt="QQ商城焦点图效果教程" //a/li

lia href="" target="_blank"img src="img/03.jpg" alt="jquery商城焦点图效果" //a/li

lia href="" target="_blank"img src="img/04.jpg" alt="jquery商城焦点图代码" //a/li

3、然后再输入代码:

lia href="" target="_blank"img src="img/05.jpg" alt="jquery商城焦点图源码" //a/li

/ul

/div

/div!-- wrapper end --

/body

4、然后就完成了。

Jquery.SuperSlide扩展效果里的实用焦点图效果代码,求大神,谢谢

以下是全部代码,请自行修改图片及js路径

!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" ""

html xmlns=""

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-实用焦点图"

titleSuperSlide - 实用焦点图/title

script src=""/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"

lia href="#" target="_blank"img src="images/1.jpg"//a/li

lia href="#" target="_blank"img src="images/2.jpg"//a/li

lia href="#" target="_blank"img src="images/3.jpg"//a/li

lia href="#" target="_blank"img src="images/4.jpg"//a/li

/ul

div class="txt-bg"/div

div class="txt"

ul

lia href="#"SuperSlide美女福利图Quiet/a/li

lia href="#"SuperSlide美女福利图DoubleLi/a/li

lia href="#"SuperSlide美女福利图爱的练习曲/a/li

lia href="#"SuperSlide美女福利图夜莺/a/li

/ul

/div

ul class="num"

lia1/aspan/span/li

lia2/aspan/span/li

lia3/aspan/span/li

lia4/aspan/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


网页题目:jquery焦点图代码,jquery设置焦点
URL链接:http://cdkjz.cn/article/dsdpsij.html
多年建站经验

多一份参考,总有益处

联系快上网,免费获得专属《策划方案》及报价

咨询相关问题或预约面谈,可以通过以下方式与我们联系

大客户专线   成都:13518219792   座机:028-86922220