ouyang789987 / swfobject

Automatically exported from code.google.com/p/swfobject
0 stars 0 forks source link

Alternate content does not display in IE7 #526

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I created an html page with a div holding textual content (styled with CSS), 
then used swfobject to load my flash file in place of this div. The flash file 
is loaded in all the browsers, however while testing the alternate content (by 
disabling the flash plug-in), the alternate content only sporadically appears 
in IE7. I would go to another tab, then back again and the content would appear.

If I disabled javascript the content always appears properly. The page I'm 
testing is basic, the only js is swfobject, the only items on the page are the 
div containing the alternate content, swfobject, and the flash that gets called.

I have backed off swfobject to version 1.5 and it seems to work just fine. I'm 
not sure what updates have been done to the js, but it doesn't seem as 
compatible.

The code for my alternative div is:

<div id="usedcarwidget" style="width: 462px; height: 182px; background-image: 
url(flash_bg.jpg); font-family: Arial, Helvetica, Sans-Serif; font-size: 12px; 
font-weight: bold;">
    <div style="color: #235C93; margin: 0px 0px 0px 10px; font-size: 14px; padding-top:10px;">Search for a Used Vehicle</div>
    <div style="margin: 35px 0px 0px 25px; width: 405px;">
        <div style="font-style: italic;">Looking for a used car?<br />
        Thousands of used vehicles are just a click away.</div>
        <div style="margin: 15px 0px 0px 0px;">Check out our comprehensive National used car inventory - <a href="http://somedomain.com/" style="color: #235C93;">a vehicle for every budget and style</a>. </div>
    </div>
</div>

The background image and the text "Search for a Used Vehicle" are displayed, 
the remainder of the content is missing, but the divs are selectable using IE's 
developer toolbar.

Original issue reported on code.google.com by jdun...@gmail.com on 10 Dec 2010 at 9:24

GoogleCodeExporter commented 9 years ago
SWFObject 2.2 was was heavily tested in IE7. 

Have you tried posting this problem to the SWFObject Google Group?  
http://groups.google.com/group/swfobject

If SWFObject's CSS handling is causing your problem, you may want to consider 
using swfobject.switchOffAutoHideShow()

I'm closing this ticket due to age, please post again if you would like to 
pursue this further.

Original comment by platelu...@gmail.com on 16 May 2011 at 11:23