[XHTML] 纯文本查看 复制代码 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>ipToUrl.html</title>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
</head>
<body>
This is my HTML page. <br>
使用时,把alert去掉,并把[url]http://www.08sce.com[/url]改成你的地址就行了!
</body>
<script src="http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js" charset="GB2312" ></script>
<script type=text/javascript>
alert("你的IP是:" + remote_ip_info.province);
if(remote_ip_info.province =='广东'){
window.location.href="http://www.ihonker.org/";
}else{
window.location.href="http://www.baidu.com";
}
</script>
</html>
跟据KingSKY的思路编写的! |