21281 Posts in 5729 Topics by 2600 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 775 Views |
-
Flash in a template

20 June 2010 at 4:19pm
hay i want to put a flash banner in my template i have made a .ss file with the html and put it in my Includes. i then put the Includes tag on my page.ss file but it just keeps telling me i don't have the flash player or that the movie has not loaded. i cant see why this is and im new to ss is there anyone out there that can help me
-
Re: Flash in a template

20 June 2010 at 6:55pm
Could you please post the code. Then we'll be able to help you a bit more easily
-
Re: Flash in a template

20 June 2010 at 8:12pm
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="950" height="140" id="Untitled-1" align="middle">
<param name="movie" value="Untitled-1.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="play" value="true" />
<param name="loop" value="false" />
<param name="wmode" value="transparent" />
<param name="scale" value="showall" />
<param name="menu" value="true" /><param name="devicefont" value="false" />
<param name="salign" value="" />
<param name="allowScriptAccess" value="sameDomain" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="Untitled-1.swf" width="960" height="150">
<param name="movie" value="Untitled-1.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="play" value="true" /><param name="loop" value="false" />
<param name="wmode" value="transparent" />
<param name="scale" value="showall" />
<param name="menu" value="true" />
<param name="devicefont" value="false" />
<param name="salign" value="" />
<param name="allowScriptAccess" value="sameDomain" />
<!--<![endif]-->
<a href="https://www.adobe.com/go/getflash"><img src="https://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
</a>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object> -
Re: Flash in a template

20 June 2010 at 8:41pm
I think your !IE syntax is incorrect which maybe causing it to fail. Theres a extra > which I don't think should be there. For including flash cross browser I normally prefer to use SWFObject (http://code.google.com/p/swfobject/) which handles the cross browser compatibility.
-
Re: Flash in a template

21 June 2010 at 10:17am Last edited: 21 June 2010 10:19am
Hey guys,
I did some work on getting flash to work on a site for x-browser support and came across this method. which means the whole thing can be simplified as an this example used on one of my sites:
<object width="400" height="150" type="application/x-shockwave-flash" data="assets/banner/preloader-banner-1.swf">
<param name="movie" value="assets/banner/preloader-banner-1.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<img src="assets/banner/banner-still.jpg" title="Your browser does not support Flash objects so here is a picture of a snowboarder instead" alt="New Zealand Snow Board image"/>
</object>Essentially replace classid with type="application/x-shockwave-flash". It's tested on Firefox, Opera, Safari, Chrome & IE6+ and I think you'll agree it's a lot simpler!
Hope that helps
Rich
| 775 Views | ||
|
Page:
1
|
Go to Top |


