SuperSlide2實(shí)現(xiàn)圖片滾動特效
來源:易賢網(wǎng) 閱讀:1263 次 日期:2014-07-16 18:42:46
溫馨提示:易賢網(wǎng)小編為您整理了“SuperSlide2實(shí)現(xiàn)圖片滾動特效”,方便廣大網(wǎng)友查閱!

這里貼一下自己演示的代碼,期望對使用的朋友所有啟發(fā),我這里是結(jié)合了兩個例子實(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" });

更多信息請查看IT技術(shù)專欄

更多信息請查看網(wǎng)絡(luò)編程
易賢網(wǎng)手機(jī)網(wǎng)站地址:SuperSlide2實(shí)現(xiàn)圖片滾動特效
由于各方面情況的不斷調(diào)整與變化,易賢網(wǎng)提供的所有考試信息和咨詢回復(fù)僅供參考,敬請考生以權(quán)威部門公布的正式信息和咨詢?yōu)闇?zhǔn)!

2025國考·省考課程試聽報名

  • 報班類型
  • 姓名
  • 手機(jī)號
  • 驗(yàn)證碼
關(guān)于我們 | 聯(lián)系我們 | 人才招聘 | 網(wǎng)站聲明 | 網(wǎng)站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 加入群交流 | 手機(jī)站點(diǎn) | 投訴建議
工業(yè)和信息化部備案號:滇ICP備2023014141號-1 云南省教育廳備案號:云教ICP備0901021 滇公網(wǎng)安備53010202001879號 人力資源服務(wù)許可證:(云)人服證字(2023)第0102001523號
云南網(wǎng)警備案專用圖標(biāo)
聯(lián)系電話:0871-65099533/13759567129 獲取招聘考試信息及咨詢關(guān)注公眾號:hfpxwx
咨詢QQ:526150442(9:00—18:00)版權(quán)所有:易賢網(wǎng)
云南網(wǎng)警報警專用圖標(biāo)