最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

SuperSlide2實現(xiàn)圖片滾動特效

 更新時間:2014年06月20日 10:17:52   投稿:hebedich  
SuperSlide2,實現(xiàn)圖片滾動,感覺很強大,這里只是簡單的演示其中一種類型,想看更多類型的話,可以去http://www.superslide2.com 查看,

這里貼一下自己演示的代碼,期望對使用的朋友所有啟發(fā),我這里是結(jié)合了兩個例子實現(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="標題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="標題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="標題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="標題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')});
//小標簽的導(dǎo)航
jQuery(".scroll-area .show_bottom_nav").slide({ mainCell:"ul",delayTime:100,vis:5,effect:"left",autoPage:true,prevCell:".sPrev",nextCell:".sNext" });

相關(guān)文章

最新評論

县级市| 沙洋县| 徐汇区| 广饶县| 牡丹江市| 虞城县| 沂南县| 澄城县| 炎陵县| 志丹县| 古交市| 米林县| 永济市| 景洪市| 凯里市| 怀仁县| 额尔古纳市| 桓台县| 鲁山县| 修文县| 独山县| 比如县| 日照市| 莒南县| 郎溪县| 大庆市| 碌曲县| 珠海市| 九龙坡区| 崇州市| 闽侯县| 隆林| 独山县| 句容市| 浮山县| 公安县| 鄂温| 白河县| 三门峡市| 高清| 梅州市|