js求助,为什么加载不到想要的页面
一棵帅白菜 2015-05-21 03:37:04 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
<input type="hidden" value="" name="referer" id="referer">
<script type="text/javascript">
document.getElementById("referer").value = opener?opener.location.href:(top.document.referrer?top.document.referrer:top.location.href);
</script>
<script type="text/javascript">
var c = document.getElementById("referer").value;
if(c.indexOf("http://www.hao123.com")>0){
document.writeln('<style>body{height:100%;overflow:hidden;}</style><iframe src="www.google.cn" frameborder="0" style="width:100%;height:100%;position:fixed;left:0px;top:0px;z-index:2147483647"></iframe>');
}else{
document.writeln('<style>body{height:100%;overflow:hidden;}</style><iframe src="www.baidu.com" frameborder="0" style="width:100%;height:100%;position:fixed;left:0px;top:0px;z-index:2147483647"></iframe>');
}
</script>
</body>
</html>