利用jQuery实现垂直Tabs新闻滑块特效



85 339 114



特效描述:利用jQuery实现 垂直Tabs 新闻滑块特效,利用jQuery实现垂直Tabs新闻滑块特效

代码结构

1. 引入CSS

<link rel="stylesheet" href="css/vertical.news.slider.css">
<link rel="stylesheet" href="css/vertical.news.slider.css">

2. 引入JS

<script src="js/jquery.min.js"></script>
<script src="js/vertical.news.slider.js"></script>
<script src="js/jquery.min.js"></script>
<script src="js/vertical.news.slider.js"></script>

3. HTML代码

<!DOCTYPE html>
<html>
<head>
<meta charset=gb2312 />
<title></title>
<style>
.news-demo {
  background: #fff;
  padding: 20px;
}
.news-demo h1 {
  text-align: center;
  font-family: Arial, sans-serif;
  color: #777;
  margin-bottom: 40px;
}
.news-demo .p {
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 22px;
  margin-top: 70px;
}
.news-demo .p ~ p {
  margin-top: 0;
}
.news-demo .p a {
  text-decoration: underline;
}
.news-demo .p a:hover {
  color: red;
}
</style>
</head>
<body class="news-demo">
  <h1>jQuery Vertical News Slider</h1>
  <div class="news-holder cf">
    <ul class="news-headlines">
      <li class="selected">100 red bicycles stolen from local bike store</li>
      <li>New leash laws in effect for floppy-eared dogs</li>
      <li>Insider: Can palm trees be saved?</li>
      <li>Fresh recipes to titillate the taste buds</li>
      <li>Truck inspections under way for the metropolitan area</li>
      <li>Are the beaches safe for swimming this year?</li>
      <!-- li.highlight gets inserted here -->
    </ul>
    <div class="news-preview">
      <div class="news-content top-content">
        <img src="images/news1.jpg">
        <p><a href="#">100 red bicycles stolen from local bike store</a></p>
        <p>A hundred red bicycles were stolen from under our noses yesterday, and nobody knows what went wrong.</p>
      </div><!-- .news-content -->
      <div class="news-content">
        <img src="images/news2.jpg">
        <p><a href="#">New leash laws in effect for floppy-eared dogs</a></p>
        <p>Ears on dogs can be a tricky thing. Find out more about this amazing story and why these dogs are a nuisance.</p>
      </div><!-- .news-content -->
      <div class="news-content">
        <img src="images/news3.jpg">
        <p><a href="#">Insider: Can palm trees be saved?</a></p>
        <p>Ah, the palm tree. It feeds us, it shades us, it does whatever we ask. We should think about it more deeply.</p>
      </div><!-- .news-content -->
      <div class="news-content">
        <img src="images/news4.jpg">
        <p><a href="#">Fresh recipes to titillate the taste buds</a></p>
        <p>Food is great. These recipes will make you appreciate food as if it were even greater than great. It will be super great.</p>
      </div><!-- .news-content -->
      <div class="news-content">
        <img src="images/news5.jpg">
        <p><a href="#">Truck inspections under way for the metropolitan area</a></p>
        <p>The Sherrif's department has put out an APB on these trucks. You know, this is the kind of thing that only happens in small towns.</p>
      </div><!-- .news-content -->
      <div class="news-content">
        <img src="images/news6.jpg">
        <p><a href="#">Are the beaches safe for swimming this year?</a></p>
        <p>Giant orange pedal boats have been spotted at various beaches. In this report we tell you some ridiculous precautions to take.</p>
      </div><!-- .news-content -->
    </div><!-- .news-preview -->
  </div><!-- .news-holder -->
<div style="text-align:center;margin:50px 0; font:normal 14px/24px 'MicroSoft YaHei';">
</div>
</body>
</html>



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


热门标签: 滑动导航菜单 导航切换 文字标签 滑动选项卡切换 彩色文字 图片滑动 图片切换 文字闪烁 文字滑动 文字切换 打字机 滑动手风琴 背景切换 文字列表 滑动星星打分 手风琴 文字弹幕 选项卡自动切换 文字高亮 视频切换 列表切换 渐隐切换 全屏切换 切换按钮 缩放切换 文字叠加 滑动滑过 滚动切换 滑动选项卡切换 文字拖动 文字提示框 文字收缩展开 文字放大缩小 文字翻转旋转 文字淡出淡进 文字全屏 文字延迟加载 360全景 html5文字动画 文字滚动 文字滑动 文字切换 选项卡切换 滑动手风琴 图片文字 文字导航菜单 文字

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

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

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