function SetCookieValue(_Name,_Value,_Expires,_Type){ var _LargeExpDate = new Date(); if(typeof(_Expires)=='number' && isNaN(_Expires)==false) { if(_Expires!=0) { if(typeof(_Type)=='number' && isNaN(_Type)==false && _Type==1){ _LargeExpDate.setTime(_LargeExpDate.getTime()+(_Expires*1000)); }else{ _LargeExpDate.setTime(_LargeExpDate.getTime()+(_Expires*24*3600*1000)); } }else{ _LargeExpDate = null; } }else{ _LargeExpDate.setTime(_LargeExpDate.getTime()+(36500*24*3600*1000)); } document.cookie = _Name+"="+escape(_Value)+(_LargeExpDate!=null?";expires="+_LargeExpDate.toGMTString():"")+";domain=.oeeee.com"; } function GetCookieValue(_Name) { var _search = _Name + "="; if (document.cookie.length > 0) { var _offset = document.cookie.indexOf(_search); if (_offset != -1) { _offset += _search.length; var _end = document.cookie.indexOf(";", _offset); if (_end == -1) _end = document.cookie.length; var _cook = document.cookie.substring(_offset, _end); return _cook.match(/%u/ig) ? unescape(_cook) : decodeURIComponent(_cook); } else return ''; } } var cityhome = GetCookieValue('cityhome'); var cur = window.location.hostname.split('.')[0]; if(cityhome == null || !cityhome) { $.get('/api/m.php?s=/Position/getIp', function(res) { SetCookieValue("cityhome", res.data.city , 0.5); if(cur != res.data.city) { window.location.href = 'http://' + res.data.city + '.oeeee.com'; } }); }else { if(cityhome !== 'www') { window.location.href = 'http://' + cityhome + '.oeeee.com'; } } (function(w){ if(window.location.href.indexOf('#')!=-1) { if(window.location.href.split('#')[1]=='src=pc') {return false;} } else if(/iphone|samsung|HTC|android/i.test(navigator.userAgent.toLowerCase())){ w.location.href = 'http://3g.oeeee.com'; } })(window);
广告 Ads
专题
专题
今日报纸 ePaper订报
2018-05-21
周榜 Top
  • 站内
  • 见报
小南机器人更多
report
意见反馈