服務熱線
153 8323 9821
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的效果跟解析的效果是一致的。