Hi everyone, I have a project I’m working on and I need to be able to load a random flv from a list and play it in the site every page reload. Here is the code I am using right now:
<div id="player" style="z-index:0; padding-top:0px; margin-bottom:-156px; margin-left:1px; margin-top:-450px; overflow:hidden;">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="myId" width="900" height="500" id="myId">
<param name="movie" value="player.swf" />
<param name="flashvars" value="&file=promo5.flv&stretching=exactfit&controlbar=none&autostart=true" />
<param name="allowscriptaccess" value="always" />
<param name="allowfullscreen" value="true" />
<param name="wmode" value="opaque" />
<param name="SCALE" value="exactfit" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="player.swf" width="899" height="500" wmode="opaque" flashvars="file=promo5.flv&stretching=exactfit&controlbar=none&autostart=true" style="margin-top:0px; z-index:1;">
<!--<![endif]-->
<div>
<h1 style="padding-left:50px;">Please download the latest flash player</h1>
<p style="padding-left:50px;"><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
Thanks for all your help!
Matt