我为一个网站设计了一个简单的jquery横幅。横幅工作正常,但如何刷新横幅设置的时间间隔。我已经通过各种代码,但它不工作。请通过纠正特定时间间隔内的横幅代码重复来帮助我。横幅设置间隔
CSS代码:
.banner {-webkit-border-radius:6px; -moz-border-radius:8px; border-radius:8px;
-khtml-border-radius: 8px; border:#bbd9ef solid 1px; background:#f5fffa;
padding: 5px 0 0 20px; width: 200px; height: 110px;
}
.k, .l, .m, .n {position: relative; top: -200px; text-decoration: none; }
.n { font-weight: bold; color: red; }
脚本代码与jquery1.9.1:
$(document).ready(function() {
$(".banner a").hide();
(function() {
$(".k").show().animate({top: "0"}, 3000, function() {
$(".l").show().animate({top: "0"},3000, function(){
$(".m").show().animate({top: "0"},3000, function(){
$(".n").show().animate({top: "0"},3000);
});
});
});
})();
});
的HTML代码:
<div class="banner">
<a href="#" class="k">Design banner in your ownway</a><br />
<a href="#" class="l"> Get more taffic and publishers.</a><br/>
<a href="#" class="m">Still doubt, please do contact:</a><br/><br/>
<a href="#" class="n">www.freemenu.info</a>
</div>
我让你的问题的的jsfiddle:http://jsfiddle.net/f2JCV/ –