var verticalpos="frombottom" if (!document.layers) document.write('') function JSFX_FloatTopDiv() { var realBody=document.body; if(document.compatMode&&document.compatMode.toLowerCase()!="backcompat")realBody=document.documentElement; var jqq_startX = 5; var jqq_startY = 500; var jqq_ns = (navigator.appName.indexOf("Netscape") != -1); var jqq_d = document; function jqq_ml(id) { var jqq_el=jqq_d.getElementById?jqq_d.getElementById(id):jqq_d.all?jqq_d.all[id]:jqq_d.layers[id]; if(jqq_d.layers)jqq_el.style=jqq_el; jqq_el.sP=function(x,y){this.style.left=x+"px";this.style.top=y+"px";}; jqq_el.x = jqq_startX; if (verticalpos=="fromtop") jqq_el.y = jqq_startY; else{ jqq_el.y = jqq_ns ? pageYOffset + innerHeight : realBody.scrollTop + realBody.clientHeight; jqq_el.y -= jqq_startY; } return jqq_el; } window.stayTopLeft=function() { if (verticalpos=="fromtop"){ var jqq_pY = jqq_ns ? pageYOffset :realBody.scrollTop; jqq_ftlObj.y += (jqq_pY + jqq_startY - jqq_ftlObj.y)/28; } else{ var jqq_pY = jqq_ns ? pageYOffset + innerHeight : realBody.scrollTop + realBody.clientHeight; jqq_ftlObj.y += (jqq_pY - jqq_startY - jqq_ftlObj.y)/28; } jqq_ftlObj.sP(jqq_ftlObj.x, jqq_ftlObj.y); setTimeout("stayTopLeft()", 10); } jqq_ftlObj = jqq_ml("divStayTopLeft"); stayTopLeft(); } JSFX_FloatTopDiv();Ļ