In css trying to embed swf for the background

in css.. i am designing a style for my journal in a website called deviant art.. they have a space to write in css language the style i want.. in the background image section i am trying to use a .swf file instead of a normal .jpg or .gif or .png etc etc.. is it possible to replace the background image with a flash file object


Share Send to a friend Watch Report
 
 

5 Posted Answers
Order by

 
18 helpful answers

 First please add the link to your deviant art home page so we guys could see your works. Now to your question...

What you are trying to do isn't possible in HTML. Flash can't be used as background. But there are alternatives. I'm assuming that your goal is to add animation (with no interactive elements) in the background of your text.

1. Position your html on top of the Flash object

you can position your html above the flash as MackTheKnife suggested. If you want to do that it is important that you define the param "wMode" of the flash object as transparent. The code for this will look like this

param name="wmode" value="transparent"

If you don't define this param then the Flash object will always apear on top of other html elements on the page.

This approach will not work in all browsers. 

 

2. create a gif animation from your flash movie and use it as background using css

 This solution will work in all browsers. the code will look like this:

 <div style="width:[your width]px;height:[your height]px; background-image: url([your image]);">

Your content will go here 

</div> 

You could also control the position of the background in the div and prevent it from repeating.  

Posted 2007-11-08T14:50:45Z
Avi Charkham was invited by Yedda to answer this question.

Helpful?(2)
Rated as Best Answer
 
309 helpful answers

I was late for work this morning, because I got stuck in Zeno's paradox.

As far as I know, only images or colors can be used as background.

However if it is important, you could try putting the content in a div that is floating above the flash animation

 

thanks alot i think i am gonna go for the second option because i considered it before as plan b since plan a doesnt work.. deviantart doesnt support inserting anything other than images in the journal and no use of html exceding <b> and <italic> ect for text.. and images.. but no objects..

so i am gona use a gif file..

 

here is my DA web address http://m-ajinah.deviantart.com 

 

I was searching for a way to include swf to a css, but unfortunately this is not possible , so i have to make this in other ways :(

 

  Thanks for those useful info

hguhf

 

i want to use swf file as background in css

Sign in to participate

Got an answer for majeenah? Would you like to comment on the posted answers, or vote for the one which you think is the best?

Sign up for a free account, or sign in (if you're already a member).

Explore Related Questions

Other people asked questions on similar topics, check out the answers they received:


Q:

My question is about Adobe Flash Player How can I ...

My question is about Adobe Flash Player How can I read files with SWF extension
Submitted by fghazi   2 years ago.
  • viewed 1064 times
Last answer posted 1 year ago by meenakshi
Asked about "Adobe Flash Player"


Q:

How to convert a part of my Flash file ?

How to convert a part of my Flash file with moyea swf to video converter? I have downloaded moyea but i have no idea about how ...
Submitted by sophia   1 year ago.
  • viewed 123 times
Last answer posted 14 days ago by desertfish


Q:

Flash object in css

In Programming: How do I insert a Flash object into a .css class, and then reference it from HTML code. Is it even Possible?
Submitted by nirh   3 years ago.
  • viewed 4587 times
Last answer posted 3 years ago by nirh



» More...

Explore Related Posts in Forums

Using Flash as a Background

A html/css tutorial that allows an SWF to be used as a page background just like the playstation website... in order to give something back... anyway heres my first flash tutorial. To be more accurate its , and then I moved all of their actual icons, and only had the background SWF on their desktop

Flash SWF Files

And it didn't. css code snippet with .swf file Help with Code Tags ( Toggle Plain Text ) #VISUAL{ width but I have a question in regards to Flash; I have never worked with Flash in any way before ) Linking a flash file from an image tag (equivelent to putting it as a background image in CSS

Embedding Flash file in CSS code

With a .swf flash file within the code in question below... Any help/guidance on how to best achieve ; background:transparent url( images/xyz.jpg ) no-repeat top left; } Many Thanks You can't render Flash from CSS. You need the proper tag in HTML. I quess you need
» More...
Powered by
Feed - Subscribe to changes to this Q&A Blog
ADVERTISEMENT
ADVERTISEMENT
AOL Autos Q&A is powered by Yedda an AOL Company
Copyright © 2006-2009, Yedda Inc. and respective copyright owners