CKplayer for Discuz!X插件 整合discuz!X3.5使用教程
下载CKplayer,上传解压到discuz网站根目录,然后进入后台,界面-编辑器设置-Discuz!代码,添加标签ckplayer,图标文件 / 描述ck.png,点确定。返回勾选 可用 显示 ,然后点确定。
点击详情进入编辑替换内容:
<span style="color: rgb(51, 51, 51); font-family: Tahoma, " microsoft="" yahei",="" simsun;"=""><script type="text/javascript" src="./ckplayer/ckplayer.js"></script></span>
<span style="color: rgb(51, 51, 51); font-family: Tahoma, " microsoft="" yahei",="" simsun;"=""><div id="video" style="width:480px;height:320px;"></div></span>
<span style="color: rgb(51, 51, 51); font-family: Tahoma, " microsoft="" yahei",="" simsun;"=""><script type="text/javascript"></span>
<span style="color: rgb(51, 51, 51); font-family: Tahoma, " microsoft="" yahei",="" simsun;"="">var videoObject = {</span>
<span style="color: rgb(51, 51, 51); font-family: Tahoma, " microsoft="" yahei",="" simsun;"="">container: '#video',</span>
<span style="color: rgb(51, 51, 51); font-family: Tahoma, " microsoft="" yahei",="" simsun;"="">variable: 'player',</span>
<span style="color: rgb(51, 51, 51); font-family: Tahoma, " microsoft="" yahei",="" simsun;"="">video:'{1}'</span>
<span style="color: rgb(51, 51, 51); font-family: Tahoma, " microsoft="" yahei",="" simsun;"="">};</span>
<span style="color: rgb(51, 51, 51); font-family: Tahoma, " microsoft="" yahei",="" simsun;"="">var player=new ckplayer(videoObject);</span>
<span style="color: rgb(51, 51, 51); font-family: Tahoma, " microsoft="" yahei",="" simsun;"=""></script></span>
例子:
内容<调用时去掉@>
解释:
ckplayer视频播放器
参数个数:
1
参数提示语:
{1}直链地址
嵌套次数:
1
允许使用此代码的用户组:
这个就自己设定了.
width:480px;height:320px 可以自己进行修改
页:
[1]