// 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_WENKU.post("https://fanlizz.com/plugin.php?id=it618_wenku:ajax"+"&ac=renzheng&formhash=f0cf2bcb",IT618_WENKU("#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 if(tmparr[1]=="checkok"){
alert("已为您自动审核通过!点击确定,自动进入库主后台!");
location.href=tmparr[2];
}else{
alert(data);
}
}, "html");
}
function templatestyle(stylename){
IT618_WENKU.get("https://fanlizz.com/plugin.php?id=it618_wenku:ajax&stylename="+stylename+"&formhash=f0cf2bcb", {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_WENKU(window).height()*0.8){
height=IT618_WENKU(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);
}
}
});
}
IT618_WENKU.ajaxSetup({cache:false});
IT618_WENKU(document).ready(function() {
//5efe6671ee8ea2368f415aa40d6ac09b
IT618_WENKU(".renzheng").click(function(){
it618_members_login();return;
IT618_WENKU.get("https://fanlizz.com/plugin.php?id=it618_wenku:showrenzheng", {ac:"add"},function (data, textStatus){
var tmparr=data.split("it618_split");
showlayerwin('renzheng',1,tmparr[0],tmparr[1],1100,550,1);
}, "html");
});
//80e12e76a767a3fffcc6bbb2936f7a2f
IT618_WENKU("#mysale").click(function(){
showlayerwin('mysale',1,'我的交易','',1200,610,1);
IT618_WENKU("#layer_mysale").html('');
IT618_WENKU.get("https://fanlizz.com/plugin.php?id=it618_wenku:mysale", {ac:"add"},function (data, textStatus){
IT618_WENKU.get("https://fanlizz.com/plugin.php?id=it618_wenku:ajax"+"&formhash=f0cf2bcb", {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_WENKU("#layer_mysale").html(bodytmp);
laydate.render({trigger: "click",
elem: '#mysale_time1'
});
laydate.render({trigger: "click",
elem: '#mysale_time2'
});
}, "html");
}, "html");
});
//f2f5694dc34eb35466926411e1e6a388
IT618_WENKU("#myread").click(function(){
showlayerwin('myread',1,'阅读明细','',1200,610,1);
IT618_WENKU("#layer_myread").html('');
IT618_WENKU.get("https://fanlizz.com/plugin.php?id=it618_wenku:myread", {ac:"add"},function (data, textStatus){
IT618_WENKU.get("https://fanlizz.com/plugin.php?id=it618_wenku:ajax"+"&formhash=f0cf2bcb", {ac:"readlist_get",ac1:"pcmyread"},function (data1, textStatus){
var tmparr1=data1.split("it618_split");
var bodytmp=data;
bodytmp=bodytmp.replace("it618myreadsum",tmparr1[0]);
bodytmp=bodytmp.replace("it618myreadlist",tmparr1[1]);
bodytmp=bodytmp.replace("it618myreadpage",tmparr1[2]);
IT618_WENKU("#layer_myread").html(bodytmp);
laydate.render({trigger: "click",
elem: '#myread_time1'
});
laydate.render({trigger: "click",
elem: '#myread_time2'
});
}, "html");
}, "html");
});
//d00c2aa60368e6cdaf8e789788223f7c
IT618_WENKU("#mydown").click(function(){
showlayerwin('mydown',1,'下载明细','',1200,610,1);
IT618_WENKU("#layer_mydown").html('');
IT618_WENKU.get("https://fanlizz.com/plugin.php?id=it618_wenku:mydown", {ac:"add"},function (data, textStatus){
IT618_WENKU.get("https://fanlizz.com/plugin.php?id=it618_wenku:ajax"+"&formhash=f0cf2bcb", {ac:"downlist_get",ac1:"pcmydown"},function (data1, textStatus){
var tmparr1=data1.split("it618_split");
var bodytmp=data;
bodytmp=bodytmp.replace("it618mydownsum",tmparr1[0]);
bodytmp=bodytmp.replace("it618mydownlist",tmparr1[1]);
bodytmp=bodytmp.replace("it618mydownpage",tmparr1[2]);
IT618_WENKU("#layer_mydown").html(bodytmp);
laydate.render({trigger: "click",
elem: '#mydown_time1'
});
laydate.render({trigger: "click",
elem: '#mydown_time2'
});
}, "html");
}, "html");
});
//d88a041930e0173c6dd7037a2a5b8008
IT618_WENKU("#mysalekm").click(function(){
showlayerwin('mysalekm',1,'','',1200,610,1);
IT618_WENKU("#layer_mysalekm").html('');
IT618_WENKU.get("https://fanlizz.com/plugin.php?id=it618_wenku:mysalekm", {ac:"add"},function (data, textStatus){
IT618_WENKU.get("https://fanlizz.com/plugin.php?id=it618_wenku:ajax"+"&formhash=f0cf2bcb", {ac:"salekmlist_get",ac1:"pcmysalekm"},function (data1, textStatus){
var tmparr1=data1.split("it618_split");
var bodytmp=data;
bodytmp=bodytmp.replace("it618mysalekmsum",tmparr1[0]);
bodytmp=bodytmp.replace("it618mysalekmlist",tmparr1[1]);
bodytmp=bodytmp.replace("it618mysalekmpage",tmparr1[2]);
IT618_WENKU("#layer_mysalekm").html(bodytmp);
laydate.render({trigger: "click",
elem: '#mysalekm_time1'
});
laydate.render({trigger: "click",
elem: '#mysalekm_time2'
});
}, "html");
}, "html");
});
//d45bfabd1131a9f267cdd509972b5d07
IT618_WENKU("#mysubscribe").click(function(){
showlayerwin('mysubscribe',1,'我的关注','',1200,610,1);
IT618_WENKU("#layer_mysubscribe").html('');
IT618_WENKU.get("https://fanlizz.com/plugin.php?id=it618_wenku:mysubscribe", {ac:"it618"},function (data, textStatus){
IT618_WENKU.get("https://fanlizz.com/plugin.php?id=it618_wenku:ajax"+"&formhash=f0cf2bcb", {ac:"subscribe_get",ac1:"pcmysubscribe"},function (data1, textStatus){
var tmparr1=data1.split("it618_split");
var bodytmp=data;
bodytmp=bodytmp.replace("it618mysubscribesum",tmparr1[0]);
bodytmp=bodytmp.replace("it618mysubscribelist",tmparr1[1]);
bodytmp=bodytmp.replace("it618mysubscribepage",tmparr1[2]);
IT618_WENKU("#layer_mysubscribe").html(bodytmp);
}, "html");
}, "html");
});
//81775fd5e9457e5afc376da18eb7f8e8
IT618_WENKU("#mycollect").click(function(){
showlayerwin('mycollect',1,'我的收藏','',1200,610,1);
IT618_WENKU("#layer_mycollect").html('');
IT618_WENKU.get("https://fanlizz.com/plugin.php?id=it618_wenku:mycollect", {ac:"it618"},function (data, textStatus){
IT618_WENKU.get("https://fanlizz.com/plugin.php?id=it618_wenku:ajax"+"&formhash=f0cf2bcb", {ac:"collectgoods_get",ac1:"pcmygoods"},function (data1, textStatus){
var tmparr1=data1.split("it618_split");
var bodytmp=data;
bodytmp=bodytmp.replace("it618mycollectsum",tmparr1[0]);
bodytmp=bodytmp.replace("it618mycollectlist",tmparr1[1]);
bodytmp=bodytmp.replace("it618mycollectpage",tmparr1[2]);
IT618_WENKU("#layer_mycollect").html(bodytmp);
}, "html");
}, "html");
});
//9e988479d41f3a164d637af8e8e6d6ed
IT618_WENKU("#mysalepj").click(function(){
showlayerwin('mysalepj',1,'文档评价','',1200,610,1);
IT618_WENKU("#layer_mysalepj").html('');
IT618_WENKU.get("https://fanlizz.com/plugin.php?id=it618_wenku:mysalepj", {ac:"it618"},function (data, textStatus){
IT618_WENKU.get("https://fanlizz.com/plugin.php?id=it618_wenku:ajax"+"&formhash=f0cf2bcb", {ac:"salepjlist_get",ac1:"pcmysalepj"},function (data1, textStatus){
var tmparr1=data1.split("it618_split");
var bodytmp=data;
bodytmp=bodytmp.replace("it618mysalepjsum",tmparr1[0]);
bodytmp=bodytmp.replace("it618mysalepjlist",tmparr1[1]);
bodytmp=bodytmp.replace("it618mysalepjpage",tmparr1[2]);
bodytmp=bodytmp.replace("it618mysalepjjf",tmparr1[3]);
IT618_WENKU("#layer_mysalepj").html(bodytmp);
}, "html");
}, "html");
});
});
function delcollect(cid){
IT618_WENKU.get("https://fanlizz.com/plugin.php?id=it618_wenku:ajax&cid="+cid+"&formhash=f0cf2bcb",{ac:"delcollect"},function (data, textStatus){
alert(data);
getmycollectlist(mycollect_url);
}, "html");
}
function saveadderrset(obj){
var isadderr=0;
if(obj.checked)isadderr=1;
IT618_WENKU.get("https://fanlizz.com/plugin.php?id=it618_wenku:ajax"+"&isadderr="+isadderr+"&formhash=f0cf2bcb", {ac:"saveadderrset"},function (data1, textStatus){
}, "html");
}
var mysale_url="https://fanlizz.com/plugin.php?id=it618_wenku:ajax",mysale_sqlurl="";
function getmysalelist(url){
document.getElementById("mysale_loading").style.display="";
document.getElementById("mysalelist").style.display="none";
mysale_url=url;
IT618_WENKU.get(url+mysale_sqlurl+"&formhash=f0cf2bcb", {ac:"salelist_get",ac1:"pcmysale"},function (data, textStatus){
var tmparr=data.split("it618_split");
IT618_WENKU("#mysalesum").html(tmparr[0]);
IT618_WENKU("#mysalelist").html(tmparr[1]);
IT618_WENKU("#mysalepage").html(tmparr[2]);
IT618_WENKU("#mysalejf").html(tmparr[3]);
document.getElementById("mysale_loading").style.display="none";
document.getElementById("mysalelist").style.display="";
}, "html");
}
function searchmysale(){
if(parseInt(document.getElementById("mysale_time1").value.replace(/-/g,""))>parseInt(document.getElementById("mysale_time2").value.replace(/-/g,""))){
alert("开始日期不能大于截止日期!");
return false;
}
var pname=document.getElementById("mysale_pname").value;
var it618_time1=document.getElementById("mysale_time1").value;
var it618_time2=document.getElementById("mysale_time2").value;
mysale_sqlurl="&pname="+pname+"&it618_time1="+it618_time1+"&it618_time2="+it618_time2;
mysale_url="https://fanlizz.com/plugin.php?id=it618_wenku:ajax";
getmysalelist(mysale_url);
}
var myread_sqlurl="";
function getmyreadlist(url){
document.getElementById("myread_loading").style.display="";
document.getElementById("myreadlist").style.display="none";
IT618_WENKU.get(url+myread_sqlurl+"&formhash=f0cf2bcb", {ac:"readlist_get",ac1:"pcmyread"},function (data, textStatus){
var tmparr=data.split("it618_split");
IT618_WENKU("#myreadsum").html(tmparr[0]);
IT618_WENKU("#myreadlist").html(tmparr[1]);
IT618_WENKU("#myreadpage").html(tmparr[2]);
document.getElementById("myread_loading").style.display="none";
document.getElementById("myreadlist").style.display="";
}, "html");
}
function searchmyread(){
if(parseInt(document.getElementById("myread_time1").value.replace(/-/g,""))>parseInt(document.getElementById("myread_time2").value.replace(/-/g,""))){
alert("开始日期不能大于截止日期!");
return false;
}
var pname=document.getElementById("myread_pname").value;
var it618_time1=document.getElementById("myread_time1").value;
var it618_time2=document.getElementById("myread_time2").value;
myread_sqlurl="&pname="+pname+"&it618_time1="+it618_time1+"&it618_time2="+it618_time2;
getmyreadlist("https://fanlizz.com/plugin.php?id=it618_wenku:ajax");
}
var mydown_sqlurl="";
function getmydownlist(url){
document.getElementById("mydown_loading").style.display="";
document.getElementById("mydownlist").style.display="none";
IT618_WENKU.get(url+mydown_sqlurl+"&formhash=f0cf2bcb", {ac:"downlist_get",ac1:"pcmydown"},function (data, textStatus){
var tmparr=data.split("it618_split");
IT618_WENKU("#mydownsum").html(tmparr[0]);
IT618_WENKU("#mydownlist").html(tmparr[1]);
IT618_WENKU("#mydownpage").html(tmparr[2]);
document.getElementById("mydown_loading").style.display="none";
document.getElementById("mydownlist").style.display="";
}, "html");
}
function searchmydown(){
if(parseInt(document.getElementById("mydown_time1").value.replace(/-/g,""))>parseInt(document.getElementById("mydown_time2").value.replace(/-/g,""))){
alert("开始日期不能大于截止日期!");
return false;
}
var pname=document.getElementById("mydown_pname").value;
var it618_time1=document.getElementById("mydown_time1").value;
var it618_time2=document.getElementById("mydown_time2").value;
mydown_sqlurl="&pname="+pname+"&it618_time1="+it618_time1+"&it618_time2="+it618_time2;
getmydownlist("https://fanlizz.com/plugin.php?id=it618_wenku:ajax");
}
function getmysubscribelist(url){
document.getElementById("mysubscribe_loading").style.display="";
document.getElementById("mysubscribelist").style.display="none";
IT618_WENKU.get(url+"&formhash=f0cf2bcb", {ac:"subscribe_get",ac1:"pcmysubscribe"},function (data, textStatus){
var tmparr=data.split("it618_split");
IT618_WENKU("#mysubscribesum").html(tmparr[0]);
IT618_WENKU("#mysubscribelist").html(tmparr[1]);
IT618_WENKU("#mysubscribepage").html(tmparr[2]);
document.getElementById("mysubscribe_loading").style.display="none";
document.getElementById("mysubscribelist").style.display="";
}, "html");
}
function searchmysubscribe(){
getmysubscribelist("https://fanlizz.com/plugin.php?id=it618_wenku:ajax");
}
var mycollect_url="https://fanlizz.com/plugin.php?id=it618_wenku:ajax",mycollect_sqlurl="";
function getmycollectlist(url){
document.getElementById("mycollect_loading").style.display="";
document.getElementById("mycollectlist").style.display="none";
IT618_WENKU.get(url+mycollect_sqlurl+"&formhash=f0cf2bcb", {ac:"collectgoods_get",ac1:"pcmygoods"},function (data, textStatus){
var tmparr=data.split("it618_split");
IT618_WENKU("#mycollectsum").html(tmparr[0]);
IT618_WENKU("#mycollectlist").html(tmparr[1]);
IT618_WENKU("#mycollectpage").html(tmparr[2]);
mycollect_url=url;
document.getElementById("mycollect_loading").style.display="none";
document.getElementById("mycollectlist").style.display="";
}, "html");
}
function searchmycollect(){
var pname=document.getElementById("mycollect_pname").value;
mycollect_sqlurl="&pname="+pname;
mycollect_url="https://fanlizz.com/plugin.php?id=it618_wenku:ajax";
getmycollectlist(mycollect_url);
}
var mysalepj_url="https://fanlizz.com/plugin.php?id=it618_wenku:ajax",mysalepj_sqlurl="";
function getmysalepjlist(url){
document.getElementById("mysalepj_loading").style.display="";
document.getElementById("mysalepjlist").style.display="none";
IT618_WENKU.get(url+mysalepj_sqlurl+"&formhash=f0cf2bcb", {ac:"salepjlist_get",ac1:"pcmysalepj"},function (data, textStatus){
var tmparr=data.split("it618_split");
IT618_WENKU("#mysalepjsum").html(tmparr[0]);
IT618_WENKU("#mysalepjlist").html(tmparr[1]);
IT618_WENKU("#mysalepjpage").html(tmparr[2]);
IT618_WENKU("#mysalepjjf").html(tmparr[3]);
mysalepj_url=url;
document.getElementById("mysalepj_loading").style.display="none";
document.getElementById("mysalepjlist").style.display="";
}, "html");
}
function searchmysalepj(){
var pname=document.getElementById("mysalepj_pname").value;
mysalepj_sqlurl="&pname="+pname;
mysalepj_url="https://fanlizz.com/plugin.php?id=it618_wenku:ajax";
getmysalepjlist(mysalepj_url);
}
var pjtype,pjtype1;
function setsalepj(salepjid){
pjtype='salepj';
pjtype1='salepj';
getsalepj(salepjid);
}
function goodssalepj(salepjid,pjtypetmp){
pjtype='salepj';
pjtype1=pjtypetmp;
getsalepj(salepjid);
}
function hfsalepj(salepjid){
IT618_WENKU.get("https://fanlizz.com/plugin.php?id=it618_wenku:hfsalepj"+"&salepjid="+salepjid, {ac:"it618"},function (data, textStatus){
var tmparr=data.split("it618_split");
showlayerwin('gethfsalepj',1,tmparr[0],tmparr[1],523,398,0);
IT618_WENKU('.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_WENKU.post("https://fanlizz.com/plugin.php?id=it618_wenku:ajax"+"&ac=hfsalepj&salepjid="+salepjid+"&formhash=f0cf2bcb",IT618_WENKU("#it618_hfsalepj").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_WENKU('.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 getsalepj(salepjid){
IT618_WENKU.get("https://fanlizz.com/plugin.php?id=it618_wenku:salepj"+"&salepjid="+salepjid, {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_wenku/kindeditor/php/upload_json.php?uid='+tmparr[4]+'&imgwidth=680',
fileManagerJson : 'source/plugin/it618_wenku/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,salepjid);
}else{
editor.loadPlugin('image', function() {
editor.plugin.imageDialog({
showRemote : false,
clickFn : function(url, title, width, height, border, align) {
IT618_WENKU.get("https://fanlizz.com/plugin.php?id=it618_wenku:ajax"+"&ac="+pjtype+"&salepjid="+salepjid+"&picurl="+url+"&formhash=f0cf2bcb",{ac1:"addpjpic"},function (data, textStatus){
getpjpic(salepjid);
}, "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(salepjid);
starh('.sp_a','.ias');
starh('.sp_b','.ibs');
starh('.sp_c','.ics');
starh('.sp_d','.ids');
if(tmparr[3]!='')window.eval(tmparr[3]);
IT618_WENKU('.ns-sub-a').click(function(){
if (IT618_WENKU('.doo').find('span').hasClass('mag')){
IT618_WENKU('.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_WENKU('.sp_a').find('a').filter('.ns-sider-star').length;
var score2 = IT618_WENKU('.sp_b').find('a').filter('.ns-sider-star').length;
var score3 = IT618_WENKU('.sp_c').find('a').filter('.ns-sider-star').length;
var score4 = IT618_WENKU('.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_WENKU.post("https://fanlizz.com/plugin.php?id=it618_wenku:ajax"+"&ac="+pjtype+"&salepjid="+salepjid+"&score="+score+"&formhash=f0cf2bcb",IT618_WENKU("#it618_salepj").serialize(),function (data, textStatus){
var tmparr=data.split("it618_split");
if(tmparr[0]=="ok"){
alert(tmparr[1]);
layer.close(layerclose['getsalepj']);
if(pjtype=='salepj'){
if(pjtype1=='playpj'){
getmysalepjlist(mysalepj_url);
}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_WENKU('.ns-sub-b').click(function(){
layer.close(layerclose['getsalepj']);
})
}, "html");
}
function starh(spans,ia){
var _span=IT618_WENKU(spans);
var _star=_span.find('a');
var _ias=IT618_WENKU(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_WENKU(this).addClass('ns-sider-starc');
IT618_WENKU(this).prevAll().addClass('ns-sider-starc');
IT618_WENKU(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_WENKU(this).addClass('ns-sider-star');
IT618_WENKU(this).prevAll().addClass('ns-sider-star');
IT618_WENKU(this).nextAll().removeClass('ns-sider-star');
IT618_WENKU(this).parents('li').removeClass('doo');
var sb=IT618_WENKU(this).parents('li').find('span');
var sa=sb.eq(2).hide();
})
}
function getbigpjpic(pjid,bigpjpic){
IT618_WENKU("#bigpjpic"+pjid).html("");
IT618_WENKU("#bigpjpic"+pjid).show();
}
function hidebigpjpic(obj){
obj.style.display='none';
}
function delpjpic(pjid,pjpicid){
IT618_WENKU.get("https://fanlizz.com/plugin.php?id=it618_wenku:ajax"+"&ac="+pjtype+"&salepjid="+pjid+"&pjpicid="+pjpicid+"&formhash=f0cf2bcb",{ac1:"delpjpic"},function (data, textStatus){
getpjpic(pjid);
}, "html");
}
function getpjpic(pjid){
IT618_WENKU.get("https://fanlizz.com/plugin.php?id=it618_wenku:ajax"+"&salepjid="+pjid+"&formhash=f0cf2bcb", {ac:"getpjpic"},function (data, textStatus){
IT618_WENKU("#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+'个字!';
}