开发者

how to serialize all img tags with Jquery

How do I serialize all <img> tag开发者_StackOverflow社区s in my <div>?

<div id='My_gallery_fades' >
   <img src='car_black.jpg' />
   <img src='car_yellow.jpg' />
   <img src='car_red.jpg' />
</div>

And after find all <img>s, show effect FadeIn & fadeOut (or slideUp & slide Down) for create one simple gallery.


Take a look at jQuery cycle plugin, this might help you instead of writing a image gallery on your own.

http://jquery.malsup.com/cycle/

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜