<textarea id="runcode58205"><script> function Addfavorite () {switch (Getos ()) {case 1:window.external.addfavorite (' http: Www.jb51.net ', ' cloud-dwelling community '); Case 2:window.sidebar.addpanel (' cloud-dwelling community ', ' http://www.jb51.net/', ' "); Case 0:alert ("Your browser is too awesome, I don't know how to show it.") Alas. "); }} function Getos () {if (Navigator.userAgent.indexOf ("MSIE") >0) return 1; if (Isfirefox=navigator.useragent.indexof ("Firefox") >0) return 2; if (Issafari=navigator.useragent.indexof ("Safari") >0) return 3; if (Iscamino=navigator.useragent.indexof ("Camino") >0) return 4; if (Ismozilla=navigator.useragent.indexof ("gecko/") >0) return 5; return 0; </script> Add a cloud-dwelling community to your collection</textarea>
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]