Hello.  It is working as intended.  I don't personally agree with how it
works, but...

When the SWFObject is actually embedded it does replace the div named in
your code, and the css associated with that DOM node disappears.

The recommended approach to deal with this is to create a container div
around your SWFObject div and apply the styles there.  Presuming you have
control over the naming convention and the css file, this shouldn't be hard
to resolve.

Vincent

On Sat, Mar 13, 2010 at 2:21 AM, gwh <[email protected]> wrote:

> Hi everyone,
>
> I'm using SWFObject2 to insert my swf into a web page. There are two
> publishing methods - static and dynamic. I'm using the dynamic method.
> You have to specify the id of the container that will be replaced with
> the flash content if enough JavaScript and Flash support is
> available.
>
> If there is not enough JavaScript and Flash support then the .swf file
> in this container will be replaced by whatever I specify - in my case
> an image. So since the id of my div is "flash", I used this as the
> html container id.
>
> <div id="flash"> <img src="img/alternate.jpg" />
> </div>
>
> This div has some css rules applied to it that controls the layout of
> it, ie. it floats it etc. When I test though, the .swf file is
> inserted into the div but it loses the css styles. When I turn off the
> flash player so that the alternative image is used instead, the css
> works.
>
> I wondered if anyone knows why this is happening?
>
> Appreciate any assistance.
>
> --
> You received this message because you are subscribed to the Google Groups
> "SWFObject" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<swfobject%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/swfobject?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en.

Reply via email to