• Answers
  • Web
Personalize Yedda, (And make Danny Happy)
People ask & answer about almost everything. Tell us what you're interested in... So we can personalize Yedda especially for you
I'm interested in:

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

 
303 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

 
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
 

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).

Feed - Subscribe to changes to this Q&A Blog
ADVERTISEMENT
  • Answers
  • Web
Copyright © 2006-2009, Yedda Inc. and respective copyright owners · CC License