Random Image Links
by Angelica
HTML
<script type="text/javascript">
var total_images = 4;
var random_number = Math.floor((Math.random()*total_images));
var random_img = new Array();
random_img[0] = '<a href="page1.html"><img alt="" src="https://angelicas.site/images/88x31-static2.png"></a>';
random_img[1] = '<a href="page2.html"><img alt="" src="https://angelicas.site/images/88x31-static.png"></a>';
random_img[2] = '<a href="page3.html"><img alt="" src="https://angelicas.site/images/88x31-anim2.gif"></a>';
random_img[3] = '<a href="page3.html"><img alt="" src="https://angelicas.site/images/88x31-static3.png"></a>';
document.write(random_img[random_number]);
</script>
<p>
just be sure to change the total_image = #; to reflect the number of random_img[#] (0 counts as one)<br>
<a href="javascript:window.location.reload(true)">Reload example</a>
</p>