JavaScript网页特效实例大全

源代码在线查看: 3-23.htm

软件大小: 1723 K
上传用户: wql507
关键词: JavaScript
下载地址: 免注册下载 普通下载 VIP

相关代码

				 
				
				JavaScript全球网站
				
				
				                  
				function KB_keepItInIE(theName,theWantTop,theWantLeft) {
				theRealTop=parseInt(document.body.scrollTop)
				theTrueTop=theWantTop+theRealTop
				document.all[theName].style.top=theTrueTop
				theRealLeft=parseInt(document.body.scrollLeft)
				theTrueLeft=theWantLeft+theRealLeft
				document.all[theName].style.left=theTrueLeft
				}
				
				function KB_keepItInNN(theName,theWantX,theWantY) {
				theRealLay=document.layers[theName]
				theBadX=self.pageYOffset
				theBadY=self.pageXOffset
				theRealX=theBadX+theWantX
				theRealY=theBadY+theWantY
				theRealLay.moveTo(theRealY,theRealX)
				}
				
				IE4=(document.all)?1:0
				NN4=(document.layers)?1:0
				if (IE4)
				setInterval('KB_keepItInIE("KBStatic",100,30)',1)
				if (NN4)
				setInterval('KB_keepItInNN("KBStatic",100,30)',1)
				
				
				
				
				
							

相关资源