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
精彩评论