Xander Posted July 24, 2012 Report Posted July 24, 2012 (edited) <script language="JavaScript" src="http://j.maxmind.com/app/geoip.js"></script><br>Country Code:<script language="JavaScript">document.write(geoip_country_code());</script><br>Country Name:<script language="JavaScript">document.write(geoip_country_name());</script><br>City:<script language="JavaScript">document.write(geoip_city());</script><br>Region:<script language="JavaScript">document.write(geoip_region());</script><br>Region Name:<script language="JavaScript">document.write(geoip_region_name());</script><br>Latitude:<script language="JavaScript">document.write(geoip_latitude());</script><br>Longitude:<script language="JavaScript">document.write(geoip_longitude());</script><br>Postal Code:<script language="JavaScript">document.write(geoip_postal_code());</script>sursa: http://www.maxmind.com/app/javascript_city Teoretic cica ar trebui sa pui link catre maxmind daca il folosesti pe site dar nu cred ca stau sa verifice...EDIT:uz posibil: <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> $(function() { ( detect = ( function() { if(typeof geoip_country_code != "function") return setTimeout ( function() { detect(); } , 10); $.post("track.php" , { "cc": geoip_country_code(), "cn": geoip_country_name(), "ct": geoip_city(), "re": geoip_region(), "rn": geoip_region_name(), "lat": geoip_latitude(), "long": geoip_longitude(), "pc": geoip_postal_code() }); } ) )(); var _geoip = document.createElement("script"); _geoip.src = "//j.maxmind.com/app/geoip.js"; _geoip.async = true; document.body.appendChild(_geoip);});avantaje: asincron si gratis... Edited July 24, 2012 by Xander Quote