Do you need help to display you visitor’s location to them like dating sites do? Use my script below which will work for JavaScript users.
Welcome <script src=”http://www.google.com/jsapi” type=”text/javascript”></script><script type=”text/javascript”><!–
if (typeof(google.loader.ClientLocation.address.city) != null) {
document.write(google.loader.ClientLocation.address.city
+”, ”
+google.loader.ClientLocation.address.region);
} else {
document.write(“New York, NY”)
}
// –></script> Visitor
The following two tabs change content below.
Stephan Pringle
Technology Support Specialist at Sipylus
About The Author: Stephan Pringle is an Information Technology Support Specialist. He covers hardware and software and provides tips for you to troubleshoot and repair issues on your own. In his spare time, he writes articles about the State of New York on his Hackintosh and HackBook and that has helped him to become the top contributor of the New York City section of Yahoo! Answers.
Latest posts by Stephan Pringle (see all)
- ADFS/CAS Time out - Thursday, September 19, 2024