The next example, uses an IP Address to over-ride the location of the page. This first one is using a Geobytes Location Code as the over-ride. Here are some examples of using the location over-ride – once again using this pages URL as a demo. If you replace the above single line of code discussed above with the code below, then you can override the location that the script uses by appending the “location parameter” to your page URL. How do I see what it would look like from other locations? Or a fully qualified city name – as in this example:īTW If you would like to see a live real life example, then view the source of this page, as this is how the sample data in the above table is being populated. In addition to Geobytes Location Code ( which you can lookup here), you can also use an IP Address – as in this example: The default location – if you don’t set this parameter is New York, however, you can set it to other locations via the “defaultlocation” parameter as shown in this example: The given country’s title as it would appear in a sentence.Ī variable used to indicate that the connection is being made by a Proxy.Ī variable used to indicate that the user is connecting via a ProxyNetwork (AOL or MSN TV).Īll that you need to do is place this piece of code at the bottom of your page, and then insert the place holder from the above table in your page content where you would like your site visitor’s location information to appear.įinally, there is one optional parameter that you can use to set the location that the script uses, in the 1% or so of cases where our server is unable to determine your site visitor’s location. The plural expression of a given countries nationality. The singular expression of a given countries nationality. The major reference point in the world of the given country. The “Number” column in the ISO 3166 document. The “A 3” column in the ISO 3166 document. The “A 2” column in the ISO 3166 document.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |