// -- 判断 //var fls = flashChecker(); //if (!fls.f) { // // 没有flash支持 // $("#yytf").hide(); //} // //var wdata = {}; $.ajax({ type: "get", async: true, url: "/api/get-video-info?id=" + g_main_id, dataType: 'json', success: function (data) { wdata = data; if (data.code == -1) { // $("#tjqplayer").html(''); } function pausedHandler(b) { if (b) { $('#yytf').show(); } else { $('#yytf').hide(); } } function ckplayer_status(str) { if (str == 'ended') { //*尾部广告失效 // if($('#yytf').attr('class') == 'yytf_2') { // $('#yytf').attr('class', 'yytf_2_hidden'); // } } else if (str == 'play') { if ($('#yytf').attr('class') == 'yytf_2_hidden') { $('#yytf').attr('class', 'yytf_2'); } } } function setTimeOut() { var timeInt = parseInt($('#djs').html()); if (timeInt > 0) { timeInt--; $('#djs').html(timeInt); setTimeout(setTimeOut, 1000); } else { $('#yytf').hide(); $('#daojs').hide(); $('#adclose').css('right', '20px'); TJobject._K_('yytf').className = 'yytf_2'; if (isloadHandler && !iserrorHandler) { TJobject.getObjectById('player_tjq').videoPlay(); } else { flashvars['p'] = 1; } } }