js检测浏览器版本

function browser_version() {
    var e = navigator.userAgent.toLowerCase();
    return e.match(/msie ([\d.]+)/) ? 1 : e.match(/firefox\/([\d.]+)/) ? 3 : e.match(/chrome\/([\d.]+)/) ? 5 : e.match(/opera.([\d.]+)/) ? 9 : e.match(/version\/([\d.]+).*safari/) ? 7 : 1
}
function isForeignPhone(e) {
    return /^00(86|852|853|886)/.test(e) ? !1 : !0
}
function isGanAoTaiPhone(e) {
    return /^00(852|853|886)/.test(e) ? !0 : !1
}
function isRegValidPhone(e) {
    return e += "",
    /(^1[0-9]{10}$)|(^00[1-9]{1}[0-9]{3,15}$)/.test(e)
}
function langSwitch(e) {
    $.winName.set("type", ""),
    window.location.href = window.location.pathname.split("/" + $GLOBALS.lang + "/")[0] + "/" + e + "/index.html"
}
function indexType2RegType(e) {
    var t = __("_lang_cgi_regType", [1, 2, 3]);
    return t[e]
}
function feedBack(e) {
    if ("en" == $GLOBALS.lang) window.location.href = "mailto:qqimail@tencent.com?subject=Feedback from English signup page";
    else {
        e = 716;
        var t = $.cookie.get("sessionCookie"),
        n = $.cookie.get("machineCookie"),
        i = $.cookie.get("skey"),
        o = $.cookie.get("uin"),
        r = "";
        r = i && o ? "http://support.qq.com/write.shtml?fid=" + e + "&SSTAG=" + __("_js_version", "") + "-" + t + "-" + n: "http://support.qq.com/write.shtml?guest=1&fid=" + e + "&SSTAG=" + __("_js_version", "") + "-" + t + "-" + n,
        window.open(r)
    }
}
function _DJB(e) {
    if (!e) return "";
    for (var t = 5381,
    n = 0,
    i = e.length; i > n; ++n) t += (t << 5) + e.charAt(n).charCodeAt();
    return 2147483647 & t
} !
function() {
    window.onerror = function(e, t, n) {
        var i = document.createElement("img");
        t || (t = window.location.href),
        e += window.index ? "[" + index.current_error_dom + "]": "[no index]";
        var o = encodeURIComponent(e + "|_|" + t + "|_|" + n + "|_|" + window.navigator.userAgent);
        i.src = "http://badjs.qq.com/cgi-bin/js_report?bid=67&mid=195232&msg=" + o,
        i = null
    }
} (),
document.caretRangeFromPoint = function() {};
var Simple = window.Simple = window.$ = function(e) {
    return document.getElementById(e)
};
$.cookie = {
    get: function(e) {
        var t = document.cookie.match(new RegExp("(^| )" + e + "=([^;]*)(;|$)"));
        return t ? decodeURIComponent(t[2]) : ""
    },
    set: function(e, t, n, i, o) {
        var r = new Date;
        r.setTime(r.getTime() + (o ? 36e5 * o: 2592e6)),
        document.cookie = e + "=" + t + "; expires=" + r.toGMTString() + "; path=" + (i ? i: "/") + "; " + (n ? "domain=" + n + ";": "")
    },
    setSessionCookie: function(e, t, n, i) {
        document.cookie = e + "=" + t + "; path=" + (i ? i: "/") + "; " + (n ? "domain=" + n + ";": "")
    },
    del: function(e, t, n) {
        document.cookie = e + "=; expires=Mon, 26 Jul 1997 05:00:00 GMT; path=" + (n ? n: "/") + "; " + (t ? "domain=" + t + ";": "")
    },
    clear: function() {
        var e = document.cookie.match(new RegExp("([^ ;][^;]*)(?=(=[^;]*)(;|$))", "gi"));
        for (var t in e) document.cookie = e[t] + "=;expires=Mon, 26 Jul 1997 05:00:00 GMT; path=/; "
    },
    uin: function() {
        var e = $.cookie.get("uin");
        return e ? parseInt(e.substring(1, e.length), 10) : null
    },
    getNewUin: function() {
        var e = $.winName.get("last_page");
        $.winName.set("last_page", 0);
        var t = $.cookie.get("_new_uin");
        return t || (t = $.winName.get("_new_uin")),
        t && "undefined" != t || (1 == e && $.report.monitor("no_uin"), window.location.href = "error.html?ec=no"),
        $.html.encode(t)
    },
    getEmail: function() {
        var e = $.cookie.get("_email");
        return e || (e = $.winName.get("_email")),
        e || ($.report.monitor("no_email"), window.location.href = "error.html?ec=no"),
        $.html.encode(e)
    }
},
$.http = {
    getXHR: function() {
        var e;
        try {
            e = new XMLHttpRequest
        } catch(t) {
            try {
                e = new ActiveXObject("Msxml2.XMLHTTP")
            } catch(n) {
                try {
                    e = new ActiveXObject("Microsoft.XMLHTTP")
                } catch(i) {
                    e = !1
                }
            }
        }
        return e
    },
    ajax: function(url, para, cb, method, type, headers) {
        var xhr = $.http.getXHR();
        if (xhr) {
            xhr.open(method, url);
            for (var name in headers) headers.hasOwnProperty(name) && xhr.setRequestHeader(name, headers[name]);
            xhr.onreadystatechange = function() {
                4 == xhr.readyState && (xhr.status >= 200 && xhr.status < 300 || 304 === xhr.status || 1223 === xhr.status || 0 === xhr.status) && (cb("undefined" == typeof type ? eval("(" + xhr.responseText + ")") : xhr.responseText), xhr.onreadystatechange = function() {},
                xhr = null)
            },
            xhr.send(para)
        }
    },
    post: function(e, t, n, i) {
        var o = "";
        for (var r in t) o += r + "=" + t[r] + "&";
        $.http.ajax(e, o, n, "POST", i, {
            "Content-Type": "application/x-www-form-urlencoded"
        })
    },
    get: function(e, t, n, i) {
        var o = "";
        for (var r in t) o += r + "=" + t[r] + "&"; - 1 == e.indexOf("?") && (e += "?"),
        "&" !== e[e.length - 1] && (e += "&"),
        e += o,
        $.http.ajax(e, null, n, "GET", i)
    },
    jsonp: function(e) {
        var t = document.createElement("script");
        t.src = e,
        document.getElementsByTagName("head")[0].appendChild(t)
    },
    loadScript: function(e, t) {
        var n = document.createElement("script");
        n.onload = n.onreadystatechange = function() {
            this.readyState && "loaded" !== this.readyState && "complete" !== this.readyState || (t(), n.onload = n.onreadystatechange = null, n.parentNode && n.parentNode.removeChild(n))
        },
        n.src = e,
        document.getElementsByTagName("head")[0].appendChild(n)
    },
    preload: function(e) {
        var t = document.createElement("img");
        t.src = e
    }
},
$.get = $.http.get,
$.post = $.http.post,
$.browser = function(e) {
    if ("undefined" == typeof $.browser.info) {
        var t = {
            type: ""
        },
        n = navigator.userAgent.toLowerCase();
        /webkit/.test(n) ? t = {
            type: "webkit",
            version: /webkit[\/ ]([\w.]+)/
        }: /opera/.test(n) ? t = {
            type: "opera",
            version: /version/.test(n) ? /version[\/ ]([\w.]+)/: /opera[\/ ]([\w.]+)/
        }: /msie/.test(n) ? t = {
            type: "msie",
            version: /msie ([\w.]+)/
        }: /mozilla/.test(n) && !/compatible/.test(n) && (t = {
            type: "ff",
            version: /rv:([\w.]+)/
        }),
        t.version = (t.version && t.version.exec(n) || [0, "0"])[1],
        $.browser.info = t
    }
    return $.browser.info[e]
},
$.e = {
    _counter: 0,
    _uid: function() {
        return "h" + $.e._counter++
    },
    add: function(e, t, n) {
        if ("object" != typeof e && (e = $(e)), document.addEventListener) e.addEventListener(t, n, !1);
        else if (document.attachEvent) {
            if ( - 1 != $.e._find(e, t, n)) return;
            var i = function(t) {
                t || (t = window.event);
                var i = {
                    _event: t,
                    type: t.type,
                    target: t.srcElement,
                    currentTarget: e,
                    relatedTarget: t.fromElement ? t.fromElement: t.toElement,
                    eventPhase: t.srcElement == e ? 2 : 3,
                    clientX: t.clientX,
                    clientY: t.clientY,
                    screenX: t.screenX,
                    screenY: t.screenY,
                    altKey: t.altKey,
                    ctrlKey: t.ctrlKey,
                    shiftKey: t.shiftKey,
                    keyCode: t.keyCode,
                    stopPropagation: function() {
                        this._event.cancelBubble = !0
                    },
                    preventDefault: function() {
                        this._event.returnValue = !1
                    }
                };
                Function.prototype.call ? n.call(e, i) : (e._currentHandler = n, e._currentHandler(i), e._currentHandler = null)
            };
            e.attachEvent("on" + t, i);
            var o = {
                element: e,
                eventType: t,
                handler: n,
                wrappedHandler: i
            },
            r = e.document || e,
            a = r.parentWindow,
            d = $.e._uid();
            a._allHandlers || (a._allHandlers = {}),
            a._allHandlers[d] = o,
            e._handlers || (e._handlers = []),
            e._handlers.push(d),
            a._onunloadHandlerRegistered || (a._onunloadHandlerRegistered = !0, a.attachEvent("onunload", $.e._removeAllHandlers))
        }
    },
    remove: function(e, t, n) {
        if (document.addEventListener) e.removeEventListener(t, n, !1);
        else if (document.attachEvent) {
            var i = $.e._find(e, t, n);
            if ( - 1 == i) return;
            var o = e.document || e,
            r = o.parentWindow,
            a = e._handlers[i],
            d = r._allHandlers[a];
            e.detachEvent("on" + t, d.wrappedHandler),
            e._handlers.splice(i, 1),
            delete r._allHandlers[a]
        }
    },
    _find: function(e, t, n) {
        var i = e._handlers;
        if (!i) return - 1;
        for (var o = e.document || e,
        r = o.parentWindow,
        a = i.length - 1; a >= 0; a--) {
            var d = i[a],
            c = r._allHandlers[d];
            if (c.eventType == t && c.handler == n) return a
        }
        return - 1
    },
    _removeAllHandlers: function() {
        var e = this;
        for (id in e._allHandlers) {
            var t = e._allHandlers[id];
            t.element.detachEvent("on" + t.eventType, t.wrappedHandler),
            delete e._allHandlers[id]
        }
    },
    src: function(e) {
        return e ? e.target: event.srcElement
    },
    stopPropagation: function(e) {
        e ? e.stopPropagation() : event.cancelBubble = !0
    }
},
$.bom = {
    query: function(e) {
        var t = window.location.search.substr(1).match(new RegExp("(^|&)" + e + "=([^&]*)(&|$)"));
        return t ? decodeURIComponent(t[2]) : ""
    },
    getHash: function() {}
},
$.dom = {
    init: function() {
        window.screenLeft ? ($.dom.getWindowX = function() {
            return window.screenLeft
        },
        $.dom.getWindowY = function() {
            return window.screenTop
        }) : window.screenX && ($.dom.getWindowX = function() {
            return window.screenX
        },
        $.dom.getWindowY = function() {
            return window.screenY
        }),
        window.innerWidth ? ($.dom.getViewportWidth = function() {
            return window.innerWidth
        },
        $.dom.getViewportHeight = function() {
            return window.innerHeight
        },
        $.dom.getHorizontalScroll = function() {
            return window.pageXOffset
        },
        $.dom.getVerticalScroll = function() {
            return window.pageYOffset
        }) : document.documentElement && document.documentElement.clientWidth && ($.dom.getViewportWidth = function() {
            return document.documentElement.clientWidth
        },
        $.dom.getViewportHeight = function() {
            return document.documentElement.clientHeight
        },
        $.dom.getHorizontalScroll = function() {
            return document.documentElement.scrollLeft
        },
        $.dom.getVerticalScroll = function() {
            return document.documentElement.scrollTop
        }),
        document.documentElement && document.documentElemnet.scrollWidth ? ($.dom.getDocumentWidth = function() {
            return document.documentElement.scrollWidth
        },
        $.dom.getDocumentHeight = function() {
            return document.documentElement.scrollHeight
        }) : document.body.scrollWidth && ($.dom.getDocumentWidth = function() {
            return document.body.scrollWidth
        },
        $.dom.getDocumentHeight = function() {
            return document.body.scrollHeight
        })
    },
    getFinalStyle: function(e, t) {
        return window.getComputedStyle ? window.getComputedStyle(e, null)[t] : e.currentStyle ? e.currentStyle[t] : e.style[t]
    },
    height: function(e) {
        if ("none" !== this.getFinalStyle(e, "display")) return e.offsetHeight || e.clientHeight;
        e.style.display = "block";
        var t = e.offsetHeight || e.clientHeight;
        return e.style.display = "none",
        t
    },
    width: function(e) {
        if ("none" !== this.getFinalStyle(e, "display")) return e.offsetWidth || e.clientWidth;
        e.style.display = "block";
        var t = e.offsetWidth || e.clientWidth;
        return e.style.display = "none",
        t
    },
    getPageWidth: function() {
        return Math.max(document.documentElement.clientWidth, document.body.clientWidth, document.documentElement.scrollWidth, document.body.scrollWidth)
    },
    getPageHeight: function() {
        return Math.max(document.documentElement.clientHeight, document.body.clientHeight, document.documentElement.scrollHeight, document.body.scrollHeight)
    },
    getNode: function(e, t) {
        var n = document.createElement(e),
        i = {
            "class": function() {
                n.className = t["class"]
            },
            style: function() {
                n.style.cssText = t.style
            }
        };
        for (var o in t) i[o] ? i[o]() : n.setAttribute(o, t[o]);
        return n
    }
},
$.css = {
    hasClass: function(e, t) {
        var n = new RegExp("\\b" + t + "\\b");
        return n.test(e.className)
    },
    addClass: function(e, t) {
        this.hasClass(e, t) || (e.className = e.className + " " + t)
    },
    removeClass: function(e, t) {
        var n = new RegExp("\\b" + t + "\\b");
        e.className = e.className.replace(n, "")
    },
    getWidth: function(e) {
        return $(e).offsetWidth
    },
    getHeight: function(e) {
        return $(e).offsetHeight
    },
    show: function(e) {
        $.css.removeClass(e, "hide")
    },
    hide: function(e) {
        $.css.addClass(e, "hide")
    }
},
$.set = function(e, t, n) {
    return n ? void 0 : e.getAttribute(t)
},
$.winName = {
    set: function(e, t) {
        var n = window.name || "";
        window.name = n.match(new RegExp(";" + e + "=([^;]*)(;|$)")) ? n.replace(new RegExp(";" + e + "=([^;]*)"), ";" + e + "=" + t) : n + ";" + e + "=" + t
    },
    get: function(e) {
        var t = window.name || "",
        n = t.match(new RegExp(";" + e + "=([^;]*)(;|$)"));
        return n ? n[1] : ""
    },
    clear: function(e) {
        var t = window.name || "";
        window.name = t.replace(new RegExp(";" + e + "=([^;]*)"), "")
    }
},
$.str = {
    getBytes: function(e) {
        return e.replace(/[^\x00-\xff]/g, "xx").length
    }
},
$.html = {
    encode: function(e) {
        var t = "";
        return 0 == e.length ? "": t = e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/ /g, "&nbsp;").replace(/'/g, "&apos;").replace(/"/g, "&quot;")
    },
    decode: function(e) {
        var t = "";
        return 0 == e.length ? "": t = e.replace(/&amp;/g, "&").replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&nbsp;/g, " ").replace(/&apos;/g, "'").replace(/&quot;/g, '"')
    }
},
$.oop = {
    extend: function(e) {
        var t, n = function(e) {
            return e && "[object HTMLDivElement]" !== String(e) && e.constructor === Object || "[object Object]" === String(e)
        },
        i = function(e) {
            return e && "[object HTMLDivElement]" !== String(e) && e.constructor === Array || "[object Array]" === Object.prototype.toString.call(e)
        },
        o = function(e) {
            return e && e.constructor === Function
        };
        1 == arguments.length ? (e = this, t = 0) : (e = arguments[0], t = 1);
        var r = !0;
        for ("boolean" == typeof arguments[arguments.length - 1] && (r = arguments[arguments.length - 1]); t < arguments.length;) {
            var a = arguments[t];
            for (p in a) {
                var d = e[p],
                c = a[p];
                d !== c && (r && c && n(c) && !i(c) && !c.nodeType && !o(c) ? (d = e[p] || {},
                e[p] = $.oop.extend(d, c || (null == c.length ? {}: []))) : void 0 !== c && (e[p] = c))
            }
            t++
        }
        return e
    },
    Class: function() {
        var e = arguments.length,
        t = arguments[e - 1];
        t.init = t.init ||
        function() {};
        var n = function() {
            return this.init.apply(this, arguments)
        };
        if (2 === e) {
            var i = arguments[0].extend,
            o = function() {};
            o.prototype = i.prototype,
            n.superClass = i.prototype,
            n.callSuper = function(e, t) {
                var i = Array.prototype.slice,
                o = i.call(arguments, 2);
                t = n.superClass[t],
                t && t.apply(e, o.concat(i.call(arguments)))
            },
            n.prototype = new o,
            n.prototype.constructor = n,
            $.oop.extend(n.prototype, t),
            n.prototype.init = function() {
                t.init.apply(this, arguments)
            }
        } else 1 === e && (n.prototype = t);
        return n
    },
    bind: function(e, t) {
        var n = Array.prototype.slice,
        i = n.call(arguments, 2);
        return function() {
            return e.apply(t, i.concat(n.call(arguments)))
        }
    },
    addObserver: function(e, t, n) {
        if (n) {
            t = "on" + t,
            e._$events || (e._$events = {}),
            t in e._$events ? 0 == e._$events[t].length && (e._$events[t] = []) : e._$events[t] = [];
            for (var i = e._$events[t], o = -1, r = 0, a = i.length; a > r; r++) if (i[r] == n) {
                o = r;
                break
            } - 1 === o && i.push(n)
        }
    },
    notifyObservers: function(e, t, n) {
        var i = !0;
        if (t = "on" + t, e._$events && e._$events[t]) {
            for (var o = $.oop.extend([], e._$events[t]), r = 0, a = o.length; a > r; r++) {
                var d = o[r].apply(e, [n]);
                d === !1 && (i = !1)
            }
            o = null
        }
        return i
    },
    removeObserver: function(e, t, n) {
        var i, o, r = !1,
        a = e._$events;
        if (n && t) {
            if (a && (evts = a["on" + t])) for (i = 0, o = evts.length; o > i; i++) if (evts[i] == n) {
                evts[i] = null,
                evts.splice(i, 1),
                r = !0;
                break
            }
        } else if (t) {
            if (a && (t = "on" + t, evts = a[t])) {
                for (o = evts.length, i = 0; o > i; i++) evts[i] = null;
                delete a[t],
                r = !0
            }
        } else if (e && a) {
            for (i in a) delete a[i];
            delete e._$events,
            r = !0
        }
        return r
    }
},
g = {
    searchValue: __("g_search_value", "输入想要的4-10位数"),
    searchTip: __("g_search_tip", "请输入4-10位数字"),
    cacheUrl: "",
    ver: __("_js_version", ""),
    component: {},
    searchBlur: function(e) {
        "" == e.value && (e.value = g.searchValue, e.style.color = "#aaa")
    },
    searchFocus: function(e) {
        e.value == g.searchValue && (e.value = "", e.style.color = "#000")
    },
    phoneClick: function(e) {
        e ? ($("quickReg").style.display = "block", $("switcher").className = "hover", $.report.monitor("phone_zc")) : ($("quickReg").style.display = "none", $("switcher").className = "normal")
    },
    formSubmit: function(e) {
        var t = $("serch_ipt").value;
        return /^[0-9]{4,10}$/.test(t) ? (window.open("http://haoma.qq.com/shop.html#num=" + $("serch_ipt").value + "&from=zc"), $.report.monitor("search_qq"), !1) : (alert(g.searchTip), !1)
    },
    init: function() {
        $("serch_ipt") && ($("serch_ipt").value = g.searchValue)
    },
    checkVersion: function() {
        var e = document.createElement("script");
        e.src = "ver.js?v=" + Math.random(),
        document.getElementsByTagName("head")[0].appendChild(e)
    },
    clearCache: function(e) {
        var t = document.createElement("iframe");
        t.src = "clearcache.html#" + e,
        t.style.display = "none",
        document.body.appendChild(t)
    },
    cb: function(e) {
        e != g.ver && g.clearCache(window.location + "")
    },
    getQQnum: function() {
        try {
            if (window.ActiveXObject) {
                var e = new ActiveXObject("SSOAxCtrlForPTLogin.SSOForPTLogin2"),
                t = e.CreateTXSSOData();
                e.InitSSOFPTCtrl(0, t);
                var n = e.CreateTXSSOData(),
                i = e.DoOperation(2, n),
                o = i.GetArray("PTALIST"),
                r = o.GetSize();
                if (r > 0) return r
            } else if (navigator.mimeTypes["application/nptxsso"]) {
                var a = document.createElement("embed");
                a.type = "application/nptxsso",
                a.style.width = "0px",
                a.style.height = "0px",
                document.body.appendChild(a);
                var d = a.InitPVANoST();
                if (d) {
                    var c = a.GetPVACount();
                    if (c > 0) return c
                }
            }
        } catch(l) {
            return 0
        }
        return 0
    },
    openHaoma: function(e) {
        switch (e) {
        case 1:
            $.report.monitor("birthday_qq"),
            window.open("http://haoma.qq.com/shop.html#topic=date&from=zc");
            break;
        case 2:
            $.report.monitor("love_qq"),
            window.open("http://haoma.qq.com/shop.html#topic=love&from=zc");
            break;
        case 3:
            $.report.monitor("grade_qq"),
            window.open("http://haoma.qq.com/static/gno/grade/grade_index.html");
            break;
        case 4:
            $.report.monitor("year_qq"),
            window.open("http://haoma.qq.com/shop.html#topic=date&from=zc");
            break;
        case 5:
            $.report.monitor("mobile_qq"),
            window.open("http://haoma.qq.com/shop.html#topic=phone&from=zc");
            break;
        case 6:
            $.report.monitor("fine_qq"),
            window.open("http://haoma.qq.com/static/gno/mobile/mobile_index.html");
            break;
        case 7:
            $.report.monitor("tianyi"),
            window.open("http://chinatelecom.zc.qq.com/")
        }
    }
},
g.init(),
g.checkVersion(),
g.component.quickReg = $("quickReg") ? !0 : !1,
$.e.add(window, "load",
function() {
    g.component.quickReg && ($.e.add($("switcher"), "click",
    function(e) {
        var t = $("quickReg").style.display; ("none" == t || "" == t) && (g.phoneClick(!0), e.stopPropagation())
    }), $.e.add($("quickReg"), "click",
    function(e) {
        e.stopPropagation()
    }), $.e.add(document.body, "click",
    function(e) {
        var t = $("quickReg").style.display;
        "none" != t && "" != t && g.phoneClick(!1)
    }))
}),
String.prototype.trim = function() {
    return this.replace(/(^\s*)|(\s*$)/g, "")
},
$.report = {
    id2attr: {
        submit: {
            id: 173272,
            tag: "0xD001"
        },
        guard: {
            id: 173273,
            tag: "0xD002"
        },
        sendToLocal: {
            id: 173274
        },
        sendToEmail: {
            id: 173275
        },
        numReg: {
            id: 173276
        },
        phoneReg: {
            id: 239277
        },
        QQMailReg: {
            id: 173277
        },
        otherMailReg: {
            id: 173278
        },
        pv: {
            id: 173279
        },
        pv_all: {
            id: 260714
        },
        pv_chs: {
            id: 278037
        },
        pv_cht: {
            id: 278038
        },
        pv_en: {
            id: 278039
        },
        verifyChangeTel: {
            id: 239278
        },
        verifyUpChangeTel: {
            id: 239279
        },
        hasbindChangeTel: {
            id: 239280
        },
        tianyiChangeTel: {
            id: 239281
        },
        paopao: {
            id: 239282
        },
        phoneRegSubmitBtn: {
            id: 241143
        },
        phoneGetVerimaBtn: {
            id: 241144
        },
        phoneGetVerimaAgainBtn: {
            id: 241145
        },
        phoneSubmitVerimaBtn: {
            id: 241146
        },
        phoneVerifyNowBtn: {
            id: 241148
        },
        phoneVerifyAgainBtn: {
            id: 241149
        },
        phoneVerifyUpSubmitLimit: {
            id: 241150
        },
        phoneHasbindPage: {
            id: 241152
        },
        phoneChangebindPage: {
            id: 241153
        },
        phoneOKLogin: {
            id: 241155
        },
        phoneSetGuard: {
            id: 241156
        },
        qqGetVerimaBtn: {
            id: 241157
        },
        qqSubmitVerimaBtn: {
            id: 241158
        },
        qqVerifyBindPhone: {
            id: 241159
        },
        qqVerifyNowBtn: {
            id: 241160
        },
        qqVerifyUpBindPhone: {
            id: 241161
        },
        qqHasbindPage: {
            id: 241162
        },
        qqChangebindPage: {
            id: 241163
        },
        a_qq: {
            id: 173280,
            tag: "0xD011"
        },
        a_weibo: {
            id: 173281,
            tag: "0xD012"
        },
        a_qzone: {
            id: 173282,
            tag: "0xD013"
        },
        a_email: {
            id: 173283,
            tag: "0xD0014"
        },
        a_game: {
            id: 173284,
            tag: "0xD015"
        },
        a_pengyou: {
            id: 173285,
            tag: "0xD016"
        },
        a_vip: {
            id: 173286,
            tag: "0xD017"
        },
        b_phoneqq: {
            id: 173292
        },
        b_vip: {
            id: 173294
        },
        b_email: {
            id: 173293
        },
        b_pengyou: {
            id: 173295
        },
        b_qzone: {
            id: 173296
        },
        b_qshow: {
            id: 173297
        },
        b_music: {
            id: 173298
        },
        b_pet: {
            id: 173299
        },
        b_qlive: {
            id: 173300
        },
        b_lol: {
            id: 173301
        },
        b_x5: {
            id: 173302
        },
        b_weibo: {
            id: 173303
        },
        b_style: {
            id: 173304
        },
        b_mq: {
            id: 173305
        },
        b_dnf: {
            id: 173306
        },
        b_qplus: {
            id: 173307
        },
        b_tenpay: {
            id: 173308
        },
        b_speed: {
            id: 173309
        },
        b_qtalk: {
            id: 173310
        },
        b_qqgame: {
            id: 173311
        },
        ad_style: {
            id: 173318
        },
        ad_pai: {
            id: 173319
        },
        ad_guanjia_7x: {
            id: 173320
        },
        404 : {
            id: 181790
        },
        500 : {
            id: 181791
        },
        no_uin: {
            id: 181922
        },
        no_email: {
            id: 181923
        },
        no_param: {
            id: 181924
        },
        no_sessionCookie: {
            id: 182166
        },
        no_uin_ie: {
            id: 182855
        },
        no_uin_ff: {
            id: 182856
        },
        no_uin_chrome: {
            id: 182857
        },
        no_uin_opera: {
            id: 182858
        },
        no_uin_safari: {
            id: 182859
        },
        cookie_disable: {
            id: 183612
        },
        search_qq: {
            id: 182032
        },
        birthday_qq: {
            id: 182033
        },
        love_qq: {
            id: 182034
        },
        grade_qq: {
            id: 182035
        },
        year_qq: {
            id: 182036
        },
        mobile_qq: {
            id: 182037
        },
        fine_qq: {
            id: 182038
        },
        phone_zc: {
            id: 182176
        },
        tianyi: {
            id: 182177
        },
        resendLink: {
            id: 183518
        },
        renewLink: {
            id: 183517
        },
        helpFriend: {
            id: 183617
        },
        weakPwd: {
            id: 228591
        },
        midPwd: {
            id: 228592
        },
        strongPwd: {
            id: 228593
        },
        QQHuiyuan: {
            id: 232857
        },
        noPhone: {
            id: 249241
        },
        phone_to_number: {
            id: 250660
        },
        phone_to_noPhone: {
            id: 250661
        },
        phone_to_mail: {
            id: 250662
        },
        phone_to_submit: {
            id: 250663
        },
        phone_count: {
            id: 250667
        },
        number_to_phone_wording: {
            id: 250763
        },
        email_count: {
            id: 252155
        },
        email_to_number: {
            id: 252156
        },
        email_to_number_wording: {
            id: 252194
        },
        email_to_phone: {
            id: 252157
        },
        email_to_qqmail: {
            id: 252158
        },
        email_to_submit: {
            id: 252159
        },
        number_count: {
            id: 252190
        },
        number_to_phone: {
            id: 252191
        },
        number_to_mail: {
            id: 252192
        },
        number_to_submit: {
            id: 252193
        },
        cancleqqVerifyBindPhone: {
            id: 254605
        },
        cancleqqVerifyUpBindPhone: {
            id: 254606
        },
        init_number_to_submit: {
            id: 256401
        },
        init_email_to_submit: {
            id: 256402
        },
        init_phone_to_submit: {
            id: 256403
        },
        qqtab_bind_email_bind: {
            id: 259735
        },
        qqtab_bind_email_active: {
            id: 259736
        },
        qqtab_bind_email_lose_login: {
            id: 259737
        },
        qqtab_bind_phone_bind: {
            id: 259738
        },
        qqtab_bind_phone_active: {
            id: 259739
        },
        qqtab_bind_phone_send: {
            id: 259740
        },
        qqtab_bind_phone_conflict: {
            id: 259741
        },
        qqtab_bind_phone_vcode_error: {
            id: 259742
        },
        bindPhone_test1: {
            id: 265572
        },
        bindPhone_test2: {
            id: 265573
        },
        bindPhone_test3: {
            id: 265574
        },
        bindPhone_test4: {
            id: 265575
        },
        bindPhone_test5: {
            id: 265576
        },
        bindEmail_test1: {
            id: 265577
        },
        bindEmail_test2: {
            id: 265578
        },
        bindEmail_test3: {
            id: 265579
        },
        bindEmail_test4: {
            id: 265580
        },
        bindEmail_test5: {
            id: 265581
        },
        sea_phone_pv: {
            id: 312410
        }
    },
    transform: function(e) {
        if (!e) return "";
        var t = [];
        for (var n in e) t.push(n),
        t.push("="),
        t.push(e[n]),
        t.push("&");
        return t.join("")
    },
    monitor: function(e, t) {
        var n = "http://zc.qq.com/cgi-bin/common/attr?" + this.transform(this.id2attr[e]) + this.transform(t) + "r=" + Math.random();
        $.http.preload(n)
    },
    isd: function(e) {
        var t = [1, 3, 4];
        if (! (Math.random() > .1)) {
            for (var n = ["http://isdspeed.qq.com/cgi-bin/r.cgi?flag1=7817&flag2=2&flag3=2"], i = e[0], o = 0, r = t.length; r > o; o++) n.push("&"),
            n.push(t[o]),
            n.push("="),
            n.push(e[o + 1] - i);
            $.http.preload(n.join(""))
        }
    },
    isdPwdTime: function(e) {
        for (var t = [1, 2, 3, 4], n = ["http://isdspeed.qq.com/cgi-bin/r.cgi?flag1=7817&flag2=2&flag3=3"], i = 0, o = t.length; o > i; i++) e[i] > 0 && (n.push("&"), n.push(t[i]), n.push("="), n.push(e[i]));
        $.http.preload(n.join(""))
    }
},
"chs" === $GLOBALS.lang && $.oop.extend($.report.id2attr, {
    l_pv: {
        id: 459776
    },
    l_enter_a: {
        id: 459795
    },
    l_enter_a_click: {
        id: 459796
    },
    l_enter_b: {
        id: 459797
    },
    l_enter_b_l_click: {
        id: 459798
    },
    l_enter_b_f_click: {
        id: 459799
    },
    l_f_pv: {
        id: 459800
    },
    l_f_banner: {
        id: 459801
    },
    l_index_pv: {
        id: 459802
    },
    l_pic_show: {
        id: 459803
    },
    l_pic_right: {
        id: 459804
    },
    l_pic_close: {
        id: 459805
    },
    l_stop_show: {
        id: 459806
    },
    l_stop_to_f: {
        id: 459807
    },
    l_getnum_err: {
        id: 459809
    },
    l_getnum_err_to_f: {
        id: 459810
    },
    l_phone_has_join: {
        id: 459812
    },
    l_reg_fri_num: {
        id: 459813
    },
    l_reg_change_num: {
        id: 459814
    },
    l_reg_btn: {
        id: 459815
    },
    l_reg_succ: {
        id: 459816
    },
    l_reg_fail: {
        id: 459817
    },
    l_reg_time_out: {
        id: 459818
    },
    l_under_banner_link: {
        id: 459820
    },
    l_rule_link: {
        id: 459821
    },
    l_feature_link: {
        id: 459822
    },
    l_succ_down_link: {
        id: 459823
    },
    l_succ_sq_link: {
        id: 459825
    },
    a_p_pv: {
        id: 462972
    },
    a_p_banner: {
        id: 462973
    },
    a_p_phone_pv: {
        id: 462974
    },
    a_p_phone_banner: {
        id: 462975
    },
    a_p_mail_pv: {
        id: 462976
    },
    a_p_mail_banner: {
        id: 462977
    },
    a_l_reg_num: {
        id: 462978
    },
    a_p_reg_num: {
        id: 462979
    },
    b_p_pv: {
        id: 462980
    },
    b_p_banner: {
        id: 462981
    },
    b_p_phone_pv: {
        id: 462982
    },
    b_p_phone_banner: {
        id: 462983
    },
    b_p_mail_pv: {
        id: 462984
    },
    b_p_mail_banner: {
        id: 462985
    },
    b_l_reg_num: {
        id: 462986
    },
    b_p_reg_num: {
        id: 462987
    },
    c_p_pv: {
        id: 462988
    },
    c_p_banner: {
        id: 462989
    },
    c_p_phone_pv: {
        id: 462990
    },
    c_p_phone_banner: {
        id: 462991
    },
    c_p_mail_pv: {
        id: 462992
    },
    c_p_mail_banner: {
        id: 462993
    },
    c_l_reg_num: {
        id: 462994
    },
    c_p_reg_num: {
        id: 462995
    },
    c_p: {
        id: 462999
    },
    a_cover_close: {
        id: 467987
    },
    num_with_phone: {
        id: 623929
    },
    num_without_phone: {
        id: 623930
    },
    mail_with_phone: {
        id: 623931
    },
    mail_without_phone: {
        id: 623932
    },
    num_with_phone_succ: {
        id: 626507
    },
    mail_with_phone_succ: {
        id: 626508
    },
    index_send_sms: {
        id: 630744
    },
    index_send_sms_succ: {
        id: 630745
    }
}),
function() {
    var e = "nohost_guid",
    t = "/nohost_htdocs/js/SwitchHost.js";
    "" != $.cookie.get(e) && $.http.loadScript(t,
    function() {
        var e = window.SwitchHost && window.SwitchHost.init;
        e && e()
    })
} (),
$.e.add(window, "load",
function() {
    $.report.monitor("pv_all"),
    "chs" == $GLOBALS.lang && $.report.monitor("pv_chs"),
    "cht" == $GLOBALS.lang && $.report.monitor("pv_cht"),
    "en" == $GLOBALS.lang && $.report.monitor("pv_en"),
    $.report.monitor("pv")
});
//# sourceMappingURL=simple.js.ma
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值