SuperSlide2實(shí)現(xiàn)圖片滾動(dòng)特效
更新時(shí)間:2014年06月20日 10:17:52 投稿:hebedich
SuperSlide2,實(shí)現(xiàn)圖片滾動(dòng),感覺很強(qiáng)大,這里只是簡(jiǎn)單的演示其中一種類型,想看更多類型的話,可以去http://www.superslide2.com 查看,
這里貼一下自己演示的代碼,期望對(duì)使用的朋友所有啟發(fā),我這里是結(jié)合了兩個(gè)例子實(shí)現(xiàn)的
.focus-item ul li.item{ text-align: center; } .scroll-area .prev,.scroll-area .next{ position: absolute; bottom: 590px; width: 29px; height: 64px; opacity: 0.6; overflow: hidden; display: none; text-indent: -999px; border: medium none; background: url('/images/arrowLR.png') no-repeat scroll 0% 0% transparent; } .scroll-area .prev{ left: 0px; background-position: -50px 0px; } .scroll-area .next{ right: 0px; } .scroll-area .bdOn .prev,.scroll-area .bdOn .next{ display: block; } .scroll-area .focus-hd{ /*width: 832px;*/ /*left: 60px;*/ /*position: absolute;*/ /*height: 100px;*/ /*overflow: hidden;*/ left: 63px; position: absolute; } .focus-hd .sNext, .focus-hd .sPrev{ float: left; display: block; width: 14px; height: 47px; text-indent: -9999px; background: url('/images/sprites1008.png') no-repeat scroll 0px -3046px transparent; } .focus-hd .sNext{ background-position: 0px -2698px; } .focus-hd .show_bottom_nav { float: left; margin: 0px 6px; display: inline; width: 832px; overflow: hidden; } .focus-hd .show_bottom_nav ul li{ margin-left:15px; }
html演示代碼:
<div id="" class="scroll-area"> <div class="focus-item"> <ul> <li data-bottom-thumb="/attachments/news_gallery/20140528162328_454.jpg" class="item" data-text-id="#thumbTxt1"> <img src="/attachments/news_gallery/20140528162328_454.jpg" alt="標(biāo)題1" /> </li> <li data-bottom-thumb="/attachments/news_gallery/20140528162328_733.jpg" class="item" data-text-id="#thumbTxt2"> <img src="/attachments/news_gallery/20140528162328_733.jpg" alt="標(biāo)題2" /> </li> </ul> <a class="prev" href="javascript:void(0)"></a> <a class="next" href="javascript:void(0)"></a> </div> <div class="focus-hd" style=""> <a class="sPrev prevStop" href="javascript:void(0)">←</a> <div class="show_bottom_nav"> <ul> <li data-bottom-thumb="/attachments/news_gallery/20140528162328_454.jpg" class="item" data-text-id="#thumbTxt1" style="float: left"> <img style="width: 150px;height: 100px" src="/attachments/news_gallery/20140528162328_454.jpg" alt="標(biāo)題1" /> </li> <li data-bottom-thumb="/attachments/news_gallery/20140528162328_733.jpg" class="item" data-text-id="#thumbTxt2" style="float: left"> <img style="width: 150px;height: 100px" src="/attachments/news_gallery/20140528162328_733.jpg" alt="標(biāo)題2" /> </li> </ul> </div> <a class="sNext" href="javascript:void(0)">→</a> </div> </div>
js腳本代碼:
jQuery(".scroll-area").slide({titCell:'.focus-hd li',mainCell:'.focus-item ul',delayTime:0,trigger:0,autoPlay:true}); jQuery(".scroll-area .focus-item").hover(function(){jQuery(this).addClass("bdOn")},function(){jQuery(this).removeClass('bdOn')}); //小標(biāo)簽的導(dǎo)航 jQuery(".scroll-area .show_bottom_nav").slide({ mainCell:"ul",delayTime:100,vis:5,effect:"left",autoPage:true,prevCell:".sPrev",nextCell:".sNext" });
您可能感興趣的文章:
- CSS標(biāo)簽切換代碼實(shí)例教程 比較漂亮
- JQuery學(xué)習(xí)筆記 實(shí)現(xiàn)圖片翻轉(zhuǎn)效果和TAB標(biāo)簽切換效果
- 一個(gè)tab標(biāo)簽切換效果代碼
- 基于JQuery的實(shí)現(xiàn)圖片輪播效果(焦點(diǎn)圖)
- jquery中實(shí)現(xiàn)標(biāo)簽切換效果的代碼
- jQuery版Tab標(biāo)簽切換
- jQuery焦點(diǎn)圖切換特效插件封裝實(shí)例
- jquery左右滾動(dòng)焦點(diǎn)圖banner圖片鼠標(biāo)經(jīng)過顯示上下頁(yè)按鈕
- SuperSlide標(biāo)簽切換、焦點(diǎn)圖多種組合插件
相關(guān)文章
js實(shí)現(xiàn)圖片加載時(shí)候逐漸出現(xiàn)的雜色效果
有一些網(wǎng)站在加載圖片的時(shí)候不是一下子就出來了,而是由模糊到清淅,或是由一種不占用過多網(wǎng)絡(luò)資源的方式先大致顯示,然后再慢慢加載,避免因用戶等不及將網(wǎng)頁(yè)關(guān)掉,像馬賽克效果、沙子效果等2010-08-08jQuery.lazyload+masonry改良圖片瀑布流代碼
這里主要是使用jQuery.lazyload配合masonry實(shí)現(xiàn)瀑布流的重新排列,有時(shí)候網(wǎng)站的速度慢,圖片加載慢,獲取不到圖片的寬度和高度,所以使用lazyload可以在圖片加載完之后,進(jìn)行瀑布流的重新排列。2014-06-06多圖展示點(diǎn)擊切換效果模擬的flash效果,點(diǎn)小圖放大顯示,再點(diǎn)恢復(fù)默認(rèn)。
多圖展示點(diǎn)擊切換效果模擬的flash效果,點(diǎn)小圖放大顯示,再點(diǎn)恢復(fù)默認(rèn)。...2006-12-12JavaScript 控制圖片改變重疊順序的代碼(鼠標(biāo)移動(dòng)切換)
JavaScript實(shí)例,通過控制Html網(wǎng)頁(yè)元素,來控制圖片的重疊順序,鼠標(biāo)移上某一張,那一張就顯示在最前面,移動(dòng)到最后層,它會(huì)顯示在最前,有意思吧,其實(shí)挺簡(jiǎn)單。2010-10-10北京奧運(yùn)官方網(wǎng)站幻燈切換效果flash版打包下載
2008-01-01