js 右下角升小广告,就象进入javaeye首页时底下升起RSS的那个

<script>  
	

if (typeof window.ActiveXObject != 'undefined') { // 支持IE浏览器


	  var   oPopup   =   window.createPopup();   
	  var   popTop=50;  
	  
	  function   popmsg(msgstr)
	  {   
			  
			
			  var   winstr="<table  border=\"0\"    cellpadding=\"0\"   cellspacing=\"0\">";   
			  winstr+="<tr><td >"+msgstr+"</td></tr></table>";   

			 
			  oPopup.document.body.innerHTML   =   winstr;   
			  popshow();   
	  }   


	  function   popshow()
	  {   
			
			if(popTop>2500)
			{   
				clearTimeout(mytime);   
				oPopup.hide();   
				return; 
		  
			}
			else   if(popTop>2500&&popTop<2000)
			{   
				
				oPopup.show(screen.width-250,screen.height,360,1720-popTop);   
			}
			
			else   if(popTop<180)
			{   
				oPopup.show(screen.width-125,screen.height,550,popTop);   
			}
			else   if(popTop<220)
			{   
				oPopup.show(screen.width-125,screen.height-popTop,550,400);   
			}   
			
			
			popTop+=20;   
			var   mytime=setTimeout("popshow();",50);   
	  }   
	  popmsg(" <embed   border=\"0\" src=\"./images/1.swf\" width=\"550\"  height=\"405\">"); 
	 
} else if((typeof document.implementation != 'undefined')
				&&(typeof document.implementation.createDocument!='undefined')) { // 支持Mozilla浏览器


		var   popTopFF=50;   
		function js_close_div(divname)
		{
			document.getElementById(divname).style.visibility = "hidden";
		}

		function   popshowFF()
		{   
			if(popTopFF>2500)
			{   
				clearTimeout(mytime);   
				js_close_div('adright1');
				return; 
		  
			}
			else   if(document.body.clientHeight-popTopFF<document.body.clientHeight-405)
			{   
				
				document.getElementById("adright1").style.top = document.body.clientHeight-405;
			}
			else
			{
				document.getElementById("adright1").style.top =document.body.clientHeight-popTopFF;  
			}
			document.getElementById("adright1").style.left =document.body.clientWidth-550;
			popTopFF+=20;   
			var   mytime=setTimeout("popshowFF();",50);   
		} 

		document.write("<div id='adright1' style='position: absolute;width:80;top:88;left:550;visibility: visible;z-index: 1'><embed   border='0' src='./images/1.swf' width='550'  height='405' usemap='#MapSHJobs'/></div><map name='MapSHJobs'><area shape='rect' coords='0,0,87,18' href='javascript:js_close_div(\"adright1\");'></map>");
	   
		popshowFF();   
			

		setTimeout("js_close_div('adright1');", 5000);
}
  </script>

你可能感兴趣的:(浏览器,IE)