SupeSite插件
插件名称: |
插入flv视频 |
插件简介: |
插入flv视频 |
语言编码: |
GBK简体 |
插件作者: |
火塬 |
修改方法和所需文件都已经在附件里,抛砖引玉而已,请大家按照方法自己增加其他所需功能吧。
演示地址:
http://www.365ago.com/html/daotong/2009/daotong633.html
打开images/edit/edit.js:
查找:
{w: 2, x: 0, id: "h5"},
{w: 20, x: -445, t: "功能", func: "editmenu"}
修改为: {w: 2, x: 0, id: "h5"},
{w: 20, x: -445, t: "功能", func: "editmenu"},
{w: 20, x: -759, t: "插入flv视频", func: "flv"}
查找:
case "editmenu":
oPenWin("开启功能列表", 156, 250, siteUrl + "/images/edit/menu.html");
break;
下面增加:
case "flv":
oPenWin("请输入flv地址", 300, 160, siteUrl + "/images/edit/InsertFlv.html");
break;
Insertflv.html和play.swf文件放入 images/edit/ 目录
include/js/common.js
查找:
if(medias.className=='showvideo' ||
修改为:
if(medias.className=='showvideo' || medias.className=='showflv'||
查找:
break;
case "showvideo":
上面增加:
case "showflv":
mediaStr="<object classid='clsid27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='697' height='450'><param name='movie' value='/images/edit/play.swf'><param name='quality' value='high'><param name='allowFullScreen' value='true' ><param name='FlashVars' value='vcastr_file="+smFile+"&IsAutoPlay=0&IsContinue=1' ></object>";
break; |
|