﻿// JScript 文件

 
  lastScrollY=0;
function doublefloat(){ 
var diffY;
if (document.documentElement && document.documentElement.scrollTop)
    diffY = document.documentElement.scrollTop;
else if (document.body)
    diffY = document.body.scrollTop
else
    {}
    

percent=.1*(diffY-lastScrollY); 
if(percent>0)percent=Math.ceil(percent); 
else percent=Math.floor(percent); 
if(document.getElementById("doublefloat_right"))
{
//	document.getElementById("doublefloat_left").style.top=parseInt(document.getElementById("doublefloat_left").style.top)+percent+"px";
	document.getElementById("doublefloat_right").style.top=parseInt(document.getElementById("doublefloat_right").style.top)+percent+"px";
	lastScrollY=lastScrollY+percent; 
}
}
//suspendcode_left="<DIV id=\"doublefloat_left\" style='left:10px;POSITION:absolute;TOP:50px;'></div>"
suspendcode_right="<DIV id=\"doublefloat_right\" style='right:10px;POSITION:absolute;TOP:50px;'><a href='#' target='_self'><img border=0 src=images/top.png ></a></div>"

//document.write(suspendcode_left); 
document.write(suspendcode_right); 
window.setInterval("doublefloat()",1);
 
