how can i spread images inside div using jquery
i am looking for a jquery plugin that does the following: let say i have a div container and 5 images that i want to display inside the div. i want the images to be randomly located inside the div without overriding each other using the css position relative attribute. for example:
<div class="floating_are" >
<img src="..." style="position:relative; top:5px; left:3px" />
<img src="..." style="position:relative; t开发者_如何学运维op:50px; left:30px" />
<img src="..." style="position:relative; top:80px; left:27px" />
<img src="..." style="position:relative; top:111px; left:92px" />
</div>
the output should be a div with 5 images randomly spread inside. now, before i roll my sleeves and write it, i was wondering if any of you know of an existing plugin ?
This might interest you Scatter Gallery
精彩评论