// 加入收藏 Fonction addFavoGiTe () {if (document.all) {addToBookMark (window.location.href, document.title); } else if (window.sidebar) {addToBookMark (document.title, window.location.href); }} fonction addtobookmark (url, title) {var ua = navigator.useragent.tolowercase (); if (ua.indexof ("msie 8")> - 1) {external.addtofavoritesbar (url, title); // ie8} else {try {window.external.addfavorite (url, title); } catch (e) {try {window.sidebar.addpanel (titre, url); // firefox} catch (e) {alert ("加入收藏失败 , 请使用 ctrl + d 进行添加"); }}} return false; }