jQuery平滑旋轉(zhuǎn)幻燈片特效代碼分享
本文實(shí)例講述了jQuery平滑旋轉(zhuǎn)幻燈片特效。分享給大家供大家參考。具體如下:
這一款基于jQuery實(shí)現(xiàn)平滑旋轉(zhuǎn)幻燈片代碼,效果超酷,場面相當(dāng)震撼;圖片大小和顏色自定義請修改jQuery-jcImgScroll.js。
運(yùn)行效果圖: -------------------查看效果 下載源碼-------------------

小提示:瀏覽器中如果不能正常運(yùn)行,可以嘗試切換瀏覽模式。
js關(guān)鍵代碼:
<script src="js/jQuery-1.7.1.js" language="javascript" type="text/javascript"></script>
<script src="js/jQuery-easing.js" language="javascript" type="text/javascript"></script>
<script src="js/jQuery-jcImgScroll.js" language="javascript" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
<!--
$(function(){
$("#demo1").jcImgScroll({
});
$("#demo2").jcImgScroll({
count : 7
});
$("#demo3").jcImgScroll({
arrow : {
width:110,
height:342,
x:220,
y:0
},
count : 3,
offsetX : 140,
NumBtn : true,
title:false
});
});
-->
</script>
為大家分享的jQuery平滑旋轉(zhuǎn)幻燈片代碼如下
<head>
<title>jQuery平滑旋轉(zhuǎn)幻燈片代碼</title>
<style>
<!--
/* jQuery jcImgScroll css */
.jcImgScroll { position:relative; height:342px; }
.jcImgScroll li { border:1px solid #ccc; }
.jcImgScroll li a { background:#fff; display:block; height:340px; }
.jcImgScroll li.loading a { background:#fff url(img/loading.gif) no-repeat center center;}
.jcImgScroll li img,.jcImgScroll li,.jcImgScroll em,.jcImgScroll dl { display:none; border:0 none;}
.jcImgScroll em.sPrev { background:url(images/arrow-left.png) no-repeat left center; }
.jcImgScroll em.sNext { background:url(images/arrow-right.png) no-repeat right center;}
.jcImgScroll dl dd { background:url(images/NumBtn.png) no-repeat 0 bottom; text-indent:-9em; }
.jcImgScroll dl dd:hover,.jcImgScroll dl dd.curr { background-position:0 0; }
-->
</style>
<script src="js/jQuery-1.7.1.js" language="javascript" type="text/javascript"></script>
<script src="js/jQuery-easing.js" language="javascript" type="text/javascript"></script>
<script src="js/jQuery-jcImgScroll.js" language="javascript" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
<!--
$(function(){
$("#demo1").jcImgScroll({
});
$("#demo2").jcImgScroll({
count : 7
});
$("#demo3").jcImgScroll({
arrow : {
width:110,
height:342,
x:220,
y:0
},
count : 3,
offsetX : 140,
NumBtn : true,
title:false
});
});
-->
</script>
</head>
<body>
<!-- 代碼 開始 -->
<div id="demo1" class="jcImgScroll">
<ul>
<li><a href="http://www.dhdzp.com/" target="_blank" path="images/01.jpg" title="腳本之家 www.dhdzp.com"></a></li>
<li><a href="http://www.dhdzp.com/" target="_blank" path="images/02.jpg" title="腳本之家 www.dhdzp.com"></a></li>
<li><a href="http://www.dhdzp.com/" target="_blank" path="images/03.jpg" title="腳本之家 www.dhdzp.com"></a></li>
<li><a href="http://www.dhdzp.com/" target="_blank" path="images/04.jpg" title="腳本之家 www.dhdzp.com"></a></li>
<li><a href="http://www.dhdzp.com/" target="_blank" path="images/05.jpg" title="腳本之家 www.dhdzp.com"></a></li>
<li><a href="http://www.dhdzp.com/" target="_blank" path="images/06.jpg" title="腳本之家 www.dhdzp.com"></a></li>
<li><a href="http://www.dhdzp.com/" target="_blank" path="images/07.jpg" title="腳本之家 www.dhdzp.com"></a></li>
</ul>
</div>
<!-- 代碼 結(jié)束 -->
<div style="text-align:center">
<p>{download}</p>
<p>{content}</p>
<p>{google_729x90}</p>
</div>
</body>
</html>
以上就是為大家分享的jQuery平滑旋轉(zhuǎn)幻燈片特效代碼,希望大家可以喜歡,并應(yīng)用到實(shí)踐中。
相關(guān)文章
jQuery異步上傳文件插件ajaxFileUpload詳細(xì)介紹
這篇文章主要介紹了jQuery異步上傳文件插件ajaxFileUpload詳細(xì)介紹,本文首先講解了ajaxFileUpload的參數(shù)、錯(cuò)誤提示等知識(shí),然后給出了簡單使用實(shí)例和ASP.NET MVC模式下的使用實(shí)例,需要的朋友可以參考下2015-05-05
jquery animate圖片模向滑動(dòng)示例代碼
jquery animate() 用于創(chuàng)建自定義動(dòng)畫的函數(shù)。這個(gè)函數(shù)的關(guān)鍵在于指定動(dòng)畫形式及結(jié)果樣式屬性對象。2011-01-01
Jquery的Tabs內(nèi)容輪換效果實(shí)現(xiàn)代碼,幾行搞定
本篇文章主要是對Jquery的Tabs內(nèi)容輪換效果的實(shí)現(xiàn)代碼進(jìn)行了介紹。幾行代碼輕松搞定2014-02-02
選擇TreeView控件的樹狀數(shù)據(jù)節(jié)點(diǎn)的JS方法(jquery)
前些日子為了提高人性化選擇樹狀權(quán)限的功能,根據(jù)樹的結(jié)構(gòu)用jquery寫了個(gè)方法。2010-02-02
jquery動(dòng)態(tài)添加帶有樣式的HTML標(biāo)簽元素方法
下面小編就為大家分享一篇jquery動(dòng)態(tài)添加帶有樣式的HTML標(biāo)簽元素方法,具有很好的參考價(jià)值,希望對大家有所幫助。一起跟隨小編過來看看吧2018-02-02

