function DisplayMovie() {
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" height="211" width="210">');
document.write('<param name="movie" value="/Movie.swf">');
document.write('<param name="quality" value="high">');
document.write('<param name="wmode" value="transparent">');
document.write('<embed src="/Movie.swf" wmode="opaque" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" height="211" width="210"></embed>');
document.write('</object>');
}
The reason for the separate Javascript file is to work around the fact that you have to click on embedded media to activate it.
Once you have the Javascript file you can add a Content Editor Web Part to whatever page you want the video to appear in. If you add the following lines to the Editor Web Part it will call your Javascript file and display the video.
<script type="text/javascript" language="javascript" src="/en-US/FlashMovie.js"></script>
<script type="text/javascript" language="javascript">DisplayMovie();</script>
http://flashpart.codeplex.com/
ReplyDelete