This is basic:
HTML Code:
<script type="text/javascript">
/*********Edit values here for your pictures*******************/
var pic1='http:h1.ripway.com/rangana/images/Picture1.png',
pic2='http:h1.ripway.com/rangana/images/Picture2.jpg',
pic3='http:h1.ripway.com/rangana/images/Picture3.jpg',
pic4='http:h1.ripway.com/rangana/images/Picture4.jpg',
pic5='http:h1.ripway.com/rangana/images/Picture5.jpg',
pic6='http:h1.ripway.com/rangana/images/Picture6.jpg',
pic7='http:h1.ripway.com/rangana/images/Picture7.jpg',
pic8='http:h1.ripway.com/rangana/images/Picture8.jpg',
pic9='http:h1.ripway.com/rangana/images/Picture9.jpg';
/***************End of Edit*********************************/
var rangPics=[pic1,pic2,pic3,pic4,pic5,pic6,pic7,pic8,pic9]; // Add all the picture variables in this array.
window.onload=function() { rangRandom=Math.floor(Math.random()*rangPics.length);
document.getElementById('show').innerHTML='<img src="'+rangPics[rangRandom]+'" alt="myimage" style="width:350px;height:300px;">';}</script>
<div id="show" style="text-align:center;width:350px;border:3px double #222;padding:10px;"></div>
I've got only 9 images, you might want to fill it in. Anyway hope that helps.
Bookmarks