• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Embed .SWF files, how to??


Stationery Direct

Administrator
Staff member
#1
I have been given a couple of files by Adobe that are flash files (.swf), how do I go about displaying these on the forum, in the position of the main banner above?

To show the animated gifs was easy, we use the following code....

PHP:
<a href="http://www.graphicdesignforums.co.uk/graphic-design-competitions/3291-graphic-design-forums-competition.html"><img src="http://www.graphicdesignforums.co.uk/banners/adobe-cs5.gif" alt="WIN ADOBE CS5 PREMIUM EDITION + MUCH MORE" /></a>
...but what do I have to change the above code to to display .swf files?

Any advice is greatly appreciated.

Cheers

Damon
 
#4
it very easy

PHP:
<script type="text/javascript" src="js/swfobject.js"></script>
<script type="text/javascript">	
		swfobject.embedSWF("flashmovie.swf", "FlashContent", "960", "250", "9.0.0", "expressInstall.swf");
</script>
and in your page just create a DIV with the id FlashContent like so

PHP:
<div id="FlashContent">
</div>

the flash movie will be loaded into that div
 
#7
it very easy

PHP:
<script type="text/javascript" src="js/swfobject.js"></script>
<script type="text/javascript">	
		swfobject.embedSWF("flashmovie.swf", "FlashContent", "960", "250", "9.0.0", "expressInstall.swf");
</script>
and in your page just create a DIV with the id FlashContent like so

PHP:
<div id="FlashContent">
</div>

the flash movie will be loaded into that div

Remember to provide a no-script tag for you alternative content :)