|

楼主 |
发表于 2013-10-12 00:50:31
|
显示全部楼层
湖南省长沙市
这段代码。获取的cguid值是多少啊。- <script type="text/javascript">var OLDDOMAIN = "139.com", NEWDOMAIN = "10086.cn", LIGHTSERVERDOMAIN = "images.139cm.com", BehaviorLog = "http://smsrebuild1.mail." + NEWDOMAIN + "/weather/weather?func=user:logBehaviorAction", https_Url = "https://mail." + NEWDOMAIN, imagesCodeDomain = "imagecode.mail." + NEWDOMAIN, localhref = window.location.href;
- /.*rd\./.test(localhref) ? (NEWDOMAIN = "10086rd.cn", https_Url = "http://mail." + NEWDOMAIN, BehaviorLog = "http://app.mail." + NEWDOMAIN + "/mw2/weather/weather?func=user:logGetBehaviorAction", imagesCodeDomain = "imagecode.mail." + NEWDOMAIN + ":10080/getimage?clientid=1&") : /.*ts\./.test(localhref) ? (NEWDOMAIN = "10086ts.cn", https_Url = "http://mail." + NEWDOMAIN, BehaviorLog = "http://rm.mail." + NEWDOMAIN + "/mw2/weather/weather?func=user:logGetBehaviorAction", imagesCodeDomain = "pvcnew.mail." +
- NEWDOMAIN + ":20080/getimage?clientid=1&") : /login\./.test(localhref) && (https_Url = "http://login.mail." + NEWDOMAIN);
- try {
- document.domain = window.location.host.match(/[^.]+\.[^.]+$/)[0], resettingTop()
- }catch(e$$12) {
- try {
- document.domain = window.location.host.match(/[^.]+\.[^.]+$/)[0], resettingTop()
- }catch(e$$13) {
- }
- }
- function getCGUID() {
- function a(a, b) {
- var e = (b || 2) - (1 + Math.floor(Math.log(a | 1) / Math.LN10 + 1E-15));
- return Array(e + 1).join("0") + a
- }
- var b = new Date;
- return"" + a(b.getHours()) + a(b.getMinutes()) + a(b.getSeconds()) + a(b.getMilliseconds(), 3) + a(Math.ceil(9999 * Math.random()), 4)
- }
- function resettingTop() {
- window.top != window && (window.top.location.href = "http://mail." + NEWDOMAIN + "/?r=iframe")
- }
- function statisticAdapter(a) {
- (new Image).src = [BehaviorLog, "&key=", a, "&version=m2012&cguid=", window.getCGUID()].join("")
- }
- (function() {
- -1 < window.top.location.href.indexOf("customer") && statisticAdapter("login_desklink")
- })();
- try {
- var domain = location.host;
- if(-1 < domain.indexOf(OLDDOMAIN)) {
- try {
- statisticAdapter("login_from139")
- }catch(e$$14) {
- }
- document.domain = window.location.host.match(/[^.]+\.[^.]+$/)[0];
- location.href = "http://mail." + NEWDOMAIN + "/" + location.search
- }
- }catch(e$$15) {
- }
复制代码 |
|