Forum Moderators: open

Message Too Old, No Replies

SWF file as background in Xhtml and CSS

         

sabine

5:25 pm on May 22, 2005 (gmt 0)

10+ Year Member



I would like the have an flash animation running in the background of a page coded in XHTML and CSS.

I have tried placing the swf-file in a div with abolute positioning, using the z-index property. Also I tried to position the object and embed selectors. No results.

Am I faceing the imposible or have I overseen a possibility?

Thanks Sabine

PS. I know my problem is cross forums. So excuse me, for posting the problem here.

BlobFisk

11:44 am on May 23, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi sabine,

Unfortunately it is not possible to use an object as a background. CSS only supports images as background.

Also, trying to layer divs on top of the Flash object is also problematic as Flash uses a plugin with occupies a z-index outside the scope of the DOM, meaning that no matter what z-index you give it, Flash will always be on top.

HTH

sabine

11:40 pm on May 23, 2005 (gmt 0)

10+ Year Member



Thanks for your help. Your explanation gives me a good understanding why a fix I got in the CSS forum only worked in IE and not in Firefox, Netscape and Opera.

Adding to the flash object: <param name="wmode" value="transparent" />
does only work in IE.

thanks Sabine

BlobFisk

10:03 am on May 24, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yep - that is a helpful parameter.... But only for IE!