// JavaScript Document
var lang1="请输入课程关键词";
var lang2="作业";
function sendmsg(msgid,msgvalue){
document.getElementById(msgid).innerHTML=msgvalue;
setTimeout('sendmsg1("'+msgid+'")',8000);
}
function sendmsg1(msgid){
document.getElementById(msgid).innerHTML="";
}
function savarenzheng(){
if(document.getElementById("zz888_name").value==""){
alert("请填写讲师名称!");
document.getElementById("zz888_name").focus();
return false;
}
if(document.getElementById("zz888_tel").value==""){
alert("请填写联系电话!");
document.getElementById("zz888_tel").focus();
return false;
}
if(document.getElementById("zz888_about").value==""){
alert("请填写讲师简介!");
document.getElementById("zz888_about").focus();
return false;
}
ZZ888_VIDEO.post("https://51fly.win/plugin.php?id=zz888_video:ajax"+"&ac=renzheng&formhash=9ff1a006",ZZ888_VIDEO("#zz888_renzheng").serialize(),function (data, textStatus){
var tmparr=data.split("zz888_split");
if(tmparr[1]=="ok"){
document.getElementById("ul1").style.display="none";
document.getElementById("ul2").style.display="";
}else if(tmparr[1]=="vipok"){
alert("您是讲师VIP,已为您自动审核通过!点击确定,自动进入讲师后台!");
location.href=tmparr[2];
}else{
alert(data);
}
}, "html");
}
function templatestyle(stylename){
ZZ888_VIDEO.get("https://51fly.win/plugin.php?id=zz888_video:ajax&stylename="+stylename+"&formhash=9ff1a006", {ac:"pcstyle"},function (data, textStatus){
if(data=="ok"){
location.reload();
}
}, "html");
}
var layerclose = {};
function showlayerwin(zz888type,type,title,content,width,height,wintype){
if(type==1){
content='
'+content+'
';
}
if(wintype==0){
var maxmin=false;
var shade=0.3;
}else{
var maxmin=true;
var shade=false;
}
layerclose[zz888type]=layer.open({
type: type,
title: ""+title+"
",
shadeClose: false,
scrollbar: false,
shade: shade,
maxmin: maxmin,
area: [width+"px",height+"px"],
content: content,
cancel: function(index, layero){
if(zz888type=='codepay'){
clearInterval(tmptime);
}
}
});
}
function showsalekm(){
showlayerwin('showsalekm',2,"卡密兑换",'plugin.php?id=zz888_video:showsalekm',680,380,0);
}
ZZ888_VIDEO.ajaxSetup({cache:false});
ZZ888_VIDEO(document).ready(function() {
//fa9373ce18be8bf123e822f1ce5c0bf8
ZZ888_VIDEO(".renzheng").click(function(){
if(confirm('抱歉,请先登录!也可以点确定直接跳转到登录页面!')){
location.href="member.php?mod=logging"+"&action=login";
return;
}else{
return;
}
ZZ888_VIDEO.get("https://51fly.win/plugin.php?id=zz888_video:showrenzheng", {ac:"add"},function (data, textStatus){
var tmparr=data.split("zz888_split");
showlayerwin('renzheng',1,tmparr[0],tmparr[1],1100,550,0);
}, "html");
});
//28757b35e4225612ee524f262342c13a
ZZ888_VIDEO("#mysale").click(function(){
showlayerwin('mysale',1,'我的交易','',1200,610,1);
ZZ888_VIDEO("#layer_mysale").html('
');
ZZ888_VIDEO.get("https://51fly.win/plugin.php?id=zz888_video:mysale", {ac:"add"},function (data, textStatus){
ZZ888_VIDEO.get("https://51fly.win/plugin.php?id=zz888_video:ajax"+"&formhash=9ff1a006", {ac:"salelist_get",ac1:"pcmysale"},function (data1, textStatus){
var tmparr1=data1.split("zz888_split");
var bodytmp=data;
bodytmp=bodytmp.replace("zz888mysalesum",tmparr1[0]);
bodytmp=bodytmp.replace("zz888mysalelist",tmparr1[1]);
bodytmp=bodytmp.replace("zz888mysalepage",tmparr1[2]);
bodytmp=bodytmp.replace("zz888myjfcount",tmparr1[3]);
ZZ888_VIDEO("#layer_mysale").html(bodytmp);
laydate.render({trigger: "click",
elem: '#zz888_time1'
});
laydate.render({trigger: "click",
elem: '#zz888_time2'
});
}, "html");
}, "html");
});
//2299dd3c2583e932645b14b3b9a8e4d0
ZZ888_VIDEO("#mysalekm").click(function(){
showlayerwin('mysalekm',1,'兑换记录','',1200,610,1);
ZZ888_VIDEO("#layer_mysalekm").html('
');
ZZ888_VIDEO.get("https://51fly.win/plugin.php?id=zz888_video:mysalekm", {ac:"add"},function (data, textStatus){
ZZ888_VIDEO.get("https://51fly.win/plugin.php?id=zz888_video:ajax"+"&formhash=9ff1a006", {ac:"salekmlist_get",ac1:"pcmysalekm"},function (data1, textStatus){
var tmparr1=data1.split("zz888_split");
var bodytmp=data;
bodytmp=bodytmp.replace("zz888mysalesum",tmparr1[0]);
bodytmp=bodytmp.replace("zz888mysalelist",tmparr1[1]);
bodytmp=bodytmp.replace("zz888mysalepage",tmparr1[2]);
ZZ888_VIDEO("#layer_mysalekm").html(bodytmp);
laydate.render({trigger: "click",
elem: '#zz888_time1'
});
laydate.render({trigger: "click",
elem: '#zz888_time2'
});
}, "html");
}, "html");
});
//d8f873ab2a2ff28a7ed81ce2048d1aeb
ZZ888_VIDEO("#mysubscribe").click(function(){
showlayerwin('mysubscribe',1,'我的关注','',1200,610,1);
ZZ888_VIDEO("#layer_mysubscribe").html('
');
ZZ888_VIDEO.get("https://51fly.win/plugin.php?id=zz888_video:mysubscribe", {ac:"zz888"},function (data, textStatus){
ZZ888_VIDEO.get("https://51fly.win/plugin.php?id=zz888_video:ajax"+"&formhash=9ff1a006", {ac:"subscribe_get",ac1:"pcmysubscribe"},function (data1, textStatus){
var tmparr1=data1.split("zz888_split");
var bodytmp=data;
bodytmp=bodytmp.replace("zz888mysalesum",tmparr1[0]);
bodytmp=bodytmp.replace("zz888mysalelist",tmparr1[1]);
bodytmp=bodytmp.replace("zz888mysalepage",tmparr1[2]);
ZZ888_VIDEO("#layer_mysubscribe").html(bodytmp);
}, "html");
}, "html");
});
//defa0a2ab34bcef11b1b1c509dd10f21
ZZ888_VIDEO("#mygoods").click(function(){
showlayerwin('mygoods',1,'我的课程','',1200,610,1);
ZZ888_VIDEO("#layer_mygoods").html('
');
ZZ888_VIDEO.get("https://51fly.win/plugin.php?id=zz888_video:mygoods", {ac:"zz888"},function (data, textStatus){
ZZ888_VIDEO.get("https://51fly.win/plugin.php?id=zz888_video:ajax"+"&formhash=9ff1a006", {ac:"goods_get",ac1:"pcmygoods"},function (data1, textStatus){
var tmparr1=data1.split("zz888_split");
var bodytmp=data;
bodytmp=bodytmp.replace("zz888mysalesum",tmparr1[0]);
bodytmp=bodytmp.replace("zz888mysalelist",tmparr1[1]);
bodytmp=bodytmp.replace("zz888mysalepage",tmparr1[2]);
ZZ888_VIDEO("#layer_mygoods").html(bodytmp);
}, "html");
}, "html");
});
//a79f0931e4d93c9d1959ef1aa7e29ca5
ZZ888_VIDEO("#mycollect").click(function(){
showlayerwin('mycollect',1,'我的收藏','',1200,610,1);
ZZ888_VIDEO("#layer_mycollect").html('
');
ZZ888_VIDEO.get("https://51fly.win/plugin.php?id=zz888_video:mycollect", {ac:"zz888"},function (data, textStatus){
ZZ888_VIDEO.get("https://51fly.win/plugin.php?id=zz888_video:ajax"+"&formhash=9ff1a006", {ac:"collectgoods_get",ac1:"pcmygoods"},function (data1, textStatus){
var tmparr1=data1.split("zz888_split");
var bodytmp=data;
bodytmp=bodytmp.replace("zz888mysalesum",tmparr1[0]);
bodytmp=bodytmp.replace("zz888mysalelist",tmparr1[1]);
bodytmp=bodytmp.replace("zz888mysalepage",tmparr1[2]);
ZZ888_VIDEO("#layer_mycollect").html(bodytmp);
}, "html");
}, "html");
});
//9479fa410582df28079c413f33a84934
ZZ888_VIDEO("#myplay").click(function(){
showlayerwin('myplay',1,'学习记录','',1200,610,1);
ZZ888_VIDEO("#layer_myplay").html('
');
ZZ888_VIDEO.get("https://51fly.win/plugin.php?id=zz888_video:myplay", {ac:"zz888"},function (data, textStatus){
ZZ888_VIDEO.get("https://51fly.win/plugin.php?id=zz888_video:ajax"+"&formhash=9ff1a006", {ac:"playlist_get",ac1:"pcmyplay"},function (data1, textStatus){
var tmparr1=data1.split("zz888_split");
var bodytmp=data;
bodytmp=bodytmp.replace("zz888mysalesum",tmparr1[0]);
bodytmp=bodytmp.replace("zz888mysalelist",tmparr1[1]);
bodytmp=bodytmp.replace("zz888mysalepage",tmparr1[2]);
ZZ888_VIDEO("#layer_myplay").html(bodytmp);
}, "html");
}, "html");
});
//1bffa5cf026a7636d453a65400018326
ZZ888_VIDEO("#myplaypj").click(function(){
showlayerwin('myplaypj',1,'课程评价','',1200,610,1);
ZZ888_VIDEO("#layer_myplaypj").html('
');
ZZ888_VIDEO.get("https://51fly.win/plugin.php?id=zz888_video:myplaypj", {ac:"zz888"},function (data, textStatus){
ZZ888_VIDEO.get("https://51fly.win/plugin.php?id=zz888_video:ajax"+"&formhash=9ff1a006", {ac:"playpjlist_get",ac1:"pcmyplaypj"},function (data1, textStatus){
var tmparr1=data1.split("zz888_split");
var bodytmp=data;
bodytmp=bodytmp.replace("zz888mysalesum",tmparr1[0]);
bodytmp=bodytmp.replace("zz888mysalelist",tmparr1[1]);
bodytmp=bodytmp.replace("zz888mysalepage",tmparr1[2]);
bodytmp=bodytmp.replace("zz888myjfcount",tmparr1[3]);
ZZ888_VIDEO("#layer_myplaypj").html(bodytmp);
}, "html");
}, "html");
});
});
var zz888123="1ebfbf424f96f8c53338d20dca371fa6";
function delcollect(cid){
ZZ888_VIDEO.get("https://51fly.win/plugin.php?id=zz888_video:ajax&cid="+cid+"&formhash=9ff1a006",{ac:"delcollect"},function (data, textStatus){
alert(data);
getmycollectlist(document.getElementById("mysaleurl").value);
}, "html");
}
var it611128123="db85afcaa752468c93248ee574dd2d55";
var sqlurl="";
function getmysalelist(url){
document.getElementById("img_loading").style.display="";
document.getElementById("mysalelist").style.display="none";
ZZ888_VIDEO.get(url+sqlurl+"&formhash=9ff1a006", {ac:"salelist_get",ac1:"pcmysale"},function (data, textStatus){
var tmparr=data.split("zz888_split");
ZZ888_VIDEO("#mysalesum").html(tmparr[0]);
ZZ888_VIDEO("#mysalelist").html(tmparr[1]);
ZZ888_VIDEO("#mysalepage").html(tmparr[2]);
ZZ888_VIDEO("#myjfcount").html(tmparr[3]);
document.getElementById("mysaleurl").value=url;
document.getElementById("img_loading").style.display="none";
document.getElementById("mysalelist").style.display="";
}, "html");
}
function searchmysale(){
if(parseInt(document.getElementById("zz888_time1").value.replace(/-/g,""))>parseInt(document.getElementById("zz888_time2").value.replace(/-/g,""))){
alert("开始日期不能大于截止日期!");
return false;
}
var mysalepname=document.getElementById("mysalepname").value;
var zz888_time1=document.getElementById("zz888_time1").value;
var zz888_time2=document.getElementById("zz888_time2").value;
sqlurl="&pname="+mysalepname+"&zz888_time1="+zz888_time1+"&zz888_time2="+zz888_time2;
url="https://51fly.win/plugin.php?id=zz888_video:ajax";
getmysalelist(url);
document.getElementById("mysaleurl").value=url;
}
var mysalekmurl="https://51fly.win/plugin.php?id=zz888_video:ajax";
function getmysalekmlist(url){
document.getElementById("img_loading").style.display="";
document.getElementById("mysalelist").style.display="none";
ZZ888_VIDEO.get(url+sqlurl+"&formhash=9ff1a006", {ac:"salekmlist_get",ac1:"pcmysalekm"},function (data, textStatus){
var tmparr=data.split("zz888_split");
ZZ888_VIDEO("#mysalesum").html(tmparr[0]);
ZZ888_VIDEO("#mysalelist").html(tmparr[1]);
ZZ888_VIDEO("#mysalepage").html(tmparr[2]);
mysalekmurl=url;
document.getElementById("mysaleurl").value=url;
document.getElementById("img_loading").style.display="none";
document.getElementById("mysalelist").style.display="";
}, "html");
}
function searchmysalekm(){
if(parseInt(document.getElementById("zz888_time1").value.replace(/-/g,""))>parseInt(document.getElementById("zz888_time2").value.replace(/-/g,""))){
alert("开始日期不能大于截止日期!");
return false;
}
var findtypeid=document.getElementById("findtypeid").value;
var zz888_time1=document.getElementById("zz888_time1").value;
var zz888_time2=document.getElementById("zz888_time2").value;
sqlurl="&typeid="+findtypeid+"&zz888_time1="+zz888_time1+"&zz888_time2="+zz888_time2;
url="https://51fly.win/plugin.php?id=zz888_video:ajax";
getmysalekmlist(url);
document.getElementById("mysaleurl").value=url;
}
function getmysubscribelist(url){
document.getElementById("img_loading").style.display="";
document.getElementById("mysalelist").style.display="none";
ZZ888_VIDEO.get(url+sqlurl+"&formhash=9ff1a006", {ac:"subscribe_get",ac1:"pcmysubscribe"},function (data, textStatus){
var tmparr=data.split("zz888_split");
ZZ888_VIDEO("#mysalesum").html(tmparr[0]);
ZZ888_VIDEO("#mysalelist").html(tmparr[1]);
ZZ888_VIDEO("#mysalepage").html(tmparr[2]);
document.getElementById("mysaleurl").value=url;
document.getElementById("img_loading").style.display="none";
document.getElementById("mysalelist").style.display="";
}, "html");
}
function searchmysubscribe(){
url="https://51fly.win/plugin.php?id=zz888_video:ajax";
getmysubscribelist(url);
document.getElementById("mysaleurl").value=url;
}
var sqlurl="";
function getmygoodslist(url){
document.getElementById("img_loading").style.display="";
document.getElementById("mysalelist").style.display="none";
ZZ888_VIDEO.get(url+sqlurl+"&formhash=9ff1a006", {ac:"goods_get",ac1:"pcmygoods"},function (data, textStatus){
var tmparr=data.split("zz888_split");
ZZ888_VIDEO("#mysalesum").html(tmparr[0]);
ZZ888_VIDEO("#mysalelist").html(tmparr[1]);
ZZ888_VIDEO("#mysalepage").html(tmparr[2]);
document.getElementById("mysaleurl").value=url;
document.getElementById("img_loading").style.display="none";
document.getElementById("mysalelist").style.display="";
}, "html");
}
function searchmygoods(){
var pname=document.getElementById("pname").value;
sqlurl="&pname="+pname;
url="https://51fly.win/plugin.php?id=zz888_video:ajax";
getmygoodslist(url);
document.getElementById("mysaleurl").value=url;
}
var sqlurl="";
function getmycollectlist(url){
document.getElementById("img_loading").style.display="";
document.getElementById("mysalelist").style.display="none";
ZZ888_VIDEO.get(url+sqlurl+"&formhash=9ff1a006", {ac:"collectgoods_get",ac1:"pcmygoods"},function (data, textStatus){
var tmparr=data.split("zz888_split");
ZZ888_VIDEO("#mysalesum").html(tmparr[0]);
ZZ888_VIDEO("#mysalelist").html(tmparr[1]);
ZZ888_VIDEO("#mysalepage").html(tmparr[2]);
document.getElementById("mysaleurl").value=url;
document.getElementById("img_loading").style.display="none";
document.getElementById("mysalelist").style.display="";
}, "html");
}
function searchmycollect(){
var pname=document.getElementById("pname").value;
sqlurl="&pname="+pname;
url="https://51fly.win/plugin.php?id=zz888_video:ajax";
getmycollectlist(url);
document.getElementById("mysaleurl").value=url;
}
var sqlurl="";
function getmyplaylist(url){
document.getElementById("img_loading").style.display="";
document.getElementById("mysalelist").style.display="none";
ZZ888_VIDEO.get(url+sqlurl+"&formhash=9ff1a006", {ac:"playlist_get",ac1:"pcmyplay"},function (data, textStatus){
var tmparr=data.split("zz888_split");
ZZ888_VIDEO("#mysalesum").html(tmparr[0]);
ZZ888_VIDEO("#mysalelist").html(tmparr[1]);
ZZ888_VIDEO("#mysalepage").html(tmparr[2]);
document.getElementById("mysaleurl").value=url;
document.getElementById("img_loading").style.display="none";
document.getElementById("mysalelist").style.display="";
}, "html");
}
function searchmyplay(){
var pid=document.getElementById("pid").value;
var vid=document.getElementById("vid").value;
sqlurl="&pid="+pid+"&vid="+vid;
url="https://51fly.win/plugin.php?id=zz888_video:ajax";
getmyplaylist(url);
document.getElementById("mysaleurl").value=url;
}
var it6118123="67e6471c7a91bf1621d970b7cdbc692c";
var sqlurl="";
function getmyplaypjlist(url){
document.getElementById("img_loading").style.display="";
document.getElementById("mysalelist").style.display="none";
ZZ888_VIDEO.get(url+sqlurl+"&formhash=9ff1a006", {ac:"playpjlist_get",ac1:"pcmyplaypj"},function (data, textStatus){
var tmparr=data.split("zz888_split");
ZZ888_VIDEO("#mysalesum").html(tmparr[0]);
ZZ888_VIDEO("#mysalelist").html(tmparr[1]);
ZZ888_VIDEO("#mysalepage").html(tmparr[2]);
ZZ888_VIDEO("#myjfcount").html(tmparr[3]);
document.getElementById("mysaleurl").value=url;
document.getElementById("img_loading").style.display="none";
document.getElementById("mysalelist").style.display="";
}, "html");
}
function searchmyplaypj(){
var pname=document.getElementById("pname").value;
sqlurl="&pname="+pname;
url="https://51fly.win/plugin.php?id=zz888_video:ajax";
getmyplaypjlist(url);
document.getElementById("mysaleurl").value=url;
}
var pjtype,pjtype1;
function setplaypj(playpjid){
pjtype='playpj';
pjtype1='playpj';
getplaypj(playpjid);
}
function goodsplaypj(playpjid,pjtypetmp){
pjtype='playpj';
pjtype1=pjtypetmp;
getplaypj(playpjid);
}
function hfplaypj(playpjid){
ZZ888_VIDEO.get("https://51fly.win/plugin.php?id=zz888_video:hfplaypj"+"&playpjid="+playpjid, {ac:"zz888"},function (data, textStatus){
var tmparr=data.split("zz888_split");
showlayerwin('gethfsalepj',1,tmparr[0],tmparr[1],523,398,0);
ZZ888_VIDEO('.ns-sub-a').click(function(){
var zz888_content=document.getElementById("hfvalue").value;
if(zz888_content==''){
alert("抱歉,请输入评价回复内容!");
return;
}
if(confirm("确定要提交评价回复内容?")){
document.getElementById("hfvalue").value=zz888_content.replace(/\n/g,"[br]");
ZZ888_VIDEO.post("https://51fly.win/plugin.php?id=zz888_video:ajax"+"&ac=hfplaypj&playpjid="+playpjid+"&formhash=9ff1a006",ZZ888_VIDEO("#zz888_hfplaypj").serialize(),function (data, textStatus){
var tmparr=data.split("zz888_split");
if(tmparr[0]=="ok"){
alert(tmparr[1]);
layer.close(layerclose['gethfsalepj']);
getpjlist(pjurl);
}else{
alert(data);
}
}, "html");
}
})
ZZ888_VIDEO('.ns-sub-b').click(function(){
layer.close(layerclose['gethfsalepj']);
})
}, "html");
}
var K;
KindEditor.ready(function(ktmp) {
K=ktmp;
});
var ispjpicdel=0;
var ish5oss=0;
function getplaypj(playpjid){
ZZ888_VIDEO.get("https://51fly.win/plugin.php?id=zz888_video:playpj"+"&playpjid="+playpjid, {ac:"zz888"},function (data, textStatus){
var tmparr=data.split("zz888_split");
showlayerwin('getsalepj',1,tmparr[0],tmparr[1],523,398,0);
var editor = K.editor({
uploadJson : 'source/plugin/zz888_video/kindeditor/php/upload_json.php?uid='+tmparr[4]+'&imgwidth=680',
fileManagerJson : 'source/plugin/zz888_video/kindeditor/php/file_manager_json.php?uid='+tmparr[4],
allowFileManager : true
});
K('#pjpic_addbtn').click(function() {
if(document.getElementById("pjpiccount").value>=5){
return;
}
if(ish5oss==1){
getimagejs(pjtype,playpjid);
}else{
editor.loadPlugin('image', function() {
editor.plugin.imageDialog({
showRemote : false,
clickFn : function(url, title, width, height, border, align) {
ZZ888_VIDEO.get("https://51fly.win/plugin.php?id=zz888_video:ajax"+"&ac="+pjtype+"&playpjid="+playpjid+"&picurl="+url+"&formhash=9ff1a006",{ac1:"addpjpic"},function (data, textStatus){
getpjpic(playpjid);
}, "html");
editor.hideDialog();
}
});
var dlgh=K(".ke-dialog-default").height;
var dlgw=K(".ke-dialog-default").width;
var ntop=(window.innerHeight-dlgh)/2;
var nleft=(window.innerWidth-dlgw)/2;
K(".ke-dialog-default").css({"top":ntop,"left":nleft});
});
}
});
getpjpic(playpjid);
starh('.sp_a','.ias');
starh('.sp_b','.ibs');
starh('.sp_c','.ics');
starh('.sp_d','.ids');
if(tmparr[3]!='')window.eval(tmparr[3]);
ZZ888_VIDEO('.ns-sub-a').click(function(){
if (ZZ888_VIDEO('.doo').find('span').hasClass('mag')){
ZZ888_VIDEO('.doo .mag').show();
}else{
var zz888_content=document.getElementById("pjvalue").value;
if(getstrlen(zz888_content)<5){
alert("评价内容字符数至少5个!");
return false;
}
if(getstrlen(zz888_content)>400){
alert("评价内容字符数最多400个!");
return false;
}
if(confirm(tmparr[2])){
var score1 = ZZ888_VIDEO('.sp_a').find('a').filter('.ns-sider-star').length;
var score2 = ZZ888_VIDEO('.sp_b').find('a').filter('.ns-sider-star').length;
var score3 = ZZ888_VIDEO('.sp_c').find('a').filter('.ns-sider-star').length;
var score4 = ZZ888_VIDEO('.sp_d').find('a').filter('.ns-sider-star').length;
var score=score1+'@'+score2+'@'+score3+'@'+score4;
document.getElementById("pjvalue").value=zz888_content.replace(/\n/g,"[br]");
ZZ888_VIDEO.post("https://51fly.win/plugin.php?id=zz888_video:ajax"+"&ac="+pjtype+"&playpjid="+playpjid+"&score="+score+"&formhash=9ff1a006",ZZ888_VIDEO("#zz888_playpj").serialize(),function (data, textStatus){
var tmparr=data.split("zz888_split");
if(tmparr[0]=="ok"){
alert(tmparr[1]);
layer.close(layerclose['getsalepj']);
if(pjtype=='playpj'){
if(pjtype1=='playpj'){
getmyplaypjlist(document.getElementById("mysaleurl").value);
}else{
location.reload();
}
}else{
if(ispj==1){
getsalelist(salelisturl);
getpjlist(pjlisturl);
}else{
location.reload();
}
}
}else if(tmparr[0]=="editok"){
alert(tmparr[1]);
layer.close(layerclose['getsalepj']);
getpjlist(pjurl);
}else{
alert(data);
}
}, "html");
}
}
})
ZZ888_VIDEO('.ns-sub-b').click(function(){
layer.close(layerclose['getsalepj']);
})
}, "html");
}
function starh(spans,ia){
var _span=ZZ888_VIDEO(spans);
var _star=_span.find('a');
var _ias=ZZ888_VIDEO(ia);
var _i=_ias.find('i');
_star.hover(function(){
var index=_span.index(this);
var indexs=_star.index(this);
if (_i.hasClass('ns-star-tag'))
{return;}
else {
_ias.eq(index).addClass('ns-star-tags');
_i.removeClass('ns-star-tags');
_i.eq(indexs).addClass('ns-star-tags');
}
ZZ888_VIDEO(this).addClass('ns-sider-starc');
ZZ888_VIDEO(this).prevAll().addClass('ns-sider-starc');
ZZ888_VIDEO(this).nextAll().removeClass('ns-sider-starc');
},function(){
_star.removeClass('ns-sider-starc');
_ias.removeClass('ns-star-tags');
_i.removeClass('ns-star-tags');
})
_star.click(function(){
var index=_span.index(this);
var indexs=_star.index(this);
_i.removeClass('ns-star-tag');
_i.eq(indexs).addClass('ns-star-tag');
_ias.eq(index).addClass('ns-star-tag');
ZZ888_VIDEO(this).addClass('ns-sider-star');
ZZ888_VIDEO(this).prevAll().addClass('ns-sider-star');
ZZ888_VIDEO(this).nextAll().removeClass('ns-sider-star');
ZZ888_VIDEO(this).parents('li').removeClass('doo');
var sb=ZZ888_VIDEO(this).parents('li').find('span');
var sa=sb.eq(2).hide();
})
}
function getbigpjpic(pjid,bigpjpic){
ZZ888_VIDEO("#bigpjpic"+pjid).html("
");
ZZ888_VIDEO("#bigpjpic"+pjid).show();
}
function hidebigpjpic(obj){
obj.style.display='none';
}
function delpjpic(pjid,pjpicid){
ZZ888_VIDEO.get("https://51fly.win/plugin.php?id=zz888_video:ajax"+"&ac="+pjtype+"&playpjid="+pjid+"&pjpicid="+pjpicid+"&formhash=9ff1a006",{ac1:"delpjpic"},function (data, textStatus){
getpjpic(pjid);
}, "html");
}
var it61128123="db85afcaa752468c93248ee574dd2d55";
function getpjpic(pjid){
ZZ888_VIDEO.get("https://51fly.win/plugin.php?id=zz888_video:ajax"+"&playpjid="+pjid+"&formhash=9ff1a006", {ac:"getpjpic"},function (data, textStatus){
ZZ888_VIDEO("#divpjpic").html(data);
}, "html");
}
function getstrlen(str) {
var realLength = 0, len = str.length, charCode = -1;
for (var i = 0; i < len; i++) {
charCode = str.charCodeAt(i);
if (charCode >= 0 && charCode <= 128) realLength += 1;
else realLength += 2;
}
return realLength;
}
function getstrlenspan(str){
var strlen=getstrlen(str);
if(strlen<5){document.getElementById('strlentips').innerHTML='评价内容字符数至少5个!';return;}
if(strlen>400){document.getElementById('strlentips').innerHTML='评价内容字符数最多400个!';return;}
document.getElementById('strlentips').innerHTML='您输入了'+strlen+'个字符!';
}