This....
Code:
<object type="application/x-shockwave-flash" data="/yourfilepath/carousel.swf" width="600" height="400">
<param name="movie" value="/yourfilepath/carousel.swf" />
<param name="quality" value="high">
<param name="BGCOLOR" value="#FFFFFF">
<param name="menu" value="false">
<param name=wmode value="transparent">
</object>
Is not the same as what you was first trying to do...
Code:
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
var params = {};
params.scale = "noscale";
params.salign = "tl";
params.wmode = "transparent";
var attributes = {};
swfobject.embedSWF("carousel.swf", "CarouselDiv", "600", "400", "9.0.0", false, flashvars, params, attributes);
</script>
<div id="CarouselDiv"></div>
thus the error in IE...
If you rename swfobject.js and place it in includes\templates\YOUR_TEMPLATE\jscript\jscript_swfobject.js it will load with any page.
I normally have my flash files in my main image folder. if the Loadxml was setup right, it shouldn't matter where it's located.
Code:
<script type="text/javascript">
var flashvars = {};
var params = {};
params.scale = "noscale";
params.salign = "tl";
params.wmode = "transparent";
var attributes = {};
swfobject.embedSWF("images/flash/carousel.swf", "CarouselDiv", "600", "400", "9.0.0", false, flashvars, params, attributes);
</script>
<div id="CarouselDiv"></div>
Whats nice with using SWFObject, if you place text or a gif image within the div tags, when scripting is turned off that piece will be displayed other wise its replaced by the swf. The biggest problems you may have is locating the file and setting its url. you can use the full url if the indirect doesn't work out.
Bookmarks