ENG

2024-02-23 11:29:03

测试3

分享
3.png

qwertyuiop

注册

  • 看不清?点击换图

$(function() { $("#showCode").click(function(){ $(".appletCode_alert").show(); return false; }); $("body,html").click(function(){ $(".appletCode_alert").hide(); }); //视频播放 //var host = location.protocol + '//' + location.host; var videoObject = { container: '#videobox1', //容器的ID或className variable: 'player', //播放函数名称 autoplay: true, //是否自动播放 debug: true, //是否开启调试模式 drag: 'start', //拖动的属性 seek: 0, //默认跳转的时间 playbackrate: -1, mobileCkControls: false }; // palybtn function ckplayerX($showbtn, $hidebtn) { var player; $(document).on('click', $showbtn, function() { $(".l-recruitmentfloat").fadeIn(300); _videofile = $(this).data('vlink'); videoObject.video = _videofile; player = new ckplayer(videoObject); }) $(document).on('click', $hidebtn, function() { stop(); }); $(document).on('click', function(e) { if($(e.target).hasClass('l-recruitmentfloat')) { stop(); } }); function stop() { player.videoPause(); $('.l-recruitmentfloat').fadeOut(300); $(".l-recruitmentfloat .l-videobox").html(""); } } ckplayerX('.video-play-button', '.l-recclosebtn'); });