摘要: 获取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(';', 阅读全文
posted @ 2012-05-15 14:30 cwe 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2012-05-15 14:13 cwe 阅读(1030) 评论(0) 推荐(0) 编辑