Terri Posted February 26, 2007 Share Posted February 26, 2007 I have a swf file I need to embed in my php code but the problem is, my header at the moment is a gif and is located in the css file and I need to replace it with a swf file. How would I do this? Thanks Terri Quote Link to comment Share on other sites More sharing options...
magnetica Posted February 26, 2007 Share Posted February 26, 2007 I'm a bit confused do you just want the code to show a flash movie? Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 26, 2007 Share Posted February 26, 2007 You cannot embed a flash file in a gif, so you will need to change the headers. Quote Link to comment Share on other sites More sharing options...
Terri Posted February 26, 2007 Author Share Posted February 26, 2007 I dont want to embed a flash file into a gif. I want to remove the gif and replace it with a flash file but I dont know how to write the code actually to do this... This is what I am seeing now: #header_logo { font-family: arial, verdana; color: #ffffff; font-size: 30px; font-weight:bold; padding:0px; margin:0px; background-image: url(../images/header_03a.gif); height:130px; line-height:130px; text-align:center; vertical-align:bottom} That is the code in the css but I want it to have a flash file as a header, not the gif... Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 26, 2007 Share Posted February 26, 2007 You can't have a flash file as a background image. You'll need to put the flash file on the actual html. Quote Link to comment Share on other sites More sharing options...
JBS103 Posted February 26, 2007 Share Posted February 26, 2007 If you want it to "seem" like it is the background, you can link to the .swf directly and it will stretch across the user's entire browser window. Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 26, 2007 Share Posted February 26, 2007 That would work if you didn't want any foreground :-P Quote Link to comment Share on other sites More sharing options...
Terri Posted February 26, 2007 Author Share Posted February 26, 2007 I dont know if I am misunderstanding you or if you are misunderstanding me... I have a gif (a regular picture) that I am using as a header for my website. Instead of the gif (a regular picture), I would like to have a flash header (same exact size of the gif). Now my site is all php and my header (gif) is located in a css file and is called in. I have this piece of code in my css file: background-image: url(../images/header_03a.gif); That is my header.... I would like for it to say: background-image: url(../images/header.swf); But that doesnt work... How would I fix it to where the swf will work??? Quote Link to comment Share on other sites More sharing options...
gazever Posted February 26, 2007 Share Posted February 26, 2007 I dont think css supports flash swfs, open up your fla file, export the html, then include this as a header file for each page you want it on. Gaz Quote Link to comment Share on other sites More sharing options...
mbtaylor Posted February 26, 2007 Share Posted February 26, 2007 CSS definately doesnt support Gifs as backgrounds. I suggest you look at SWFObject: http://blog.deconcept.com/swfobject/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.