当前位置:沸点梦工场 > 网页设计教程 > JavaScript教程 > 浏览文章

如何在一个空间安装多个网站

互联网 2007年10月03日 【字体:

以下为原代码:

<script language=javascript>
if(this.location=="http://www.sina.com/")
{this.location.href=http://www.sina.com/index.html;}
else
if(this.location=="http://www.sina.cn/")
{this.location.href=http://www.sina.com/index.html2;}
</script>