DL_currentY = 0;
DL_lastScrollY = 0;
DL_NS = (document.all) ? 0 : 1;
DL_IE = (document.all) ? 1: 0;

function DL_move(obj) {
	if(DL_IE) DL_diffY = document.documentElement.scrollTop;
	if(DL_NS) DL_diffY = self.pageYOffset;
	DL_percent = .1 * (DL_diffY - DL_lastScrollY);
	if(DL_percent > 0) DL_percent = Math.ceil(DL_percent);
	else DL_percent = Math.floor(DL_percent);
	if(DL_IE) document.getElementById(obj).style.pixelTop += DL_percent;
	if(DL_NS) {var DL_curj = parseInt(document.getElementById(obj).style.top) + DL_percent; document.getElementById(obj).style.top = DL_curj + 'px';}
	DL_lastScrollY = DL_lastScrollY + DL_percent;
}


/*用法
<div id="floater" style="left:0px; top:100px; width:100%; position:absolute; visibility:visible; z-index:1;">
<img src="/imgs/close_h.jpg" style="cursor:pointer" onclick="document.getElementById('floater').style.display='none'" border="0" height="13" width="15">
<span id="div_dl_left" style="float:left; width:100px; height:100px;">这里是左对联</span>
<span id="div_dl_right" style='float:right; width:100px; height:100px;'>这里是右对联</span>
</div>

<script>setInterval("DL_move('floater');",1);</script>
*/

