View Full Version : how to put an swf into a css document
triad
12-04-2008, 12:35 PM
Hi people
This may be a dumb question that has no real answer but here we go anyway.
Is there anyway that I can embedd an swf using css with no reference to the swf in the HTML document.
Cheers in advance
Triad
http://www.triaduk.co.uk:confused:
Schmoopy
12-04-2008, 02:06 PM
Sorry, there is no way to embed .swf files in CSS, not for the moment anyway. You can only use images as backgrounds so you may have to a wait a while for this to be implemented. Why do you want it in CSS anyway? What does CSS do that HTML doesn't in this case? Or is it that you want the swf file on multiple pages and want to just use a class instead of using HTML on each page?
boogyman
12-04-2008, 06:57 PM
Or is it that you want the swf file on multiple pages and want to just use a class instead of using HTML on each page?
you could do this easily through Javascript, but you would need to make the assumption that if someone has Javascript disabled, he/she would also not like to view flash movies.
The best way to accomplish this is to use a template file, pass the appropriate values in through some server-side language, then embed the template in whatever number of pages.
The above is all speculating that multiple pages was the actual goal of the question.
If it wasn't, than the best way would be to just hard-code the swf file into the actual file with all the appropriate parameters.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.