在线文档播放问题:播放器加载flash失败
在网上找了phpcms百度文库插件(源程序就是phpcms的),照着做了下,转换都成功了,就是在显示的时候转换好的flash老是加载不出来(播放器正常加载),求解。
转换所用工具:OpenOffice3.0、Windows Resource Kit Tools和swftools。
先上显示页面代码:
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> {loop $docurl $r} <script type="text/javascript" src="/viewer/history/history.js"></script> <script type="text/javascript" src="/viewer/swfobject.js"></script> <script type="text/javascript"> var flashvars = { SwfFile : escape("{$r[filename]}"), Scale : 0.6, ZoomTransition : "easeOut", ZoomTime : 0.5, ZoomInterval : 0.1, FitPageOnLoad : false, FitWidthOnLoad : true, PrintEnabled : true, FullScreenAsMaxWindow : false, ProgressiveLoading : true, PrintToolsVisible : true, ViewModeToolsVisible : true, ZoomToolsVisible : true, FullScreenVisible : true, NavToolsVisible : true, CursorToolsVisible : true, SearchToolsVisible : true }; var params = {}; var attributes = {}; params.quality = "high"; params.bgcolor = "#ffffff"; params.allowscriptaccess = "sameDomain"; params.allowfullscreen = "true"; attributes.id = "wenkuplays"; attributes.name = "wenkuplays"; swfobject.embedSWF("{APP_PATH}viewer/wenkuplays.swf","flashContent","700","550", "10.0.0","{APP_PATH}viewer/playerProductInstall.swf",flashvars,params,attributes); swfobject.createCSS("#flashContent", "display:block;text-align:left;"); </script> <div id="flashContent"> <p> 本文档播放器要确保Adobe Flash Player版本10.0.0或更高版本。</p> <script type="text/javascript"> var pageHost = ((document.location.protocol == "https:") ? "https://" : "http://"); document.write("<a href='http://www.adobe.com/go/getflashplayer'><img src='"+ pageHost + "www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' />" ); </script> </div> {/loop}
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> SwfFile : escape("{$r[filename]}"),
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> SwfFile : decodeURI("{$r[filename]}"),
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> SwfFile : decodeURI("a.swf"),
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> SwfFile : decodeURI("/a.swf"),
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> SwfFile : decodeURI("{APP_PATH}/a.swf"),
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> SwfFile : decodeURI("{APP_PATH}a.swf"),