<div class="image_add" align="right">
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var randomTWD = 0;
var DoIt = 0;
images = new Array;
images[1] = new Image();
images[1].src = "your image";
images[2] = new Image();
images[2].src = "your image";
function TWDpics() {
var imgnum = images.length - 1;
do {
var randnum = Math.random();
randomTWD = Math.round((imgnum - 1) * randnum) + 1;
} while (randomTWD == DoIt);
DoIt = randomTWD;
document.ImageHolder.src = images[DoIt].src;
}
// End -->
</script>
<body onLoad="TWDpics();">
<a href="your domin"><img width="320px" height="63px"name="ImageHolder" src="your image" border="0" alt="Change image on load"></a>
</div>
23.765833
90.363067
Tagged: image, Magento
Even this is good
Hey I’m new to this.. for the original posted code, how do you get the images to play in a particular order?