I think it may just be that it takes too long to d/l. If I go to it directly, it plays in IE and after that, will come up on the page. I think you would have better luck if this:
Code:
var myAd = [];
myAd[0] = "<object data='images/bnrs/HigherThroughputRO.swf' type='application/x-shockwave-flash' width='800' height='212'><param name='movie' value='images/bnrs/HigherThroughputRO.swf'><param name='loop' value='flase'><param name='quality' value='high'></object>"
myAd[1] = "<img src='images/bnrs/IWICSlogo.jpg' width='800' height='212' border='0'>"
myAd[2] = "<img src='images/bnrs/GL_Hanbin.jpg' width='800' height='212' border='0'>"
myAd[3] = "<img src='images/bnrs/NoTowers.jpg' width='800' height='212' border='0'>"
myAd[4] = "<object data='images/bnrs/Semaphore.swf' type='application/x-shockwave-flash' width='800' height='212><param name='movie' value='images/bnrs/Semaphore.swf'><param name='loop' value='true'><param name='quality' value='high'></object>"
myAd[5] = "<object data='images/bnrs/MoreSky.swf' type='application/x-shockwave-flash' width='800' height='212'><param name='movie' value='images/bnrs/MoreSky.swf'><param name='loop' value='true'><param name='quality' value='high'></object>"
myAd[6] = "<object data='images/bnrs/TinCan.swf' type='application/x-shockwave-flash' width='800' height='212'><param name='movie' value='images/bnrs/TinCan.swf'><param name='loop' value='true'><param name='quality' value='high'></object>"
var isMax = myAd.length;
var currAd = Math.floor(Math.random()*isMax);
function init(){
document.getElementById('isBanner').innerHTML = myAd[currAd];
}
were an external script. That should get rid of the 'click to activate' business (in IE, not in Opera). You might also be better off using the older style object/embed combo tag (simplified version shown here):
HTML Code:
<object width="550" height="400">
<param name="movie" value="somefilename.swf">
<embed src="somefilename.swf" width="550" height="400">
</embed>
</object>
Another good idea would be instead of having init(); as part of the body onload event, to start it as soon as the browser has rendered the container (isBanner). Get rid of this (red):
Code:
<body bgcolor="#a2acb5" leftmargin="0" topmargin="0"
onload="CSScrip . . . pg');init()"
and place it in a script block after the container:
HTML Code:
<div id="isBanner"></div>
<script type="text/javascript">
init();
</script>
Bookmarks