HTML <br/> <center> <div id="all" style="display:none;font-size:20px;"> <hr style="height:20px;background:#00b4ff;border:0px;"/> <div>国家:<span class="country" style="color:red;"></span></div> <div>省份:<span class="province" style="color:red;"></span></div> <div>城市:<span class="city" style="color:red;"></span></div> <div>IP:<span class = "ip" style="color:red;"></span></div> <hr style="height:20px;background:#00b4ff;border:0px;"/> </div> </center>
JS $(document).ready(function(){ $.getScript('http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js',function(){ $(".country").html(remote_ip_info.country); $(".province").html(remote_ip_info.province); $(".city").html(remote_ip_info.city); }); $.getJSON('http://chaxun.1616.net/s.php?type=ip&output=json&callback=?&_='+Math.random(), function(data){ $(".ip").html(data.Ip); }); $("#all").slideDown(1000); })