国产gaysexchina男同gay,japanrcep老熟妇乱子伦视频,吃奶呻吟打开双腿做受动态图,成人色网站,国产av一区二区三区最新精品

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>