Cure<[^<]*)*/gi;
var text = html.replace (script_regex, “”); // regularly replace it to empty

var anrr = text.split (‘@’);
if (ARR [0] == ‘Recommended success’) {{
// Recommended success prompts
var num = PARSEINT ($ (“#Recommendcount”). Text ());
$ (“#Return_QCRECOMDEND_1426971”). Text (ARR [0]);
// Recommended number plus 1
$ (“#RECOMMENDCOUNT”). Text (num+1);
// Recommender display
if ($ (“#Recommendcount”). Text () == ”) {
$ (“#RECOMMENDTAG”). html (“Recommender”);
$ (“#RECOMDEENDBODY”). html (ARR [1]);
} Else {
$ (“#RECOMDEENDBODY”). Append (ARR [1]);
}
}
});

// Rendering sharing code
$ (“#Shareblog”). HTML (‘

‘);

/* jquery writing
var Comment_cid = Window.Location.hash;
var commentcid = comments_cid.slice (1);
if (Commentcid) {
jquery (“#”#”+Commentcid) .parent (). Animate ({Height: ‘Toggle’, OPACITY: ‘Toggle’},” Fast “);
jQuery (“#”+Commentcid) .parent (). Prev (). hide ();
}
*/
//window.onload = Function () {// js writing
// Find the anchor point
var Comment_cid = Window.location.hash.tostring ();
var commentcid = comments_cid.slice (1) .t stand ();
var thenode = document.GetelementByid (Commentcid);
if (thenode.haschildNodes ()) {) {
If (thenode.childNodes.length == 1) {{
//alert (thenode.firstChild.nodeType);
thenode.style.backgroundColor = “#E6E6B8”;
theyode.previousesEMENTSIBling. Style.marginbottom = “0px”;
theyode.previouseslementsibling.style.backgroundColor = “#E6e6b8”;
theyode.previouSementSibling.previouslementsibling.style.Backgroundcolor = “#E6E6B8”;

Window.scrollto (0, thenode.offsettop+100);
Return false;
}
// Get the first child node
var first = theyode.children [0];
first.style.backgroundcolor = “#e6e6b8”;
// Get the parent node element
var pos = theyode.parentnode;
pres.Style.display = ‘Block’;
// The previous element node
var Pre = Prent.previouseementSibling;
pre.style.display = ‘None’;
}
//}

});

Related Post