u7彩票cc请教PTC制冷片DIY除湿机
)<[^<]*)*/gi;
vartext=html.replace(SCRIPT_REGEX,"");//正则替换为空
vararr=text.split('@');
if(arr[0]=='推荐成功'){
//推荐成功提示
u7彩票cc varnum=parseInt($("#recommendcount").text());
$("#return_qcrecommend_").text(arr[0]);
//推荐数加1
$("#recommendcount").text(num+1);
//推荐人显示
if($("#recommendcount").text()==''){
u7彩票cc $("#recommendtag").html("推荐人");
u7彩票cc $("#recommendbody").html(arr[1]);
}else{
$("#recommendbody").append(arr[1]);
}
}
});
//渲染分享代码
$("#shareblog").html('');
u7彩票cc /*jquery写法
varcomment_cid=_window.location.hash;
varcommentcid=comment_cid.slice(1);
u7彩票cc if(commentcid){
jQuery("#"+commentcid).parent().animate({height:'toggle',opacity:'toggle'},"fast");
u7彩票cc jQuery("#"+commentcid).parent().prev().hide();
}
*/
u7彩票cc //_window.onload=function(){//js写法
//找到锚点
varcomment_cid=_window.location.hash.toString();
u7彩票cc varcommentcid=comment_cid.slice(1).toString();
vartheNode=document.getElementById(commentcid);
u7彩票cc if(theNode.hasChildNodes()){
u7彩票cc if(theNode.childNodes.length==1){
u7彩票cc //alert(theNode.firstChild.nodeType);
theNode.style.backgroundColor="#E6E6B8";
u7彩票cc theNode.previousElementSibling.style.marginBottom="0px";
theNode.previousElementSibling.style.backgroundColor="#E6E6B8";
theNode.previousElementSibling.previousElementSibling.style.backgroundColor="#E6E6B8";
window.scrollTo(0,theNode.offsetTop+100);
u7彩票cc returnfalse;
}
u7彩票cc //获取第一个子节点
u7彩票cc varfirst=theNode.children[0];
u7彩票cc first.style.backgroundColor="#E6E6B8";
u7彩票cc //获取父节点元素
varprent=theNode[xss_clean];
prent.style.display='block';
//前一个元素节点
u7彩票cc varpre=prent.previousElementSibling;
pre.style.display='none';
}
//}
});