主题 : ckplayer不能在谷歌浏览器中兼容,在苹果自带的浏览器中可以 |
级别: 举人
|
17# 发表于:2016-01-19 11:34:42 IP:14.34.*.*
<!DOCTYPE HTML> <html> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <head> <title>${title} - ${site.name} - Powered by JEECMS</title> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <meta content="${content.tagStr!}" http-equiv="keywords" /> <meta content="${content.description!}" http-equiv="description" /> <script src="${resSys}/html5.js" type="text/javascript"></script> <link href="/${res}/css/index.css" rel="stylesheet" type="text/css"/> <link href="/${res}/css/html5.css" rel="stylesheet" type="text/css"/> <script src="${resSys}/jquery.js" type="text/javascript"></script> <script src="${resSys}/front.js" type="text/javascript"></script> <script src="/${res}/js/common.js" type="text/javascript"></script> <script type="text/javascript"> $(function() { Cms.attachment("${base}","${content.id}","${content.attachments?size}","attach"); Cms.viewCount("${base}","${content.id}"); Cms.siteFlow("${base}", location.href, document.referrer); }); </script> <style type="text/css"> #a1 { height: 480px; width: 640px; margin:auto; } </style> </head> <body> <div class="container"> [#include "../include/页头顶栏.html"/] <div class="banner_AD"> <script src="${base}/adspace.jspx?id=1" type="text/javascript"></script> </div> <div class="me"> <div class="topp"> [#include "../include/navi.html"/] </div> </div> <div class="website mt10"> 当前位置:<a href="${base}/">首页</a> > [#list channel.nodeList as n]<a target="_blank" href="${n.url}">${n.name}</a>[#if n_has_next] > [/#if][/#list] > 正文 </div> <div class="clear"></div> <div class="newsTex"> <h1>[#if content.bold]<b>${content.title}</b>[#else]${content.title}[/#if]</h1> <div class="msgbar">发布时间: ${content.releaseDate} 作者:${content.author!'本站编辑'} 来源: ${content.origin!'本站原创'} 浏览次数:<span id="views"></span> [#if user??] <script type="text/javascript"> $(function() { Cms.collectexist("${base}","${content.id}","cancelSpan","comfirmSpan"); }); </script> [/#if] </div> </br></br></br> </div> <div class="tvCon"> <div id="a1"> [#if content.mediaPath?? && content.mediaType??] [#if content.mediaType=='FLV'] <div id="video" style="position:relative;z-index: 100;width:960px;height:500px;float: left;"></div> <script type="text/javascript" src="/thirdparty/ckplayer/js/offlights.js"></script> <script type="text/javascript" src="/thirdparty/ckplayer/ckplayer.js" charset="utf-8"></script> <script type="text/javascript"> var flashvars={ f:'${content.mediaPath}', c:0, p:1, loaded:'loadedHandler', my_url:encodeURIComponent(window.location.href) }; var video=['${content.mediaPath}->video/${content.mediaType}']; CKobject.embed('/thirdparty/ckplayer/ckplayer.swf','a1','ckplayer_a1','640','480',false,flashvars,video); var box = new LightBox(); function closelights(){//关灯 box.Show(); } function openlights(){//开灯 box.Close(); } </script> [#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> <script type="text/javascript" src="/thirdparty/ckplayer/js/offlights.js"></script> <script type="text/javascript" src="/thirdparty/ckplayer/ckplayer.js" charset="utf-8"></script> <script type="text/javascript"> var flashvars={ f:'${content.mediaPath}', c:0, p:1, loaded:'loadedHandler', my_url:encodeURIComponent(window.location.href) }; var video=['${content.mediaPath}->video/mp4']; CKobject.embed('/thirdparty/ckplayer/ckplayer.swf','a1','ckplayer_a1','640','480',false,flashvars,video); 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] [/#if] </div> |
||
---|---|---|---|