I have six Flash movies that act as a header on a webpage and would like to randomly change which one displays each time a user visits/refreshes the page using Javascript. I've done it with static images before using this code in the header:
...and this where I want the image to be:
But is there something similar to that which I can use for cycling through several Flash movies?
m19
Code:
<SCRIPT LANGUAGE="JavaScript">
iArray=new Array(
"images/photo1.jpg",
"images/photo2.jpg",
"images/photo3.jpg",
"images/photo4.jpg");
ri=Math.floor(iArray.length*Math.random());
ri='<IMG SRC="'+ iArray[ri]+ '" BORDER=0>';
</SCRIPT>
...and this where I want the image to be:
Code:
<SCRIPT language="JavaScript">
<!--
document.write(ri);
// -->
</SCRIPT>
But is there something similar to that which I can use for cycling through several Flash movies?
m19