Results 1 to 2 of 2

Thread: What's the problem with this one banner?

  1. #1
    Join Date
    Jul 2006
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default What's the problem with this one banner?

    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

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •