CINXE.COM
<html><body> <script src="//js.3conline.com/min/temp/v1/lib-jquery1.4.2.js"></script> <script src="//js.3conline.com/pcauto/price2010/js/auto_dealers_area.js"></script> <script type="text/javascript"> var _tryTimes = 0; function getPCautoArea2(time, times, callback) { var rs = getPCautoArea(); if (rs != '') { eval(callback + "(rs)"); return; } if (_tryTimes < times) { _tryTimes++; setTimeout("getPCautoArea2(" + time + "," + times + ",'" + callback + "')", time) } else { eval(callback + "(rs)"); } } $(function () { getPCautoArea2(50, 4, 'getArea'); }); function getArea(area) {//根据IP定位城市跳转 var _areaId = area[0]; _areaId = _areaId != "" ? _areaId : 1; ipAddress(_areaId); } function getCookie(name) { var arr, reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)"); if (arr = document.cookie.match(reg)) return unescape(arr[2]); else return null; } function isInt(str) { var g = /^[1-9]*[1-9][0-9]*$/; return g.test(str); } function ipAddress(rId) { if ('0' == '0' && '128158' != '0') { var city = getCookie('locationCityMid'); var adUrl = window.location.hash; if (city != null && city != undefined) { if (isInt(city) && '0' != city) { window.location.href = '/choose/r' + city + '/m128158-c0-s30-p24/' + adUrl; } else { window.location.href = '/choose/r' + rId + '/m128158-c0-s30-p24/' + adUrl; } } else { window.location.href = '/choose/r' + rId + '/m128158-c0-s30-p24/' + adUrl; } } else { //404 window.location.href = '/autofinance/util/404.jsp'; } } </script> </body></html>