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
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>
<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.
The search for people who can answer your question continues for as long as needed - until you find the answer you were looking for.
When an answer is posted by someone who was invited (byYedda or by yourself) to answer your question, their answer is marked with a yellow "invited by Yedda".
To be invited to answer other people's questions in your areas of knowledge and interest, be sure to list your favorite topics:
» My Settings My Topics.
Of course, the more helpful your answers are, the more likely you are to be invited to future questions...
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
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).
Other people asked questions on similar topics, check out the answers they received:
Other people asked questions on various topics, and are still waiting for answer. Would be great if you can take a sec and answer them