利用jQuery实现滚动切换选项卡特效插件



41 163 55



特效描述:利用jQuery实现 滚动切换选项卡 特效插件,利用jQuery实现滚动切换选项卡特效插件

代码结构

1. 引入CSS

<link rel="stylesheet" href="css/slideshow.css" type="text/css" media="screen" />

2. 引入JS

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.cycle.js"></script>
<script type="text/javascript" src="js/slideshow.js"></script>

3. HTML代码

<div id="slideshow">
  <div class="slides">
    <ul>
      <li id="slide-one">
        <h2>Slide one</h2>
        <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. 
          Donec pretium arcu non velit. Phasellus adipiscing auctor 
          lorem. Curabitur in urna ut purus consequat sollicitudin. 
          Phasellus ut diam. Cras magna libero, tempor id, venenatis 
          sit amet, venenatis et, dui. </p>
      </li>
      <li id="slide-two">
        <h2>Slide two</h2>
        <p> Nam ac nibh sit amet augue ultricies sagittis. Donec sit 
          amet nunc. Vivamus lacinia, nisi ac tincidunt commodo, purus 
          nisi condimentum urna, sit amet molestie odio dolor non lectus. 
          Cum sociis natoque penatibus et magnis dis parturient montes, 
          nascetur ridiculus mus. </p>
      </li>
      <li id="slide-three">
        <h2>Slide three</h2>
        <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. 
          Suspendisse adipiscing dui a nibh. Integer tristique lorem 
          vitae massa. Etiam dapibus, eros sit amet euismod semper, 
          felis erat congue lacus, sed aliquam metus libero sed elit. </p>
      </li>
    </ul>
  </div>
  <ul class="slides-nav">
    <li class="on"><a href="#slide-one">Slide one</a></li>
    <li><a href="#slide-two">Slide two</a></li>
    <li><a href="#slide-three">Slide three</a></li>
  </ul>
</div>



用户评论
大牛,别默默的看了,快登录帮我点评一下吧!:)      登录 | 注册


热门标签: 导航切换 图片切换 文字切换 背景切换 手风琴 选项卡自动切换 视频切换 列表切换 渐隐切换 全屏切换 切换按钮 缩放切换 滚动切换 滑动选项卡切换 选项卡切换 滑动手风琴

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

jQuery/js讨论群
群号:642649996
Css3+Html5讨论群
群号:322131262

加群请备注:从官网了解到