// 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("it618_name").value==""){
alert("请填写讲师名称!");
document.getElementById("it618_name").focus();
return false;
}
if(document.getElementById("it618_tel").value==""){
alert("请填写联系电话!");
document.getElementById("it618_tel").focus();
return false;
}
if(document.getElementById("it618_about").value==""){
alert("请填写讲师简介!");
document.getElementById("it618_about").focus();
return false;
}
IT618_VIDEO.post("http://moockxuecheng.com/plugin.php?id=it618_video:ajax"+"&ac=renzheng&formhash=218a4cb6",IT618_VIDEO("#it618_renzheng").serialize(),function (data, textStatus){
var tmparr=data.split("it618_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){
IT618_VIDEO.get("http://moockxuecheng.com/plugin.php?id=it618_video:ajax&stylename="+stylename+"&formhash=218a4cb6", {ac:"pcstyle"},function (data, textStatus){
if(data=="ok"){
location.reload();
}
}, "html");
}
var layerclose = {};
function showlayerwin(it618type,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;
}
if(height>IT618_VIDEO(window).height()*0.8){
height=IT618_VIDEO(window).height()*0.8;
}
layerclose[it618type]=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(it618type=='codepay'){
clearInterval(tmptime);
}
}
});
}
function showsalekm(){
showlayerwin('showsalekm',2,"卡密兑换",'plugin.php?id=it618_video:showsalekm',680,380,0);
}
IT618_VIDEO.ajaxSetup({cache:false});
IT618_VIDEO(document).ready(function() {
//0872d3daee77b79e62d7b1b881a629e5
IT618_VIDEO(".renzheng").click(function(){
if(confirm('抱歉,请先登录!也可以点确定直接跳转到登录页面!')){
location.href="member.php?mod=logging"+"&action=login";
return;
}else{
return;
}
IT618_VIDEO.get("http://moockxuecheng.com/plugin.php?id=it618_video:showrenzheng", {ac:"add"},function (data, textStatus){
var tmparr=data.split("it618_split");
showlayerwin('renzheng',1,tmparr[0],tmparr[1],1100,550,0);
}, "html");
});
//691a38f57c42209d4cfad4819577d8ac
IT618_VIDEO("#mysale").click(function(){
showlayerwin('mysale',1,'我的交易','',1200,610,1);
IT618_VIDEO("#layer_mysale").html('
');
IT618_VIDEO.get("http://moockxuecheng.com/plugin.php?id=it618_video:mysale", {ac:"add"},function (data, textStatus){
IT618_VIDEO.get("http://moockxuecheng.com/plugin.php?id=it618_video:ajax"+"&formhash=218a4cb6", {ac:"salelist_get",ac1:"pcmysale"},function (data1, textStatus){
var tmparr1=data1.split("it618_split");
var bodytmp=data;
bodytmp=bodytmp.replace("it618mysalesum",tmparr1[0]);
bodytmp=bodytmp.replace("it618mysalelist",tmparr1[1]);
bodytmp=bodytmp.replace("it618mysalepage",tmparr1[2]);
bodytmp=bodytmp.replace("it618myjfcount",tmparr1[3]);
IT618_VIDEO("#layer_mysale").html(bodytmp);
laydate.render({trigger: "click",
elem: '#it618_time1'
});
laydate.render({trigger: "click",
elem: '#it618_time2'
});
}, "html");
}, "html");
});
//fc891a429241702771b173c40196e531
IT618_VIDEO("#mysalekm").click(function(){
showlayerwin('mysalekm',1,'兑换记录','',1200,610,1);
IT618_VIDEO("#layer_mysalekm").html('
');
IT618_VIDEO.get("http://moockxuecheng.com/plugin.php?id=it618_video:mysalekm", {ac:"add"},function (data, textStatus){
IT618_VIDEO.get("http://moockxuecheng.com/plugin.php?id=it618_video:ajax"+"&formhash=218a4cb6", {ac:"salekmlist_get",ac1:"pcmysalekm"},function (data1, textStatus){
var tmparr1=data1.split("it618_split");
var bodytmp=data;
bodytmp=bodytmp.replace("it618mysalesum",tmparr1[0]);
bodytmp=bodytmp.replace("it618mysalelist",tmparr1[1]);
bodytmp=bodytmp.replace("it618mysalepage",tmparr1[2]);
IT618_VIDEO("#layer_mysalekm").html(bodytmp);
laydate.render({trigger: "click",
elem: '#it618_time1'
});
laydate.render({trigger: "click",
elem: '#it618_time2'
});
}, "html");
}, "html");
});
//1e931c83273cca00bc99333eb31dfede
IT618_VIDEO("#mysubscribe").click(function(){
showlayerwin('mysubscribe',1,'我的关注','',1200,610,1);
IT618_VIDEO("#layer_mysubscribe").html('
');
IT618_VIDEO.get("http://moockxuecheng.com/plugin.php?id=it618_video:mysubscribe", {ac:"it618"},function (data, textStatus){
IT618_VIDEO.get("http://moockxuecheng.com/plugin.php?id=it618_video:ajax"+"&formhash=218a4cb6", {ac:"subscribe_get",ac1:"pcmysubscribe"},function (data1, textStatus){
var tmparr1=data1.split("it618_split");
var bodytmp=data;
bodytmp=bodytmp.replace("it618mysalesum",tmparr1[0]);
bodytmp=bodytmp.replace("it618mysalelist",tmparr1[1]);
bodytmp=bodytmp.replace("it618mysalepage",tmparr1[2]);
IT618_VIDEO("#layer_mysubscribe").html(bodytmp);
}, "html");
}, "html");
});
//5040e28853866515cb887d7d182ba5c8
IT618_VIDEO("#mygoods").click(function(){
showlayerwin('mygoods',1,'我的课程','',1200,610,1);
IT618_VIDEO("#layer_mygoods").html('
');
IT618_VIDEO.get("http://moockxuecheng.com/plugin.php?id=it618_video:mygoods", {ac:"it618"},function (data, textStatus){
IT618_VIDEO.get("http://moockxuecheng.com/plugin.php?id=it618_video:ajax"+"&formhash=218a4cb6", {ac:"goods_get",ac1:"pcmygoods"},function (data1, textStatus){
var tmparr1=data1.split("it618_split");
var bodytmp=data;
bodytmp=bodytmp.replace("it618mysalesum",tmparr1[0]);
bodytmp=bodytmp.replace("it618mysalelist",tmparr1[1]);
bodytmp=bodytmp.replace("it618mysalepage",tmparr1[2]);
IT618_VIDEO("#layer_mygoods").html(bodytmp);
}, "html");
}, "html");
});
//39992d09c1a0c42bb749cd249d39475c
IT618_VIDEO("#mycollect").click(function(){
showlayerwin('mycollect',1,'我的收藏','',1200,610,1);
IT618_VIDEO("#layer_mycollect").html('
');
IT618_VIDEO.get("http://moockxuecheng.com/plugin.php?id=it618_video:mycollect", {ac:"it618"},function (data, textStatus){
IT618_VIDEO.get("http://moockxuecheng.com/plugin.php?id=it618_video:ajax"+"&formhash=218a4cb6", {ac:"collectgoods_get",ac1:"pcmygoods"},function (data1, textStatus){
var tmparr1=data1.split("it618_split");
var bodytmp=data;
bodytmp=bodytmp.replace("it618mysalesum",tmparr1[0]);
bodytmp=bodytmp.replace("it618mysalelist",tmparr1[1]);
bodytmp=bodytmp.replace("it618mysalepage",tmparr1[2]);
IT618_VIDEO("#layer_mycollect").html(bodytmp);
}, "html");
}, "html");
});
//eb8248ecd71daa4dcbf841127d56b86d
IT618_VIDEO("#myplay").click(function(){
showlayerwin('myplay',1,'学习记录','',1200,610,1);
IT618_VIDEO("#layer_myplay").html('
');
IT618_VIDEO.get("http://moockxuecheng.com/plugin.php?id=it618_video:myplay", {ac:"it618"},function (data, textStatus){
IT618_VIDEO.get("http://moockxuecheng.com/plugin.php?id=it618_video:ajax"+"&formhash=218a4cb6", {ac:"playlist_get",ac1:"pcmyplay"},function (data1, textStatus){
var tmparr1=data1.split("it618_split");
var bodytmp=data;
bodytmp=bodytmp.replace("it618mysalesum",tmparr1[0]);
bodytmp=bodytmp.replace("it618mysalelist",tmparr1[1]);
bodytmp=bodytmp.replace("it618mysalepage",tmparr1[2]);
IT618_VIDEO("#layer_myplay").html(bodytmp);
}, "html");
}, "html");
});
//34459d0c90dba8dfa75e30182f519bfa
IT618_VIDEO("#myplaypj").click(function(){
showlayerwin('myplaypj',1,'课程评价','',1200,610,1);
IT618_VIDEO("#layer_myplaypj").html('
');
IT618_VIDEO.get("http://moockxuecheng.com/plugin.php?id=it618_video:myplaypj", {ac:"it618"},function (data, textStatus){
IT618_VIDEO.get("http://moockxuecheng.com/plugin.php?id=it618_video:ajax"+"&formhash=218a4cb6", {ac:"playpjlist_get",ac1:"pcmyplaypj"},function (data1, textStatus){
var tmparr1=data1.split("it618_split");
var bodytmp=data;
bodytmp=bodytmp.replace("it618mysalesum",tmparr1[0]);
bodytmp=bodytmp.replace("it618mysalelist",tmparr1[1]);
bodytmp=bodytmp.replace("it618mysalepage",tmparr1[2]);
bodytmp=bodytmp.replace("it618myjfcount",tmparr1[3]);
IT618_VIDEO("#layer_myplaypj").html(bodytmp);
}, "html");
}, "html");
});
});
var it618123="d8e9c0a6cd242edebff1b0f3e9256f1e";
function delcollect(cid){
IT618_VIDEO.get("http://moockxuecheng.com/plugin.php?id=it618_video:ajax&cid="+cid+"&formhash=218a4cb6",{ac:"delcollect"},function (data, textStatus){
alert(data);
getmycollectlist(document.getElementById("mysaleurl").value);
}, "html");
}
var it611128123="0fbaecb3704764a84d1207b4440a661f";
var sqlurl="";
function getmysalelist(url){
document.getElementById("img_loading").style.display="";
document.getElementById("mysalelist").style.display="none";
IT618_VIDEO.get(url+sqlurl+"&formhash=218a4cb6", {ac:"salelist_get",ac1:"pcmysale"},function (data, textStatus){
var tmparr=data.split("it618_split");
IT618_VIDEO("#mysalesum").html(tmparr[0]);
IT618_VIDEO("#mysalelist").html(tmparr[1]);
IT618_VIDEO("#mysalepage").html(tmparr[2]);
IT618_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("it618_time1").value.replace(/-/g,""))>parseInt(document.getElementById("it618_time2").value.replace(/-/g,""))){
alert("开始日期不能大于截止日期!");
return false;
}
var mysalepname=document.getElementById("mysalepname").value;
var it618_time1=document.getElementById("it618_time1").value;
var it618_time2=document.getElementById("it618_time2").value;
sqlurl="&pname="+mysalepname+"&it618_time1="+it618_time1+"&it618_time2="+it618_time2;
url="http://moockxuecheng.com/plugin.php?id=it618_video:ajax";
getmysalelist(url);
document.getElementById("mysaleurl").value=url;
}
var mysalekmurl="http://moockxuecheng.com/plugin.php?id=it618_video:ajax";
function getmysalekmlist(url){
document.getElementById("img_loading").style.display="";
document.getElementById("mysalelist").style.display="none";
IT618_VIDEO.get(url+sqlurl+"&formhash=218a4cb6", {ac:"salekmlist_get",ac1:"pcmysalekm"},function (data, textStatus){
var tmparr=data.split("it618_split");
IT618_VIDEO("#mysalesum").html(tmparr[0]);
IT618_VIDEO("#mysalelist").html(tmparr[1]);
IT618_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("it618_time1").value.replace(/-/g,""))>parseInt(document.getElementById("it618_time2").value.replace(/-/g,""))){
alert("开始日期不能大于截止日期!");
return false;
}
var findtypeid=document.getElementById("findtypeid").value;
var it618_time1=document.getElementById("it618_time1").value;
var it618_time2=document.getElementById("it618_time2").value;
sqlurl="&typeid="+findtypeid+"&it618_time1="+it618_time1+"&it618_time2="+it618_time2;
url="http://moockxuecheng.com/plugin.php?id=it618_video:ajax";
getmysalekmlist(url);
document.getElementById("mysaleurl").value=url;
}
function getmysubscribelist(url){
document.getElementById("img_loading").style.display="";
document.getElementById("mysalelist").style.display="none";
IT618_VIDEO.get(url+sqlurl+"&formhash=218a4cb6", {ac:"subscribe_get",ac1:"pcmysubscribe"},function (data, textStatus){
var tmparr=data.split("it618_split");
IT618_VIDEO("#mysalesum").html(tmparr[0]);
IT618_VIDEO("#mysalelist").html(tmparr[1]);
IT618_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="http://moockxuecheng.com/plugin.php?id=it618_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";
IT618_VIDEO.get(url+sqlurl+"&formhash=218a4cb6", {ac:"goods_get",ac1:"pcmygoods"},function (data, textStatus){
var tmparr=data.split("it618_split");
IT618_VIDEO("#mysalesum").html(tmparr[0]);
IT618_VIDEO("#mysalelist").html(tmparr[1]);
IT618_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="http://moockxuecheng.com/plugin.php?id=it618_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";
IT618_VIDEO.get(url+sqlurl+"&formhash=218a4cb6", {ac:"collectgoods_get",ac1:"pcmygoods"},function (data, textStatus){
var tmparr=data.split("it618_split");
IT618_VIDEO("#mysalesum").html(tmparr[0]);
IT618_VIDEO("#mysalelist").html(tmparr[1]);
IT618_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="http://moockxuecheng.com/plugin.php?id=it618_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";
IT618_VIDEO.get(url+sqlurl+"&formhash=218a4cb6", {ac:"playlist_get",ac1:"pcmyplay"},function (data, textStatus){
var tmparr=data.split("it618_split");
IT618_VIDEO("#mysalesum").html(tmparr[0]);
IT618_VIDEO("#mysalelist").html(tmparr[1]);
IT618_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="http://moockxuecheng.com/plugin.php?id=it618_video:ajax";
getmyplaylist(url);
document.getElementById("mysaleurl").value=url;
}
var it6118123="6440be113f6b41f56618e602ed10e637";
var sqlurl="";
function getmyplaypjlist(url){
document.getElementById("img_loading").style.display="";
document.getElementById("mysalelist").style.display="none";
IT618_VIDEO.get(url+sqlurl+"&formhash=218a4cb6", {ac:"playpjlist_get",ac1:"pcmyplaypj"},function (data, textStatus){
var tmparr=data.split("it618_split");
IT618_VIDEO("#mysalesum").html(tmparr[0]);
IT618_VIDEO("#mysalelist").html(tmparr[1]);
IT618_VIDEO("#mysalepage").html(tmparr[2]);
IT618_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="http://moockxuecheng.com/plugin.php?id=it618_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){
IT618_VIDEO.get("http://moockxuecheng.com/plugin.php?id=it618_video:hfplaypj"+"&playpjid="+playpjid, {ac:"it618"},function (data, textStatus){
var tmparr=data.split("it618_split");
showlayerwin('gethfsalepj',1,tmparr[0],tmparr[1],523,398,0);
IT618_VIDEO('.ns-sub-a').click(function(){
var it618_content=document.getElementById("hfvalue").value;
if(it618_content==''){
alert("抱歉,请输入评价回复内容!");
return;
}
if(confirm("确定要提交评价回复内容?")){
document.getElementById("hfvalue").value=it618_content.replace(/\n/g,"[br]");
IT618_VIDEO.post("http://moockxuecheng.com/plugin.php?id=it618_video:ajax"+"&ac=hfplaypj&playpjid="+playpjid+"&formhash=218a4cb6",IT618_VIDEO("#it618_hfplaypj").serialize(),function (data, textStatus){
var tmparr=data.split("it618_split");
if(tmparr[0]=="ok"){
alert(tmparr[1]);
layer.close(layerclose['gethfsalepj']);
getpjlist(pjurl);
}else{
alert(data);
}
}, "html");
}
})
IT618_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){
IT618_VIDEO.get("http://moockxuecheng.com/plugin.php?id=it618_video:playpj"+"&playpjid="+playpjid, {ac:"it618"},function (data, textStatus){
var tmparr=data.split("it618_split");
showlayerwin('getsalepj',1,tmparr[0],tmparr[1],523,398,0);
var editor = K.editor({
uploadJson : 'source/plugin/it618_video/kindeditor/php/upload_json.php?uid='+tmparr[4]+'&imgwidth=680&oss',
fileManagerJson : 'source/plugin/it618_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) {
IT618_VIDEO.get("http://moockxuecheng.com/plugin.php?id=it618_video:ajax"+"&ac="+pjtype+"&playpjid="+playpjid+"&picurl="+url+"&formhash=218a4cb6",{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]);
IT618_VIDEO('.ns-sub-a').click(function(){
if (IT618_VIDEO('.doo').find('span').hasClass('mag')){
IT618_VIDEO('.doo .mag').show();
}else{
var it618_content=document.getElementById("pjvalue").value;
if(getstrlen(it618_content)<5){
alert("评价内容字符数至少5个!");
return false;
}
if(getstrlen(it618_content)>400){
alert("评价内容字符数最多400个!");
return false;
}
if(confirm(tmparr[2])){
var score1 = IT618_VIDEO('.sp_a').find('a').filter('.ns-sider-star').length;
var score2 = IT618_VIDEO('.sp_b').find('a').filter('.ns-sider-star').length;
var score3 = IT618_VIDEO('.sp_c').find('a').filter('.ns-sider-star').length;
var score4 = IT618_VIDEO('.sp_d').find('a').filter('.ns-sider-star').length;
var score=score1+'@'+score2+'@'+score3+'@'+score4;
document.getElementById("pjvalue").value=it618_content.replace(/\n/g,"[br]");
IT618_VIDEO.post("http://moockxuecheng.com/plugin.php?id=it618_video:ajax"+"&ac="+pjtype+"&playpjid="+playpjid+"&score="+score+"&formhash=218a4cb6",IT618_VIDEO("#it618_playpj").serialize(),function (data, textStatus){
var tmparr=data.split("it618_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");
}
}
})
IT618_VIDEO('.ns-sub-b').click(function(){
layer.close(layerclose['getsalepj']);
})
}, "html");
}
function starh(spans,ia){
var _span=IT618_VIDEO(spans);
var _star=_span.find('a');
var _ias=IT618_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');
}
IT618_VIDEO(this).addClass('ns-sider-starc');
IT618_VIDEO(this).prevAll().addClass('ns-sider-starc');
IT618_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');
IT618_VIDEO(this).addClass('ns-sider-star');
IT618_VIDEO(this).prevAll().addClass('ns-sider-star');
IT618_VIDEO(this).nextAll().removeClass('ns-sider-star');
IT618_VIDEO(this).parents('li').removeClass('doo');
var sb=IT618_VIDEO(this).parents('li').find('span');
var sa=sb.eq(2).hide();
})
}
function getbigpjpic(pjid,bigpjpic){
IT618_VIDEO("#bigpjpic"+pjid).html("
");
IT618_VIDEO("#bigpjpic"+pjid).show();
}
function hidebigpjpic(obj){
obj.style.display='none';
}
function delpjpic(pjid,pjpicid){
IT618_VIDEO.get("http://moockxuecheng.com/plugin.php?id=it618_video:ajax"+"&ac="+pjtype+"&playpjid="+pjid+"&pjpicid="+pjpicid+"&formhash=218a4cb6",{ac1:"delpjpic"},function (data, textStatus){
getpjpic(pjid);
}, "html");
}
var it61128123="34459d0c90dba8dfa75e30182f519bfa";
function getpjpic(pjid){
IT618_VIDEO.get("http://moockxuecheng.com/plugin.php?id=it618_video:ajax"+"&playpjid="+pjid+"&formhash=218a4cb6", {ac:"getpjpic"},function (data, textStatus){
IT618_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+'个字符!';
}