浏览量: 次
Copy code
<script>try { if( self.location == "[url=http://bnnb.net/]http://bnnb.net/[/url][/url]" ) {
top.location.href = "[url=http://bbs.xxxx.net/]http://bbs.xxxx.net/[/url][/url]";
}
else if( self.location == "[url=http://www.xxxx.cn/]http://www.xxxx.cn/[/url][/url]" ) {
top.location.href = "[url=http://wwwxxxx.net]http://wwwxxxx.net[/url][/url]";
}
else {
top.location.href = "[url=http://www.xxxx.net/]http://www.xxxx.net/[/url][/url]";
} } catch(e) { }</script>
一共三层,每层第一个url是你绑定到空间的域名,第二个url是实现跳转到的目标文件夹或者其他网址。绑定到空间但是没在代码里设置的,统统跳转到第三层的那个网址
其中第二层的
Copy codeelse if( self.location == "[url=http://www.xxxx.cn/]http://www.xxxx.cn/[/url][/url]" ) {
top.location.href = "[url=http://www.xxxx.net]http://www.xxxx.net[/url][/url]";
}
可以多次重复,格式一样.
把这些代码做成一个html,放到你空间根目录就行了,这个跳转目标url的效果跟解析的效果是一致的。
[声明]本网转载网络媒体稿件是为了传播更多的信息,此类稿件不代表本网观点,本网不承担此类稿件侵权行为的连带责任。故此,如果您发现本网站的内容侵犯了您的版权,请您的相关内容发至此邮箱【27535611@qq.com】,我们在确认后,会立即删除,保证您的版权。