Log in

View Full Version : What's the problem with this one banner?



KB1
09-13-2006, 07:25 PM
Hi

Something strange is going on with IE 6 and 7 re: my random banners.

http://www.enhancedwireless.net/index.html

If you go to this page and refresh you should eventually see 7 different banners - all of which play (eventually) on Opera, Safari, FF, Netscape and even IE 5 on mac...BUT there is only one banner which will not load on IE 6 or 7. Tried for about a week...

Have a look at the source code and it's the one called "More_Sky" in the array code.

What could possibly be the problem with this not playing ONLY on IE 6/7?

Thanks much
KB

jscheuer1
09-15-2006, 07:33 AM
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:


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):


<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):


<body bgcolor="#a2acb5" leftmargin="0" topmargin="0"
onload="CSScrip . . . pg');init()"

and place it in a script block after the container:


<div id="isBanner"></div>
<script type="text/javascript">
init();
</script>