jquery實(shí)現(xiàn)圖片水平滾動效果代碼分享
本文實(shí)例講述了jquery實(shí)現(xiàn)圖片水平滾動效果,分享給大家供大家參考。具體如下:
運(yùn)行效果圖:-------------------查看效果-------------------

小提示:瀏覽器中如果不能正常運(yùn)行,可以嘗試切換瀏覽模式。
為大家分享的jquery實(shí)現(xiàn)圖片水平滾動效果代碼如下
<HEAD>
<META content="text/html; charset=gb2312" http-equiv="Content-Type">
<TITLE>jquery實(shí)現(xiàn)圖片水平滾動效果</TITLE>
<LINK rel="stylesheet" type="text/css" href="css/style.css">
<SCRIPT type="text/javascript" src="js/ga.js"></SCRIPT>
<SCRIPT type="text/javascript" src="js/jquery.js"></SCRIPT>
</HEAD>
<BODY>
<!--演示內(nèi)容開始-->
<SCRIPT type="text/javascript" src="js/jquery.min.1.5.1.js"></SCRIPT>
<SCRIPT type="text/javascript" src="js/jquery.ui.1.8.10.js"></SCRIPT>
<SCRIPT type="text/javascript" src="js/jCoverflip.js"></SCRIPT>
<DIV class="artist_flow_contn">
<UL id="flip" class="ui-jcoverflip">
<LI style="left: 80px; bottom: 20px;" class="ui-jcoverflip--item"><A href="javascript:;"><IMG
style="width: 120px; display: inline-block;" border="0" src="images/01.jpg"></A><SPAN
style="display: none;" class="title"><A href="#"
target="_blank">jquery圖片切換插件制作圖片層疊縮放展示效果</A></SPAN></LI>
<LI style="left: 220px; bottom: 20px;" class="ui-jcoverflip--item"><A href="javascript:;"><IMG
style="width: 160px; display: inline-block;" border="0" src="images/02.jpg"></A><SPAN
style="display: none;" class="title"><A href="#"
target="_blank">jquery圖像幻燈片制作大小圖片切換滾動展示</A></SPAN></LI>
<LI style="left: 400px; bottom: 20px;" class="ui-jcoverflip--item"><A href="javascript:;"><IMG
style="width: 120px; display: inline-block;" border="0" src="images/03.jpg"></A><SPAN
style="display: none;" class="title"><A href="#"
target="_blank">jquery圖片放大插件鼠標(biāo)滑過圖片放大效果</A></SPAN></LI>
<LI style="left: 530px; bottom: 20px;" class="ui-jcoverflip--item"><A href="javascript:;"><IMG
style="width: 120px; display: inline-block;" border="0" src="images/04.jpg"></A><SPAN
style="display: none;" class="title"><A href="#"
target="_blank">jquery圖片放大點(diǎn)擊小圖放大查看大圖效果</A></SPAN></LI>
<LI style="left: 660px; bottom: 20px;" class="ui-jcoverflip--item"><A href="javascript:;"><IMG
style="width: 120px; display: inline-block;" border="0" src="images/05.jpg"></A><SPAN
style="display: none;" class="title"><A href="#"
target="_blank">jquery圖片切換插件制作圖片與文字切換特效</A></SPAN></LI>
<LI style="left: 790px; bottom: 20px;" class="ui-jcoverflip--item"><A href="javascript:;"><IMG
style="width: 120px; display: inline-block;" border="0" src="images/06.jpg"></A><SPAN
style="display: none;" class="title"><A href="#"
target="_blank">div+css多張背景圖片規(guī)范寫法圖片透明度顯示</A></SPAN></LI>
<LI style="left: 920px; bottom: 20px;" class="ui-jcoverflip--item"><A href="javascript:;"><IMG
style="width: 120px; display: inline-block;" border="0" src="images/07.jpg"></A><SPAN
style="display: none;" class="title"><A href="#"
target="_blank">CSS如何定位工程</A></SPAN></LI>
<SPAN style="display: none; opacity: 0;"
class="title ui-jcoverflip--title"><A href="#"
target="_blank">CSS如何定位工程</A></SPAN><SPAN style="display: none; opacity: 0;"
class="title ui-jcoverflip--title"><A href="#"
target="_blank">div+css多張背景圖片規(guī)范寫法圖片透明度顯示</A></SPAN><SPAN style="display: none; opacity: 0;"
class="title ui-jcoverflip--title"><A href="#"
target="_blank">jquery圖片切換插件制作圖片與文字切換特效</A></SPAN><SPAN style="display: none; opacity: 0;"
class="title ui-jcoverflip--title"><A href="#"
target="_blank">jquery圖片放大點(diǎn)擊小圖放大查看大圖效果</A></SPAN><SPAN style="display: none; opacity: 0;"
class="title ui-jcoverflip--title"><A href="#"
target="_blank">jquery圖片放大插件鼠標(biāo)滑過圖片放大效果</A></SPAN><SPAN style="display: block; opacity: 1;"
class="title ui-jcoverflip--title"><A href="#"
target="_blank">jquery圖像幻燈片制作大小圖片切換滾動展示</A></SPAN><SPAN style="display: none; opacity: 0;"
class="title ui-jcoverflip--title"><A href="#"
target="_blank">jquery圖片切換插件制作圖片層疊縮放展示效果</A></SPAN>
</UL>
<DIV id="scrollbar" class="ui-slider ui-slider-horizontal ui-widget ui-widget-content ui-corner-all"><A
style="left: 16.66%;" class="ui-slider-handle ui-state-default ui-corner-all"
href="#"></A></DIV>
</DIV>
<SCRIPT type="text/javascript">
$(document).ready(function(){
// cover flip effects //
//var noOfArtists = 31; //jx
var noOfArtists = 7; //jx
$('#flip').jcoverflip({
current: 0,
beforeCss: function(el, container, offset){
return [$.jcoverflip.animationElement(el, {
left: (container.width() / 2 - 220 - 150 * offset + 20 * offset) + 'px',
bottom: '20px'
}, {}), $.jcoverflip.animationElement(el.find('img'), {
width: Math.max(10, 120 - 0 * offset * offset) + 'px'
}, {})];
},
afterCss: function(el, container, offset){
return [$.jcoverflip.animationElement(el, {
left: (container.width() / 2 + 100 + 130 * offset) + 'px',
bottom: '20px'
}, {}), $.jcoverflip.animationElement(el.find('img'), {
width: Math.max(10, 120 - 0 * offset * offset) + 'px'
}, {})];
},
currentCss: function(el, container){
return [$.jcoverflip.animationElement(el, {
left: (container.width() / 2 - 80) + 'px',
bottom: '20px'
}, {}), $.jcoverflip.animationElement(el.find('img'), {
width: '160px'
}, {})];
},
change: function(event, ui){
//jx $('#scrollbar').slider('value', ui.to * 10);
$('#scrollbar').slider('value', ui.to * (100 / (noOfArtists - 1))); //jx
}
});
$('#scrollbar').slider({
//jx value: 50,
value: 0, //init. pic is the beginning of the artists list, so change from 50 (middle) to 0
//jx step: 10,
step: 100 / (noOfArtists - 1), //jx
stop: function(event, ui){
if (event.originalEvent) {
//jx var newVal = Math.round(ui.value / 10);
var newVal = Math.round(ui.value / 100 * (noOfArtists - 1)); //jx
$('#flip').jcoverflip('current', newVal);
//jx $('#scrollbar').slider('value', newVal * 10);
$('#scrollbar').slider('value', newVal / (noOfArtists - 1) * 100); //jx
}
}
});
// cover flip effects //
});
</SCRIPT>
<!--演示內(nèi)容結(jié)束-->
</BODY>
</HTML>
以上就是為大家分享的jquery實(shí)現(xiàn)圖片水平滾動效果代碼,希望大家可以喜歡。
- 基于jQuery的公告無限循環(huán)滾動實(shí)現(xiàn)代碼
- jQuery插件實(shí)現(xiàn)文字無縫向上滾動效果代碼
- jquery插件之文字間歇自動向上滾動效果代碼
- jQuery插件scroll實(shí)現(xiàn)無縫滾動效果
- jQuery模擬新浪微博首頁滾動效果的方法
- jquery實(shí)現(xiàn)多行文字圖片滾動效果示例代碼
- 一個jquery實(shí)現(xiàn)的不錯的多行文字圖片滾動效果
- 使用jquery animate創(chuàng)建平滑滾動效果(可以是到頂部、到底部或指定地方)
- jquery實(shí)現(xiàn)的圖片點(diǎn)擊滾動效果
- jquery xMarquee實(shí)現(xiàn)文字水平無縫滾動效果
- jQuery實(shí)現(xiàn)無限往下滾動效果代碼
相關(guān)文章
基于jquery中children()與find()的區(qū)別介紹
本篇文章介紹了,基于jquery中children()與find()的區(qū)別,需要的朋友參考下2013-04-04
jQuery simplePage+AJAX plus分頁插件用法實(shí)例
這篇文章主要介紹了jQuery simplePage+AJAX plus分頁插件用法,結(jié)合實(shí)例形式分析了jQuery基于extend擴(kuò)展實(shí)現(xiàn)分頁插件的具體技巧,需要的朋友可以參考下2016-02-02
jQuery1.9.1針對checkbox的調(diào)整方法(prop)
這篇文章主要介紹了jQuery1.9.1針對checkbox的調(diào)整方法,用prop代替attr2014-05-05
jQuery實(shí)現(xiàn)邊框動態(tài)效果的實(shí)例代碼
這篇文章給大家分享了一個jQuery邊框動態(tài)的效果,當(dāng)鼠標(biāo)移動到邊框區(qū)域的時候,邊框會有個動態(tài)的加載動畫效果,實(shí)現(xiàn)的效果真的非常不錯,下面來一起看看吧。2016-09-09
JQuery 獲取多個select標(biāo)簽option的text內(nèi)容(實(shí)例)
下面小編就為大家?guī)硪黄狫Query 獲取多個select標(biāo)簽option的text內(nèi)容(實(shí)例)。小編覺得挺不錯的,現(xiàn)在就分享給大家,也給大家做個參考。一起跟隨小編過來看看吧2017-09-09
ThinkPHP+jquery實(shí)現(xiàn)“加載更多”功能代碼
本篇文章主要介紹了ThinkPHP+jquery實(shí)現(xiàn)“加載更多”功能代碼,以實(shí)例代碼講訴了加載更多的代碼實(shí)現(xiàn),非常具有實(shí)用價(jià)值,需要的朋友可以參考下2017-03-03
jQuery Easyui使用(一)之可折疊面板的布局手風(fēng)琴菜單
這篇文章主要介紹了jQuery Easyui使用(一)之可折疊面板的布局手風(fēng)琴菜單的相關(guān)資料,非常不錯,具有參考借鑒價(jià)值,需要的朋友可以參考下2016-08-08

