欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

JS特效實(shí)現(xiàn)圖片自動(dòng)播放并可控的效果

 更新時(shí)間:2015年07月31日 09:04:15   作者:html5前端技術(shù)分享  
這篇文章主要介紹了JS代碼實(shí)現(xiàn)圖片自動(dòng)播放并可控的效果,需要的朋友可以參考下

不多說(shuō)了,實(shí)現(xiàn)方法請(qǐng)看下面代碼。

代碼如下:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8"/>
<title>JS代碼實(shí)現(xiàn)圖片自動(dòng)播放并可控的效果</title><base target="_blank" />
<link rel="stylesheet" type="text/css" >
<script type="text/javascript" src="http://hovertree.com/texiao/js/1/js/koala.min.1.5.js"></script>
<script type="text/javascript">
Qfast.add('widgets', { path: "http://hovertree.com/texiao/js/1/js/terminator2.2.min.js", type: "js", requires: ['fx'] });
Qfast(false, 'widgets', function () {
K.tabs({
id: 'decoroll2', //焦點(diǎn)圖包裹id
conId: "decoimg_a2", //大圖域包裹id
tabId: "deconum2", //小圓點(diǎn)數(shù)字提示id
tabTn: "a",
conCn: '.decoimg_b2', //大圖域配置class
auto: 1, //自動(dòng)播放 1或0
effect: 'fade', //效果配置
eType: 'mouseover', // 鼠標(biāo)事件
pageBt: true, //是否有按鈕切換頁(yè)碼
bns: ['.prev', '.next'], //前后按鈕配置class
interval: 3000// 停頓時(shí)間
})
})
</script>
</head>
<body>
<div><a >首頁(yè)</a> <a >原文</a>
<a >特效庫(kù)</a>
</div>
<div id="decoroll2" class="imgfocus">
<div id="decoimg_a2" class="imgbox">
<div class="decoimg_b2">
<a >
<img src="http://hovertree.com/texiao/js/1/img/1.jpg">
</a>
</div>
<div class="decoimg_b2">
<a >
<img src="http://hovertree.com/texiao/js/1/img/2.jpg">
</a>
</div>
<div class="decoimg_b2">
<a >
<img src="http://hovertree.com/texiao/js/1/img/3.jpg">
</a>
</div>
<div class="decoimg_b2">
<a >
<img src="http://hovertree.com/texiao/js/1/img/4.jpg">
</a>
</div>
</div>
<ul id="deconum2" class="num_a2">
<li><a href="javascript:void(0)" hidefocus="true" target="_self">楊冪</a></li>
<li><a href="javascript:void(0)" hidefocus="true" target="_self">范冰冰</a></li>
<li><a href="javascript:void(0)" hidefocus="true" target="_self">高圓圓</a></li>
<li><a href="javascript:void(0)" hidefocus="true" target="_self">劉詩(shī)詩(shī)</a></li>
</ul>
</div>
<br /> 
</body>
</html>

以上代碼就是用JS實(shí)現(xiàn)圖片自動(dòng)播放并可控的效果,希望對(duì)大家有所幫助。

相關(guān)文章

最新評(píng)論