1. First Copy the flash files (swf+XML) to a sharepoint foder(ex. "/flash")
2. Set the webapplication to permessive mode.
3. Check out and check in all the files (flash, xml, images files) in sharepoint folder
4. All references to images.xml and settings.xml need to be changed to relative (ex. /flash/images.xml)
so you may change:
a. swf file (search for images.xml and settings.xml path and change it to relative)
b. settings.xml file
c. images.xml file (change images links to relative too)
3. Add something like this to the masterpage:
<script type="text/javascript" src="/Style%20Library/js/swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.settingsXML = "/flash/settings.xml";
var params = {};
params.scale = "noscale";
params.salign = "tl";
params.wmode = "transparent";
params.allowfullscreen = "true";
var attributes = {};
swfobject.embedSWF("/flash/banner.swf", "BannerDiv", "975", "221", "9.0.0", false, flashvars, params, attributes);
</script>
<div id="BannerDiv">
<a href="http://www.adobe.com/go/getflashplayer">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
</a>
</div>
2. Set the webapplication to permessive mode.
3. Check out and check in all the files (flash, xml, images files) in sharepoint folder
4. All references to images.xml and settings.xml need to be changed to relative (ex. /flash/images.xml)
so you may change:
a. swf file (search for images.xml and settings.xml path and change it to relative)
b. settings.xml file
c. images.xml file (change images links to relative too)
3. Add something like this to the masterpage:
<script type="text/javascript" src="/Style%20Library/js/swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.settingsXML = "/flash/settings.xml";
var params = {};
params.scale = "noscale";
params.salign = "tl";
params.wmode = "transparent";
params.allowfullscreen = "true";
var attributes = {};
swfobject.embedSWF("/flash/banner.swf", "BannerDiv", "975", "221", "9.0.0", false, flashvars, params, attributes);
</script>
<div id="BannerDiv">
<a href="http://www.adobe.com/go/getflashplayer">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
</a>
</div>
No comments:
Post a Comment