1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How To Auto Insert Visitors Location Into Website ??

Discussion in 'Black Hat SEO' started by bradman, Oct 6, 2009.

  1. bradman

    bradman Newbie

    Joined:
    Nov 26, 2008
    Messages:
    48
    Likes Received:
    4
    Hey dudes,

    I found this script to auto insert location into a website -- problem is i don't know how to use it! Do you have to create a .js file with this code in it, then add a piece of code on the page where you want the location to be displayed? Anyone know?

    Thanks ahead!

    <script type="text/javascript"
    src="http://www.google.com/jsapi"></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("Unknown location")
    }
    </script>