1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<html>
  <head>
    <title>Geo Test</title>
      <script type='text/javascript'>
      (function() { 
        if (typeof(googletag) =="undefined") {
          var useSSL = 'https:' == document.location.protocol;
          var src = (useSSL ? 'https:' : 'http:') + '//www.googletagservices.com/tag/js/gpt.js';
          document.write('<scr' + 'ipt src="' + src + '"></scr' + 'ipt>');
        } 
      })();
    </script>
	<script type='text/javascript' src='http://www.101greatgoals.com/wp-content/themes/tutorial/youtube/scripts/jquery-1.7.2.min.js'></script>
  </head>
  <body>
    <div id="geo_us"></div>
    <script>
      jQuery(document).ready( function() {
        $.getJSON( "http://smart-ip.net/geoip-json?callback=?",
          function(data){
            console.log(data);
            var c = data.countryCode;
            if(c=="US" || c=="US" ){
              document.getElementById('geo_us').innerHTML = 'US';
            } else {
			$('#geo_us').load('/wp-content/themes/tutorial/tags/tag160X600left.php');
            }
          });
      });
    </script>	
  </body>
 </html>