A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.
I use the following code to load a flash banner
<object width="960" height="160">
<param name="movie" value="/data/matasoftimage/bannerCN.swf" wmode="transparent">
<embed src="/data/MatasoftImage/bannerCN.swf" width="960" height="160" wmode="transparent">
it works great in Firefox and IE8, but it cannot be loaded in IE7. The site just freezes.
Thank you for help.
look into swf object. There are licensing issues with Flash in IE, which is why swf object was constructed. http://code.google.com/p/swfobject/
Thank you for replying. I found that mojo already has the swfobject script included. I found the key in web.config <add key="SwfObjectUrl" value="~/ClientScript/SwfObject/2.2/swfobject.js" />. However, I didn't find the script in the location indicated in the key.
I include the script from the scriptloader in layout.master and it works now.
There is also an option on the HTML Content Feature in the settings that allows you to include the swfobject.
I tried to use the swfobject script to add a flash banner in my layout.master and the flash has been displayed sucessfully. The only problem is I cannot set the transparent parameter in script and the flash banner is on top of everything.
Here is the script I used:
swfobject.registerObject("myId", "9.0.0", "expressInstall.swf");
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="960" height="160">
<param name="movie" value="/Data/matasoftimage/bannerCN.swf" />
<param name="wmode" value="transparent" />
<object type="application/x-shockwave-flash" data="/Data/matasoftimage/bannerCN.swf" width="960" height="160">
<img alt="Get Adobe Flash player" src="/data/matasoftskin/banner.jpg"/></a>
I'm pretty sure that you have to add wmode="transparent" to the object tag as well. I think that the param only applies to certain browsers.
documentation here: http://code.google.com/p/swfobject/wiki/documentation but I know that you can download a little utility from the google code page that will construct the proper code for you based on boxes that you tick and whatnot. I think that it's this zip here: http://swfobject.googlecode.com/files/swfobject_generator_1_2_html.zip
thank you. Everything works perfect.