搜索:
首页-> 视频教程->Discuz! X整合ckplayerX教程

Discuz! X整合ckplayerX教程

请输入手机号:
请输入观看码:
教程说明:

图标:

代码一:

<div class="a1" style="width:60%;height:400px"></div><script type="text/javascript">newVideo('{1}');</script>

代码二:

<script type="text/javascript" src="{$_G['setting']['jspath']}ckplayer/ckplayer.js?{VERHASH}"></script>
<script type="text/javascript">
	function newVideo(video){
		var player=new ckplayer();
		var playerClass='ckplayer_'+player.randomString(16);
		var ele=player.getByElement('.a1');
		ele.className=playerClass;
		var videoObject = {
				container: '.'+playerClass,
				variable: 'player',
				video: video
			};
		player.embed(videoObject);
	}
</script>


Powered by ckplayer.com
Copyright©ckplayer,2011-2017( 苏ICP备11026158号 )