Sharpoint Designer如何插入flash
时间:2008-10-23 来源:sdwjian
如何插入flash,找了半天也没发现有说明的,还是找找国外的吧,结果果然找到了,moss国内用的还是不多啊
先看一下原版:
first:You should just be able to add the swf file to your virtual "_layouts" directory
second:Add the html "<object..." tag like normal to call it.
Something like...
<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="160" height="160">
<param name="movie" value="_layouts/images/<your file>.swf">
<param name="quality" value="High">
<embed src="_layouts/images/<your file>.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" width="160" height="160"></object>
好像不够详细啊,那就看一个更详细的:
By "HTML editor control" do you mean the "XML Editor" web part? I was able to display an SWF using the "XML Editor" web part. Sample code below.
<table border="0" cellspacing="0" cellpadding="0"><tr><td align="center"></td>
<td align="center"></td>
</tr>
<tr>
<td align="center"><h3>Indianapolis</h3></td>
<td align="center"><h3>San Bruno</h3></td>
</tr>
<tr>
<td align="center"></td>
<td align="center"></td>
</tr>
<tr>
<td align="center"><h3>St. Louis</h3></td>
<td align="center"><h3>Exeter</h3></td>
</tr></table>
--------------------
再看另外一个方法
How to get a flash movie in SharePoint
Alright I admit I had never displayed flash in a SharePoint site until today. I figured it would be hard and really it isn't too hard. All you need to do is upload the .SWF file to a web location (I used a document library but it could be on a different server) then add a content editor web part to your page. Now go into your content editor web part and click on source editor. Now paste the following code into the web part.
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
WIDTH="550" HEIGHT="400" id="myMovieName">
<PARAM NAME=movie VALUE="myFlashMovie.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>
<EMBED src="/support/flash/ts/documents/myFlashMovie.swf" quality=high bgcolor=#FFFFFF WIDTH="550" HEIGHT="400"
NAME="myMovieName" ALIGN="" TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED>
</OBJECT>
Replace myFlashMovie.swf with the url of your SWF file.
That is it. You now have a flash movie on your site.
等下午我试验一下,应该问题不大