主题 : 求教主页是否可以插入ckplayer的视频播放? |
级别: 解元
![]() |
2# 发表于:2016-03-14 11:06:49 IP:60.99.*.*
<div id="a1"></div>
<script type="text/javascript"> var flashvars={f:'/${res}/js/11.flv',c:0,b:1,m:1,}; var params={bgcolor:'#FFF',allowFullScreen:false,allowScriptAccess:'always',wmode:'transparent'}; CKobject.embedSWF('${resSys}/ckplayer/ckplayer.swf','a1','ckplayer_a1','346','265',flashvars,params); </script> |
||
---|---|---|---|
级别: 解元
![]() |
3# 发表于:2016-03-14 11:07:28 IP:60.99.*.*
已经加载<script src="${resSys}/ckplayer/ckplayer.js" type="text/javascript"></script>
<script src="${resSys}/ckplayer/offlights.js" type="text/javascript"></script> |
||
---|---|---|---|
级别: 总版主
![]() |
8# 发表于:2016-03-14 11:16:08 IP:182.0.*.*
[#if content.mediaPath?? && content.mediaType??]
<p style="margin: 5px auto; text-align: center"> [#if content.mediaType=='FLV'] <object height="500" width="98%" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> <param name="movie" value="/${res}/img/flvplayer.swf" /> <param name="quality" value="high" /> <param name="allowFullScreen" value="true" /> <param name="FlashVars" value="vcastr_file=${content.mediaPath!}&BufferTime=3" /><embed height="500" width="98%" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" flashvars="vcastr_file=${content.mediaPath!}" allowfullscreen="true" src="/${res}/img/flvplayer.swf"></embed> </object> [#elseif content.mediaType=='FLASH'] <embed height="500" width="98%" type="application/x-shockwave-flash" quality="high" src="${content.mediaPath}" wmode="transparent" align="center"></embed> [#elseif content.mediaType=='CK'] <!--ckplayer播放视频--> <div id="video" style="position:relative;z-index: 100;width:960px;height:500px;float: left;"><div id="a1"></div></div> <script type="text/javascript"> //函数名称不允许更改 function ckmarqueeadv(){return '广告内容'}; var flashvars={f:'${content.mediaPath!}',c:0,b:1,my_url:'${content.url!}',my_pic:'${content.typeImg!}'}; var params={bgcolor:'#FFF',allowFullScreen:true,allowScriptAccess:'always'}; CKobject.embedSWF('${resSys}/ckplayer/ckplayer.swf','a1','ckplayer_a1','980','500',flashvars,params); var box = new LightBox(); function closelights(){//关灯 box.Show(); } function openlights(){//开灯 box.Close(); } </script> [#else] <embed height="500" width="98%" type="video/x-ms-wmv" src="${content.mediaPath}" console="cons" controls="ImageWindow" autostart="true"></embed> [/#if] </p> [/#if] <div id="video" style="position:relative;z-index: 100;width:600px;height:400px;float: left;"><div id="a1"></div></div> <div class="content">${txt!}</div> <div class="pagebar">[#include "../style_page/content.html"/]</div> </div> <div class="clear"></div> <div class="w700 mt10"> <div class="rim06"> |
||
---|---|---|---|
级别: 解元
![]() |
9# 发表于:2016-03-14 11:31:55 IP:60.99.*.*
<div id="a1" style="color: rgb(255, 221, 0);">
<object id="ckplayer_a1" height="265" width="346" align="middle" name="ckplayer_a1" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" pluginspage="http://www.macromedia.com/go/getflashplayer"> <param value="always" name="allowScriptAccess"> <param value="true" name="allowFullScreen"> <param value="high" name="quality"> <param value="#FFF" name="bgcolor"> <param value="/r/cms/ckplayer/ckplayer.swf" name="movie"> <param value="f=http://xiaowei:8080/r/cms/www/default/js/1.mp4&c=0&b=1" name="flashvars"> <embed id="ckplayer_a1" height="265" width="346" align="middle" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="ckplayer_a1" flashvars="f=http://xiaowei:8080/r/cms/www/default/js/1.mp4&c=0&b=1" src="/r/cms/ckplayer/ckplayer.swf" bgcolor="#FFF" quality="high" allowfullscreen="true" allowscriptaccess="always"> </object> |
||
---|---|---|---|