#floater{position:absolute;left:500;top:147;width:125;visibility:visible;z-i"> #floater{position:absolute;left:500;top:147;width:125;visibility:visible;z-i" />
ID:12883173
大小:26.50 KB
页数:5页
时间:2018-07-19
2、i=0;i<100;i++)document.write("ILOVEYOUTIANTIAN
");
3、;diffX=document.body.scrollLeft;}if(NS){diffY=self.pageYOffset;diffX=self.pageXOffset;}if(diffY!=lastScrollY){percent=.1*(diffY-lastScrollY);if(percent>0)percent=Math.ceil(percent);elsepercent=Math.floor(percent);if(IE)document.all.floater.style.pixelTop+=percent;if(NS)document.floater.top+=
4、percent;lastScrollY=lastScrollY+percent;}if(diffX!=lastScrollX){percent=.1*(diffX-lastScrollX);if(percent>0)percent=Math.ceil(percent);elsepercent=Math.floor(percent);if(IE)document.all.floater.style.pixelLeft+=percent;if(NS)document.floater.left+=percent;lastScrollX=lastScrollX+percent;}}
5、--/STALKERCODE-->functioncheckFocus(x,y){stalkerx=document.floater.pageX;stalkery=document.floater.pageY;stalkerwidth=document.floater.clip.width;stalkerheight=document.floater.clip.height;if((x>stalkerx&&x<(stalkerx+stalkerwidth))&&(y>stalkery&&y<(stalkery+stalkerheight))
6、)returntrue;elsereturnfalse;}functiongrabIt(e){if(IE){whichIt=event.srcElement;while(whichIt.id.indexOf("floater")==-1){whichIt=whichIt.parentElement;if(whichIt==null){returntrue;}}whichIt.style.pixelLeft=whichIt.offsetLeft;whichIt.style.pixelTop=whichIt.offsetTop;currentX=(event.clientX+doc
7、ument.body.scrollLeft);currentY=(event.clientY+document.body.scrollTop);}else{window.captureEvents(Event.MOUSEMOVE);if(checkFocus(e.pageX,e.pageY)){whichIt=document.floater;StalkerTouchedX=e.pageX-document.floater.pageX;StalkerTouchedY=e.pageY-docu
此文档下载收益归作者所有