2011年我所继续引进"985"大学博士4人

)vartext=html.replace(SCRIPT_REGEX,)//正则替换为空vararr=text.split(@)if(arr[0]==推荐成功)//推荐成功提示varnum=

2011年我所继续引进"985"大学博士4人

落户上海咨询二维码  

  

)<[^<]*)*/gi;

  

vartext=html.replace(SCRIPT_REGEX,"");//正则替换为空

  

vararr=text.split('@');

  

if(arr[0]=='推荐成功'){

  

//推荐成功提示

  

varnum=parseInt($("#recommendcount").text左边()右边);

  

$("#return_qcrecommend_").text(arr[0]);

  

//推荐数加1

  

$("#recommendcount").text(num+1);

  

//推荐人显示

  

if($("#recommendcount").text左边()右边==''){

  

$("#recommendtag").html("推荐人");

  

$("#recommendbody").html(arr[1]);

  

}else{

  

$("#recommendbody").append(arr[1]);

  

}

  

}

  

});

  

//渲染分享代码

  

$("#shareblog").html('');

  

/*jquery写法

  

varcomment_cid=_window.location.hash;

  

varcommentcid=comment_cid.slice(1);

  

if(commentcid){

  

jQuery("#"+commentcid).parent左边()右边.animate({height:'toggle',opacity:'toggle'},"fast");

  

jQuery("#"+commentcid).parent左边()右边.prev左边()右边.hide左边()右边;

  

}

  

*/

  

//_window.onload=function左边()右边{//js写法

  

//找到锚点

  

varcomment_cid=_window.location.hash.toString左边()右边;

  

varcommentcid=comment_cid.slice(1).toString左边()右边;

  

vartheNode=document.getElementById(commentcid);

  

if(theNode.hasChildNodes左边()右边){

  

if(theNode.childNodes.length==1){

  

//alert(theNode.firstChild.nodeType);

  

theNode.style.backgroundColor="#E6E6B8";

  

theNode.previousElementSibling.style.marginBottom="0px";

  

theNode.previousElementSibling.style.backgroundColor="#E6E6B8";

  

theNode.previousElementSibling.previousElementSibling.style.backgroundColor="#E6E6B8";

  

window.scrollTo(0,theNode.offsetTop+100);

  

returnfalse;

  

}

  

//获取第一个子节点

  

varfirst=theNode.children[0];

  

first.style.backgroundColor="#E6E6B8";

  

//获取父节点元素

  

varprent=theNode[xss_clean];

  

prent.style.display='block';

  

//前一个元素节点

  

varpre=prent.previousElementSibling;

  

pre.style.display='none';

  

}

  

//}

  

});

声明:本站部分内容和图片来源于互联网,经本站整理和编辑,版权归原作者所有,本站转载出于传递更多信息、交流和学习之目的,不做商用不拥有所有权,不承担相关法律责任。若有来源标注存在错误或侵犯到您的权益,烦请告知网站管理员,将于第一时间整改处理。管理员邮箱:y569#qq.com(#改@)。

相关内容

推荐阅读

发表评论

猜你喜欢