开发者

jQuery Plugin - DIV boxes changer/fader?

Co开发者_开发问答uld you help me out with a link or two to a plugin that automatically fades through different div boxes. Here's my HTML:

<div class="box">
    <img src="test1.jpg" />
    <p>text1</p>
</div>

<div class="box">
    <img src="test2.jpg" />
    <p>text2</p>
</div>

<div class="box">
    <img src="test3.jpg" />
    <p>text3</p>
</div>

Thank you. All input appreciated.


You wish to fade them in in order?

$(".box:first").fadeIn("fast", f=function(){
    if($(this).next(".box").length != 0) $(this).next(".box").fadeIn("fast", f);
});

EDIT

Make sure the boxes are hidden by default:

CSS: .box { display: none; } or jQuery: $(".box").hide().


Maybe http://www.webanddesigners.com/15-jquery-slideshow-and-plugins

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜