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