乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      CSS+JS自動(dòng)改變切換方向的圖片幻燈切換效果

       csr04 2012-08-23

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www./TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www./1999/xhtml">
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
      <title>CSS+JS自動(dòng)改變切換方向的圖片幻燈切換效果丨芯晴網(wǎng)頁(yè)特效丨CsrCode.Cn</title>
      <style>
      body,div,ul,li{margin:0;padding:0;}
      ul{list-style-type:none;}
      body{background:#000;text-align:center;font:12px/20px Arial;}
      #box{position:relative;width:322px;height:172px;background:#fff;border-radius:5px;border:8px solid #fff;margin:10px auto;}
      #box .list{position:relative;width:320px;height:240px;overflow:hidden;border:1px solid #ccc;}
      #box .list li{position:absolute;top:0;left:0;width:320px;height:240px;opacity:0;filter:alpha(opacity=0);}
      #box .list li.current{opacity:1;filter:alpha(opacity=100);}
      #box .count{position:absolute;right:0;bottom:5px;}
      #box .count li{color:#fff;float:left;width:20px;height:20px;cursor:pointer;margin-right:5px;overflow:hidden;background:#F90;opacity:0.7;filter:alpha(opacity=70);border-radius:20px;}
      #box .count li.current{color:#fff;opacity:1;filter:alpha(opacity=100);font-weight:700;background:#f60;}
      #tmp{width:100px;height:100px;background:red;position:absolute;}
      </style>
      <script type="text/javascript">
      window.onload = function ()
      {
       var oBox = document.getElementById("box");
       var aUl = document.getElementsByTagName("ul");
       var aImg = aUl[0].getElementsByTagName("li");
       var aNum = aUl[1].getElementsByTagName("li");
       var timer = play = null;
       var i = index = 0;
       var bOrder = true;
       //切換按鈕
       for (i = 0; i < aNum.length; i++)
       {
        aNum[i].index = i;
        aNum[i].onmouseover = function ()
        {
         show(this.index)
        }
       }
       
       //鼠標(biāo)劃過(guò)關(guān)閉定時(shí)器
       oBox.onmouseover = function ()
       {
        clearInterval(play)
       };
       
       //鼠標(biāo)離開(kāi)啟動(dòng)自動(dòng)播放
       oBox.onmouseout = function ()
       {
        autoPlay()
       };
       
       //自動(dòng)播放函數(shù)
       function autoPlay ()
       {
        play = setInterval(function () {
         //判斷播放順序
         bOrder ? index++ : index--;  
        
         //正序
         index >= aImg.length && (index = aImg.length - 2, bOrder = false);
        
         //倒序
         index <= 0 && (index = 0, bOrder = true);
        
         //調(diào)用函數(shù)
         show(index)
        },2000);
       }
       autoPlay();//應(yīng)用
       
       //圖片切換, 淡入淡出效果
       function show (a)
       {
        index = a;
        var alpha = 0;
        for (i = 0; i < aNum.length; i++)aNum[i].className = "";
        aNum[index].className = "current";
        clearInterval(timer);  
       
        for (i = 0; i < aImg.length; i++)
        {
         aImg[i].style.opacity = 0;
         aImg[i].style.filter = "alpha(opacity=0)";
        }
       
        timer = setInterval(function () {
         alpha += 2;
         alpha > 100 && (alpha =100);
         aImg[index].style.opacity = alpha / 100;
         aImg[index].style.filter = "alpha(opacity = " + alpha + ")";
         alpha == 100 && clearInterval(timer)
        },20);
       }
      };
      </script>
      </head>
      <body>
      <div id="box">
          <ul class="list">
              <li class="current"><img src="http://www./images/m06.jpg" width="320" height="240" /></li>
              <li><img src="http://www./images/m07.jpg" width="320" height="240" /></li>
              <li><img src="http://www./images/m08.jpg" width="320" height="240" /></li>
              <li><img src="http://www./images/m09.jpg" width="320" height="240" /></li>
              <li><img src="http://www./images/m10.jpg" width="320" height="240" /></li>
          </ul>
          <ul class="count">
              <li class="current">1</li>
              <li>2</li>
              <li>3</li>
              <li>4</li>
              <li>5</li>
          </ul>
      </div>
      </body>
      </html>

      <br><br><hr><p align="center"><font color=skyblue>本特效由 <a target="_blank">芯晴網(wǎng)頁(yè)特效</a>丨CsrCode.Cn 收集于互聯(lián)網(wǎng),只為興趣與學(xué)習(xí)交流,不作商業(yè)用途。來(lái)源:源碼愛(ài)好者</font></p>

        本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶(hù)發(fā)布,不代表本站觀(guān)點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購(gòu)買(mǎi)等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
        轉(zhuǎn)藏 分享 獻(xiàn)花(0

        0條評(píng)論

        發(fā)表

        請(qǐng)遵守用戶(hù) 評(píng)論公約

        類(lèi)似文章 更多