Forum Moderators: open
I've made four different flash animations that I want to randomly appear on a web page.
The code is below:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="600" height="60">
<param name="movie" value="images/4.swf">
<param name="quality" value="high">
<param name="LOOP" value="false">
<embed src="images/4.swf" width="600" height="60" loop="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
</object>
Pretty standard eh?
Okay, well I've tried out different methods to randomise the '4.swf' part without success. The files are all numerically named 1 - 4.swf
So - any help in achieving this would be appreciated!
It has to be in Javascript.