DIV CSS 佈局教程網

 DIV+CSS佈局教程網 >> 網頁腳本 >> JavaScript入門知識 >> 關於JavaScript >> SuperSlide標簽切換、焦點圖多種組合插件
SuperSlide標簽切換、焦點圖多種組合插件
編輯:關於JavaScript     

此款插件包含在SuperSlide標簽切換、焦點圖多種組合插件,SuperSlide 是致力於實現網站統一特效調用的函數,能解決大部分標簽切換、焦點圖切換等效果,還能多個slide組合創造更多的效果。(兼容ie內核(包括無敵的 ie6)、webkit內核、ff、opera等主流浏覽器)。適用於網站統一插件庫其中包含了網站常用的大部分js效果。文件中包含使用詳解。

js調用:

代碼如下:
jQuery(".slideTxtBox").slide( {effect:"left"} );
jQuery("#doubleSlideTxt").slide( { titCell:".parHd li",mainCell:".parBdIn",effect:"top",trigger:"click" } );

css代碼:

代碼如下:
/* 雙重slide-文本滾動效果 */
#doubleSlideTxt{ width:524px; zoom:1; position:relative; text-align:left;  }
#doubleSlideTxt .parHd{ position:absolute; z-index:1; top:10px; left:453px; width:44px; overflow:hidden; }
#doubleSlideTxt .parHd li{ width:14px; padding:5px 5px 5px 5px;  line-height:16px; border:1px solid #baccdf; border-left:0; 
    margin-bottom:5px; background:#fff; color:#b5c4d3;  cursor:pointer; margin-left:1px;  }
#doubleSlideTxt .parHd li.on{ background:#dbeefd; font-weight:bold; color:#367399;  border-right:3px solid #4e98c6;  
    margin-left:0px; position:relative; z-index:100; padding:5px 10px 5px 10px;}
#doubleSlideTxt .parBd{ position:relative;  z-index:0; width:440px; left:0px; border:1px solid #baccdf; padding:6px; background:#dbeefd;}
#doubleSlideTxt .parBd .slideTxtBox{ background:#fff; width:400px; border:0; padding:20px;    }
#doubleSlideTxt .parBd .slideTxtBox .hd{ background:#fff;  }

HTML:

代碼如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Language" content="zh-CN">
<meta name="Keywords" content="">
<meta name="Description" content="">
<title>Super Slide</title>
<script type="text/javascript" src="../jquery.pack.js"></script>
<script type="text/javascript" src="../jQuery.blockUI.js"></script>
<script type="text/javascript" src="../jquery.SuperSlide.js"></script>
<link href="../default.css" rel="stylesheet" type="text/css">
<link href="../demo.css" rel="stylesheet" type="text/css">
</head>
<body>
<body>
<!-- content S -->
 <div id="demoContent">
  <div class="effect">
     <div id="doubleSlideTxt">
       <div class="parHd">
        <ul>
         <li>欄目一</li>
         <li>欄目二</li>
         <li>欄目三</li>
        </ul>
       </div>
       <!-- parBd S -->
       <div class="parBd">
         <div class="parBdIn">
           <!-- slideTxtBox S -->
           <div class="slideTxtBox">
            <div class="hd">
             <ul><li><a href="">教育1</a></li><li><a href="">培訓1</a></li><li><a href="">出國1</a></li></ul>
            </div>
            <div class="bd">
             <ul class="infoList">
              <li><span class="date">2011-11-11</span><a href="">中國打破了世界軟件巨頭規則</a></li>
              <li><span class="date">2011-11-11</span><a href="">口語:會說中文就能說英語!</a></li>
              <li><span class="date">2011-11-11</span><a href="">農場摘菜不如在線學外語好玩</a></li>
              <li><span class="date">2011-11-11</span><a href="">數理化老師竟也看學習資料?</a></li>
              <li><span class="date">2011-11-11</span><a href="">學英語送ipad2,45天突破聽說</a></li>
              <li><span class="date">2011-11-11</span><a href="">學外語,上北外!</a></li>
             </ul>
             <ul class="infoList">
              <li><span class="date">2011-11-11</span><a href="">名師教作文:3妙招巧寫高分</a></li>
              <li><span class="date">2011-11-11</span><a href="">耶魯小子:教你備考SAT</a></li>
              <li><span class="date">2011-11-11</span><a href="">施強:高端專業語言教學</a></li>
              <li><span class="date">2011-11-11</span><a href="">數理化老師竟也看學習資料?</a></li>
              <li><span class="date">2011-11-11</span><a href="">【推薦】名校英語方法曝光!</a></li>
              <li><span class="date">2011-11-11</span><a href="">2012高考“考點”大曝光!!</a></li>
             </ul>
             <ul class="infoList">
              <li><span class="date">2011-11-11</span><a href="">澳大利亞八大名校招生說明會</a></li>
              <li><span class="date">2011-11-11</span><a href="">2012世界大學排名新鮮出爐</a></li>
              <li><span class="date">2011-11-11</span><a href="">新加坡留學,國際雙語課程</a></li>
              <li><span class="date">2011-11-11</span><a href="">高考後留學日本名校隨你選</a></li>
              <li><span class="date">2011-11-11</span><a href="">教育培訓行業優勢資源推介</a></li>
              <li><span class="date">2011-11-11</span><a href="">即刻預約今年最後一場教育展</a></li>
             </ul>
            </div>
           </div>
           <!-- slideTxtBox E -->
           <!-- slideTxtBox S -->
           <div class="slideTxtBox">
            <div class="hd">
             <ul><li><a href="">教育2</a></li><li><a href="">培訓2</a></li><li><a href="">出國2</a></li></ul>
            </div>
            <div class="bd">
             <ul class="infoList">
              <li><span class="date">2011-11-11</span><a href="">中國打破了世界軟件巨頭規則</a></li>
              <li><span class="date">2011-11-11</span><a href="">口語:會說中文就能說英語!</a></li>
              <li><span class="date">2011-11-11</span><a href="">農場摘菜不如在線學外語好玩</a></li>
              <li><span class="date">2011-11-11</span><a href="">數理化老師竟也看學習資料?</a></li>
              <li><span class="date">2011-11-11</span><a href="">學英語送ipad2,45天突破聽說</a></li>
              <li><span class="date">2011-11-11</span><a href="">學外語,上北外!</a></li>
             </ul>
             <ul class="infoList">
              <li><span class="date">2011-11-11</span><a href="">名師教作文:3妙招巧寫高分</a></li>
              <li><span class="date">2011-11-11</span><a href="">耶魯小子:教你備考SAT</a></li>
              <li><span class="date">2011-11-11</span><a href="">施強:高端專業語言教學</a></li>
              <li><span class="date">2011-11-11</span><a href="">數理化老師竟也看學習資料?</a></li>
              <li><span class="date">2011-11-11</span><a href="">【推薦】名校英語方法曝光!</a></li>
              <li><span class="date">2011-11-11</span><a href="">2012高考“考點”大曝光!!</a></li>
             </ul>
             <ul class="infoList">
              <li><span class="date">2011-11-11</span><a href="">澳大利亞八大名校招生說明會</a></li>
              <li><span class="date">2011-11-11</span><a href="">2012世界大學排名新鮮出爐</a></li>
              <li><span class="date">2011-11-11</span><a href="">新加坡留學,國際雙語課程</a></li>
              <li><span class="date">2011-11-11</span><a href="">高考後留學日本名校隨你選</a></li>
              <li><span class="date">2011-11-11</span><a href="">教育培訓行業優勢資源推介</a></li>
              <li><span class="date">2011-11-11</span><a href="">即刻預約今年最後一場教育展</a></li>
             </ul>
            </div>
           </div>
           <!-- slideTxtBox E -->
           <!-- slideTxtBox S -->
           <div class="slideTxtBox">
            <div class="hd">
             <ul><li><a href="">教育3</a></li><li><a href="">培訓3</a></li><li><a href="">出國3</a></li></ul>
            </div>
            <div class="bd">
             <ul class="infoList">
              <li><span class="date">2011-11-11</span><a href="">中國打破了世界軟件巨頭規則</a></li>
              <li><span class="date">2011-11-11</span><a href="">口語:會說中文就能說英語!</a></li>
              <li><span class="date">2011-11-11</span><a href="">農場摘菜不如在線學外語好玩</a></li>
              <li><span class="date">2011-11-11</span><a href="">數理化老師竟也看學習資料?</a></li>
              <li><span class="date">2011-11-11</span><a href="">學英語送ipad2,45天突破聽說</a></li>
              <li><span class="date">2011-11-11</span><a href="">學外語,上北外!</a></li>
             </ul>
             <ul class="infoList">
              <li><span class="date">2011-11-11</span><a href="">名師教作文:3妙招巧寫高分</a></li>
              <li><span class="date">2011-11-11</span><a href="">耶魯小子:教你備考SAT</a></li>
              <li><span class="date">2011-11-11</span><a href="">施強:高端專業語言教學</a></li>
              <li><span class="date">2011-11-11</span><a href="">數理化老師竟也看學習資料?</a></li>
              <li><span class="date">2011-11-11</span><a href="">【推薦】名校英語方法曝光!</a></li>
              <li><span class="date">2011-11-11</span><a href="">2012高考“考點”大曝光!!</a></li>
             </ul>
             <ul class="infoList">
              <li><span class="date">2011-11-11</span><a href="">澳大利亞八大名校招生說明會</a></li>
              <li><span class="date">2011-11-11</span><a href="">2012世界大學排名新鮮出爐</a></li>
              <li><span class="date">2011-11-11</span><a href="">新加坡留學,國際雙語課程</a></li>
              <li><span class="date">2011-11-11</span><a href="">高考後留學日本名校隨你選</a></li>
              <li><span class="date">2011-11-11</span><a href="">教育培訓行業優勢資源推介</a></li>
              <li><span class="date">2011-11-11</span><a href="">即刻預約今年最後一場教育展</a></li>
             </ul>
            </div>
           </div>
           <!-- slideTxtBox E -->
         </div>
       </div>
       <!-- parBd E -->
     </div>
     <script type="text/javascript">
     jQuery(".slideTxtBox").slide({effect:"left"});
     jQuery("#doubleSlideTxt").slide({ titCell:".parHd li",mainCell:".parBdIn",effect:"top",trigger:"click" });
     </script>
  </div>
 </div>
<!-- content E -->
</body>
</html>

以上就是本文的全部內容了,希望大家能夠喜歡。

XML學習教程| jQuery入門知識| AJAX入門| Dreamweaver教程| Fireworks入門知識| SEO技巧| SEO優化集錦|
Copyright © DIV+CSS佈局教程網 All Rights Reserved