Archive for March 25, 2009

Non-self-hosted methods of getting Geo IP

External methods of getting Geo IP:

<script src=”http://promos.fling.com/geo/txt/city.php”></script>

OR

<script src=”http://promos.fling.com/geo/txt/location.php”></script>

OR

<script src=”http://j.maxmind.com/app/geoip.js”></script><script type=”text/javascript”><!– document.write(geoip_city()); // –></script>, <script type=”text/javascript”><!– document.write(geoip_region_name()); // –></script> </code>

OR

<script src=”http://www.google.com/jsapi” language=”javascript”></script><script language=”javascript”>if (google.loader.ClientLocation != null) {var gcity=google.loader.ClientLocation.address.city;var state=google.loader.ClientLocation.address.region;} else {
var gcity=’Sacramento’;
var state=’CA’;
}
</script>

need some extra JS to output gcity/state..