|
|
 |
Re: FN-FORUM: inputting flash into css
date posted 30th January 2007 14:40
Daniel McMullan wrote:
> Hi all, was wondering if any body could help me out. I am trying to add a
> flash swf file to my css. I am creating a web page in dreamweaver and
can add
> the swf file directly into the page via the design page view. But i
think it
> is a messy way to code. I have added the code below to my css
> /**************************************************************
> Header Flash Movie
> **************************************************************/
>
> #headerImg {
> margin: 0 auto;
> height: 100px;
> background: url(../images/button.swf) no-repeat top left;
>
> and have added the code below to my HTML web page thinking that it would
> automatically pull the source from the css and display it on the web
page. But
> no such luck. Is there anyone out there who could cast some light on
this for
> me. I would be very grateful. Cheers
>
>
>
you can't add a swf to a background.
you need to "embed" the swf "object" using various techniques.
choice of two good ones:
http://blog.deconcept.com/swfobject/
deconcept › SWFObject: Javascript Flash Player detection and embed script
http://www.bobbyvandersluis.com/ufo/
bobbyvandersluis.com | Unobtrusive Flash Objects (UFO) v3.20
hth
--
Freelancers, contractors earn more with Prosperity4
Call 0870 870 4414 or visit www.prosperity4.com
and benefit from Inland Revenue approved expenses today.
To advertise here: http://www.freelancers.net/advertising.html
|
 |
|