你已成功退出QQ邮箱。'; document.getElementById('returnMsg').style.display = 'block'; } else if (tiptype === 'LOGIN_ERR_COOKIE_FORBIDDEN') { document.getElementById('returnMsg').innerHTML = '你的浏览器不支持或已经禁止使用Cookie,导致无法正常登录。请启用Cookie后重试。'; document.getElementById('returnMsg').style.display = 'block'; function deleteAllCookies() { var _oDomains = [".mail.qq.com",".qq.com"], _oCookies = document.cookie.split("; "), _nCookiesLength = _oCookies.length, _oArr, _sCookie, _sUin = "0", //默认找不到uin的话就是0 _oMailDomain = [], _oQQDomain = []; if (document.cookie === "") { alert("成功删除 Cookie!"); return; } function handleItem(_asDomain, _asCookie) { var _sDetail; if (document.cookie !== "") { _sDetail = _asCookie.substr(0,_asCookie.indexOf("=")); _oArr.push(_asDomain); document.cookie = _oArr.join(''); if (document.cookie.split(";").length < _nCookiesLength || document.cookie === "") { _asDomain === _oDomains[0] ? _oMailDomain.push(_sDetail) : _oQQDomain.push(_sDetail); _nCookiesLength --; _oArr.pop(); return true; } _oArr.pop(); } } for (var i = 0, _nLen = _oCookies.length; i < _nLen; i++) { (_oCookies[i].indexOf("=") === -1) && (_oCookies[i] += "="); _oArr = [_oCookies[i], ";expires=Thu, 01 Jan 1970 00:00:00 GMT",";path=/",";domain="]; if (_oCookies[i].indexOf("qm_username") !== -1) { _sUin = _oCookies[i].substr(_oCookies[i].indexOf("=") + 1, _oCookies[i].length); } handleItem(_oDomains[0], _oCookies[i]) || handleItem(_oDomains[1], _oCookies[i]); } deleteAllCookies.oImg = document.createElement("img"); alert("成功删除 Cookie!"); } } else if (s === 'session_timeout') { if (msgtype === 1) { document.getElementById('returnMsg').innerHTML = '