La copie de code est la suivante:
var www_jb51_net = fonction (obj, url, titre) {
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 () {
essayer {
window.external.addfavorite (URL, titre);
window.event.returnvalue = false;
} catch (exp) {}
});
} autre {
if (b.ff || obj.nodename.tolowercase () == "a") {
obj.setAttribute ("rel", "barre latérale"), obj.title = title, obj.href = url;
} else if (b.op) {
var a = document.CreateElement ("a");
a.rel = "barre latérale", a.title = title, a.href = url;
obj.parentNode.insertbefore (a, obj);
A.APPENDCHILD (OBJ);
a = null;
}
}
};
<a href = "javascript: void (0); return false;" onmedown = "www_jb51_net (this, '//www.vevb.com', 'wulin.com est un site Web professionnel pour les ressources de construction de sites Web et l'apprentissage de la programmation de script en Chine')"> Collection de wulin.com </a>