Copy Code code as follows:
var www_jb51_net = function (obj, URL, title) {
var e = window.event | | Arguments.callee.caller.arguments[0];
var B = {
IE:/msie/.test (window.navigator.userAgent) &&!window.opera
, FF:/firefox/.test (window.navigator.userAgent)
, OP:!! Window.opera
};
Obj.onmousedown = null;
if (b.ie) {
Obj.attachevent ("OnMouseUp", function () {
try {
Window.external.AddFavorite (URL, title);
Window.event.returnValue = false;
catch (exp) {}
});
} else {
if (B.ff | | obj.nodeName.toLowerCase () = = "a") {
Obj.setattribute ("rel", "sidebar"), Obj.title = title, obj.href = URL;
else if (B.op) {
var a = document.createelement ("a");
A.rel = "sidebar", A.title = title, a.href = URL;
Obj.parentNode.insertBefore (A, obj);
A.appendchild (obj);
A = null;
}
}
};
<a href= "javascript:void (0); return false;" onmousedown= "www_jb51_net (This, ' http://www.jb51.net ', ' Cloud-dwelling community is a professional web site construction resources, script programming Learning Class website ') ' > Collection Cloud Habitat Community </a>