⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 float.asp

📁 完美政府版,正版网站解决方案
💻 ASP
字号:
<%@ Language=VBScript%>
<!--#include file=conn.asp -->
<!--#include file=function.asp -->
<!--#include file=config.asp -->
<%if adtype="1" then%>
var delta=0.08
	var collection;
	function floaters() {
		this.items	= [];
		this.addItem	= function(id,x,y,content)
				  {
					document.write('<DIV id='+id+' style="Z-INDEX: 10; POSITION: absolute;  width:80px; height:60px;left:'+(typeof(x)=='string'?eval(x):x)+';top:'+(typeof(y)=='string'?eval(y):y)+'">'+content+'</DIV>');
					
					var newItem				= {};
					newItem.object			= document.getElementById(id);
					newItem.x				= x;
					newItem.y				= y;

					this.items[this.items.length]		= newItem;
				  }
		this.play	= function()
				  {
					collection				= this.items
					setInterval('play()',10);
				  }
		}
		function play()
		{

			for(var i=0;i<collection.length;i++)
			{
				var followObj		= collection[i].object;
				var followObj_x		= (typeof(collection[i].x)=='string'?eval(collection[i].x):collection[i].x);
				var followObj_y		= (typeof(collection[i].y)=='string'?eval(collection[i].y):collection[i].y);

				if(followObj.offsetLeft!=(document.body.scrollLeft+followObj_x)) {
					var dx=(document.body.scrollLeft+followObj_x-followObj.offsetLeft)*delta;
					dx=(dx>0?1:-1)*Math.ceil(Math.abs(dx));
					followObj.style.left=followObj.offsetLeft+dx;
					}

				if(followObj.offsetTop!=(document.body.scrollTop+followObj_y)) {
					var dy=(document.body.scrollTop+followObj_y-followObj.offsetTop)*delta;
					dy=(dy>0?1:-1)*Math.ceil(Math.abs(dy));
					followObj.style.top=followObj.offsetTop+dy;
					}
				followObj.style.display	= '';
			}
		}	
		
	var theFloaters		= new floaters();
	//右面
	theFloaters.addItem('followDiv1','document.body.clientWidth-106',80,'<EMBED   src=<%=R_TOP%> alt="<%=R_MAIN%>" quality=high  WIDTH=80 HEIGHT=300 TYPE=application/x-shockwave-flash id=ad wmode=opaque ></EMBED>');
	//左面
	theFloaters.addItem('followDiv2',6,80,'<EMBED src=<%=R_TOP%>  alt="<%=R_MAIN%>"quality=high  WIDTH=80 HEIGHT=300 TYPE=application/x-shockwave-flash id=ad wmode=opaque></EMBED>');
	theFloaters.play();
<%else%>
function closeAd(){
huashuolayer2.style.visibility='hidden';
huashuolayer3.style.visibility='hidden';}
function winload()
{
huashuolayer2.style.top=40;
huashuolayer2.style.left=10;
huashuolayer3.style.top=40;
huashuolayer3.style.right=10;
}
if(document.body.offsetWidth>800){
{
document.write('<div id=huashuolayer2 style="position: absolute;visibility:visible;z-index:1"><table width=84  border=0 cellspacing=0 cellpadding=0><tr><td height=12 align=right bgcolor=#520208><a href=javascript:closeAd()><img src=images/close.gif width=12 height=12 border=0></a></td></tr><tr><td><a href="<%=L_MAIN%>" target=_blank><img src="<%=R_TOP%>" border=0 width="84" height="300" alt="<%=R_MAIN%>" align=top></a></td></tr></table></div>'
+'<div id=huashuolayer3 style="position: absolute;visibility:visible;z-index:1"><table width=84  border=0 cellspacing=0 cellpadding=0><tr><td height=12 align=right bgcolor=#520208><a href=javascript:closeAd()><img src=images/close.gif width=12 height=12 border=0></a></td></tr><tr><td><a href="<%=L_MAIN%>" target=_blank><img src="<%=R_TOP%>" border=0 width="84" height="300" alt="<%=R_MAIN%>" align=top></a></td></tr></table></div>');
}
winload()
}
<%end if%>	

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -