国产chinesehdxxxx野外,国产av无码专区亚洲av琪琪,播放男人添女人下边视频,成人国产精品一区二区免费看,chinese丰满人妻videos

App下載
首頁javascriptfadejQuery Animation - 如何無限期地在一個語句中淡出另一個語句

jQuery Animation - 如何無限期地在一個語句中淡出另一個語句

我們想知道如何無限期地在一個語句中淡出另一個語句。

<script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<div class="background">
  <h6>
    <div id="one">This is the first statement</div>
    <div id="two">This is the second statement</div>
    <div id="third">You get the point</div>
  </h6>
</div>
<script>
var k = ["#one","#two","#third"]
var cnt = 0;
setInterval(function(){
    $(k[cnt]).fadeToggle('slow').siblings().hide();
    cnt++;
    if(cnt ==3){
       cnt = 0;
    }
},2000);
</script>