So I wanted to introduce my visitors with my name and telling them I live in “their location” to help make my sales pitch more presentable, this will be great addition to landing pages by providing a personal touch.
The script is quite simple, replace “Demo Town” with a town you would like it to say if there town can’t be read from there own location, and “Demo State “ with a state you would like.
Go ahead and copy the code and place wherever you’d like on your page, no need for any other styles, it’s based on Google
Script:
<p><em>My name is Hari Varrier – I live in <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(“Demo Town, Demo State”)
}
// –></script> and I would love some backlinks to this blog</em></p>
Demo:
My name is Hari Varrier – I live in and I would love some backlinks to this blog