现在的位置: 首页 > 综合 > 正文

Integrate the flash slide show picture control with the SharePoint 2010

2013年10月05日 ⁄ 综合 ⁄ 共 2632字 ⁄ 字号 评论关闭

Integrate the flash slide show picture control with the SharePoint 2010.

Here is the result:

Here are the steps for integrating the flash slide show picture control with the SharePoint 2010

1. Download the flash meterials from
http://download.csdn.net/detail/farawayplace613/4597630

2. Upzip the zip file and copy them(Img226882895.swf, swflash.cab) to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\Flash (if you don't have flash folder then
please create it)

3. To enable the flash in SharePoint: Central admin -> Web Application management -> Select the web application in question by highlighting it then select -> general settings on teh ribbon - scroll down and select the permissive radio button for "Browser
File Handle"

4. Create a picture library and upload some pictures into it, for how to do it, please checkhttp://blog.csdn.net/farawayplace613/article/details/8018705

5. Add a content web part into the web part page

6. Edit the add web part:

Input the follow script after the html source windows dispalying:

     

        <script type="text/javascript">
            var focus_width = 220;
            var focus_height = 150;
            var text_height = 15;
            var swf_height = focus_height + text_height;
            var pics = 'http://moss/TestImageLib/_w/001_jpg.jpg|http://moss/TestImageLib/_w/002_jpg.jpg|http://moss/TestImageLib/_w/003_jpg.jpg';
            var links = 'http://moss/TestImageLib/_w/001_jpg.jpg|http://moss/TestImageLib/_w/002_jpg.jpg|http://moss/TestImageLib/_w/003_jpg.jpg';
            var texts = '001|002|003';
            document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://moss/_layouts/Flash/swflash.cab#version=6,0,0,0" width="' + focus_width + '" height="' + swf_height + '">');
            document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="http://moss/_layouts/Flash/Img226882895.swf"><param name="quality" value="high"><param name="bgcolor" value="#ffffff">');
            document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
            document.write('<param name="FlashVars" value="pics=' + pics + '&links=' + links + '&texts=' + texts + '&borderwidth=' + focus_width + '&borderheight=' + focus_height + '&textheight=' + text_height + '">');
            document.write('<embed src="Img226882895.swf" wmode="opaque" FlashVars="pics=' + pics + '&links=' + links + '&texts=' + texts + '&borderwidth=' + focus_width + '&borderheight=' + focus_height + '&textheight=' + text_height + '" menu="false" bgcolor="#ffffff" quality="high" width="' + focus_width + '" height="' + focus_height + '" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
            document.write('</object>');
 </script>

You need update above code before typing it into the html source text box:

a. Replace Moss with your Moss server Name.

b.  Replace picture url with yours.

c.  Replace the link url with yours

d. Replace the diaplay texts with yours

 

 

抱歉!评论已关闭.