<script language="javascript">
<!--
var gt = unescape('%3e');
var popup = null;
var over = "Launch Pop-up Navigator";
popup = window.open('', 'popupnav', '');
if (popup != null) {
if (popup.opener == null) {
popup.opener = self;
}
popup.location.href = 'http://dielian.net/';
}
// -->
</script>
ASP的:
<%
if Request.ServerVariables("SERVER_NAME")="www.qingmo.net" then
response.redirect "default.asp"
else
response.redirect "default_en.asp"
end if
%>
此ASP代码功能是当两个域名指向同一个主机时,可以自动重定向到相应的域名网站