Jump to content

using SWF files as background, using php


PC Nerd

Recommended Posts

hi,

 

Im not sure if it posilbe, but im trying to get a SWF file as the background of my page, but the swf file is dynamically named.  Its like a gallery and when a user clicks on the lick to that file, it displays the image /swf.  but i want the file to appear as the background.

 

code:

 

echo "<body background = '".$POST['file_name']."'>";

 

ii have 3 files so far.  file1, 2, 3 .swf.  and i can easily view each one as a seperate file, and they work once i embed them as images. 

 

is this my php code, or do i have to look at my browser to display the swf as BG..?

 

thanks

Link to comment
Share on other sites

From what I understand of your question: You simply need to receive input from the user when they submit the flash form and then display the appropriate background flash image. In which case your example of $_POST['file_name'] should work. Although I don't believe you can actually use a flash image as a background for a webpage with the HTML you provided.

Link to comment
Share on other sites

oh ok, thanks....... its a simply link, its not a flash form or anythign great.  but thanks about he background bit.  does anyone else know if its possible to have a swf file as a background of a page?  or is it possible to have the animation in another format???  they al have mouse actions, their just "movies" as such. 

 

thanks sooo much.

 

Link to comment
Share on other sites

A SWF background would Lag your processor so much that i dont even think the page would load (Unless your using an XPS) But if you can still an SWF background is not all that smart! but if you need one you could do it in .css use

 

background-image: ('link/to/swf.swf')

background-position x-y;

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.