Integrate the flash slide show picture control with the Shar
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 FilesCommon FilesMicrosoft SharedWeb Server Extensions14TEMPLATELAYOUTSFlash (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" 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>
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 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |