|
Project Information
Members
Featured
Downloads
Links
|
AboutinsertFlash is a plugin for popular cross-browser rich editor HTMLArea (http://www.dynarch.com/projects/htmlarea/). insertFlash 是廣受好評的網頁編輯器 HTMLArea (http://www.dynarch.com/projects/htmlarea/) 的外掛程式 InstallationUnpack zip to htmlarea\plugins 將檔案解壓縮到 htmlarea\plugins NoticeinsertFlash plugin use swfobject.js version 1.4.x / 1.5.x linked in http://htmlarea-insert-flash.googlecode.com/files/swfobject.js, you could modify this link in lang setting javascript, ex. en.js "sysSWFObjectURL" of I18N insertFlash 使用 swfobject.js 版本是 1.4.x 或 1.5.x, 你可由 http://htmlarea-insert-flash.googlecode.com/files/swfobject.js 取得連結,你可以修改語系檔(例如 b5-utf8.js)中 "sysSWFObjectURL" 這項參數值 There are 3 parameters wrote in lang setting file you should know: 語系檔中有三個參數你必需清楚用途: "sysUploadScript" :indicates the server script file for uploading flash file absolute path is suggested, ex. /cgi-bin/upload.php or /htmlarea/upload.asp 指定上傳 flash 檔案的程式,建議用絕對路徑,例如 /cgi-bin/upload.php 或 /htmlarea/upload.asp "sysSWFObjectURL" :indicates "swfobject.js" source url, absolute path is suggested, ex. http://htmlarea-insert-flash.googlecode.com/files/swfobject.js or http://yoursever/path/swfobject.js 指定 "swfobject.js" 連結網址,建議用絕對路徑,例如 http://htmlarea-insert-flash.googlecode.com/files/swfobject.js 或 http://yoursever/path/swfobject.js Notice!swfobject v1.4/1.5 is much different with version 2.0 注意! swfobject v1.4/1.5 的使用方法和 2.0 差異甚大 "sysAJAXRequest" :indicates popup window select flash file drodown-plist generate script or xml file. absolute path is suggested, ex. /cgi-bin/readlist.php or /htmlarea/list.xml 指定插入 flash 時預設檔案清單,可以是程式或xml檔案,建議用絕對路徑,例如 /cgi-bin/readlist.php 或 /htmlarea/list.xml Regardless whether an xml file or a server script is used to generate xml,Please make a reference to "xmlformat.xml" in the output content format 無論你使用 xml 檔案或是程式來產生 xml 格式清單,請參考 "xmlformat.xml" 中的格式 IssueA known issue exists in this version of insertFlash: After you insert flash, it will generate the following html code 這個版本的 insertFlash 有一個問題待解決: 當你插入 flash 後, 會產生如下的 HTML 語法 <span id="_insertFlash_span">
<script src="http://htmlarea-insert-flash.googlecode.com/files/swfobject.js" type="text/javascript"></script>
<div style="width:###px; height: ###px;" name="..." id="...">
<img width="###" height="###" style="background: transparent url(/HTMLArea/plugins/insertFlash/img/flashlogo.gif) no-repeat scroll center center; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" src="/HTMLArea/plugins/insertFlash/img/empty.gif" />
</div>
<script>
var fo = new SWFObject("/INF/Demo/webSite/Layout/img/flash/imgad[2].swf", "viewer", "212", "212", "7", "#FFFFFF");
fo.addParam("wmode", "transparent");
fo.write("imgad[2]_swf");
</script>
</span>Here, you will see one picture in the div tag, when you delete this flash by selecting object in the HTMLArea, only picture will be selected and not the whole syntax (from <span> to </span>) 這裡,在 div 標籤中放了張圖,如果你想刪除插入的 flash, 點選時, 只會選到圖而不是整個 flash 插入語法(由 <span> 到 </span>) Enabling the editor's status bar is suggested (ex. config.statusBar=true),then select whole flash and delete it. 建議開啟編輯器的狀態列(例如 config.statusBar=true),然後選取整段語法後刪除 Demo |