have been busy with the construction of the station recently, but after doing well, and the feeling is not so satisfactory, but also have a bit of mobility, according to the region, and view different site pages, because I generated the page is static, it is a bit embarrassing, has published some of these articles before, but the feeling is still very troublesome, And also can not reach the effect of satisfying themselves, so, with the help of friends, find a more convenient way, that is, the following code to join our own need to jump the page, this is a good thing to do it!
Copy Code code as follows:
<script src= "HTTP://COUNTER.SINA.COM.CN/IP" type= "Text/javascript" charset=gb2312></script>
<script>
var sf=ildata[2];
if (Sf.indexof ("Beijing") >=0) {
Window.location.href= "http://www.jb51.net/";
}
else if (Sf.indexof ("Hebei") >=0) {
Window.location.href= "http://www.jb51.cn";
}
else if (Sf.indexof ("Tianjin") >=0) {
Window.location.href= "http://www.jb51.org";
}
</script>
http://www.jb51.net/This is our website address, if you also need to be based on different areas to open their own different site pages, to replace their own site can, this method is good, also here, hope and everyone a lot of exchanges, if there is a good way to share!