摘要:
获取Cookiefunction GetCookie(cookieName) { var cookieString = document.cookie; var start = cookieString.indexOf(cookieName + '='); // 加上等号的原因是避免在某些 Cookie 的值里有 与 cookieName 一样的字符串。 if (start == -1) return null; // 找不到 start += cookieName.length + 1; var end = cookieString.indexOf(';', 阅读全文
摘要:
function addMark(title, url) { try { if (window.sidebar) { window.sidebar.addPanel(title, url, ""); } else if (document.all) { if(navigator.userAgent.toLowerCase().indexOf("msie 8")>-1) external.AddToFavoritesBar(url,title,''); else window.external.AddFavorite(url, tit 阅读全文