What is the best lightweight way to randomly show inline images from a folder on each refresh or on load a page ? using jQuery.
like jQuery version of this http://javascript.internet.com/miscellaneous/random-image.html
Update: 24 April
This is exactly what i want i just need unobtrusive jQuery version of this
<div class=”me-box”>
<script language=”JavaScript”>
function banner() { } ; b = new banner() ; n = 0
b[n++]= “<img name=randimg src=’images/me.jpg’ >”
b[n++]= “<img name=randimg src=’images/me2.jpg’ >”
b[n++]= “<img name=randimg src=’images/me4.jpg’ >”
b[n++]= “<img name=randimg src=’images/me5.jpg’ >”
b[n++]= “<img name=randimg src=’images/me6.jpg’ >”
b[n++]= “<img name=randimg src=’images/me3.jpg’ >”
i=Math.floor(Math.random() * n) ;
document.write( b[i] )
</script>
</div>