I have the following script which will load a random flash header when a person refreshes the page. Quite a great script. The issue i am having is that it only works in IE and when i load it in Firefox FireFox tries to download the flash file instead of displaying it. I have commented out the 2,3,4 & 5 flash banners as i just want to get the 1st one working.
Any help is greatly appreciated.
<script type="text/javascript">
function switcher()
{
var ad=new Array()
ad[0]='Movie1.swf';
//ad[1]='Movie2.swf';
//ad[2]='Movie3.swf';
//ad[3]='Movie4.swf';
//ad[4]='Movie5.swf';
var xy=Math.floor(Math.random()*ad.length);
document.getElementById('iframe1').src=ad[xy];
}
</script> </head>
<body onLoad="switcher()" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (template.psd) -->
<table width="1000" height="506" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01">
<tr>
<td height="187" colspan="9">
<iframe name="iframe1" id="iframe1" src="" width="1000" height="187" scrolling="no" frameborder="0">Click Here!</iframe>
</td>
********
You can view this script in action here
http://officialelectroniczone.staging.secure2u.com/