打印本文 打印本文 关闭窗口 关闭窗口
JS实现跳转代码:多域名指向同一空间
作者:武汉SEO闵涛  文章来源:敏韬网  点击数993  更新时间:2009/4/23 11:27:39  文章录入:mintao  责任编辑:mintao
<script>try {if( self.location == "http://域名一/" ) { 
top.location.href = "http://域名一/目录"; 

else if( self.location == "http://域名二/" ) { 
top.location.href = "http://域名二/目录"; 

else if( self.location == "http://域名三/" ) { 
top.location.href = "http://域名三/目录"; 

else if( self.location == "http://域名四/" ) { 
top.location.href = "http://域名四/目录"; 

else {document.write ("错误的访问地址")}} catch(e) {}</script>

打印本文 打印本文 关闭窗口 关闭窗口