<script language="javascript">
function moveLayerBy(ye,x,y) { ye.style.left=(parseInt(ye.style.left)+x)+"px"; ye.style.top=(parseInt(ye.style.top)+y)+"px"; }
function getScrollX() { return document.documentElement.scrollLeft; }
function getScrollY() { return document.documentElement.scrollTop; }
function floatIt() {
var floatOffset=5;
var ye=document.getElementById("floating");
if (typeof(ye.sX)=="undefined") { ye.sX=0; }
if (typeof(ye.sY)=="undefined") { ye.sY=0; }
var sx=getScrollX(), sy=getScrollY();
if (ye.sX!=sx || ye.sY!=sy) {
var mx=sx>ye.sX?Math.ceil:Math.floor, my=sy>ye.sY?Math.ceil:Math.floor;
var dx=mx((sx-ye.sX)/floatOffset), dy=my((sy-ye.sY)/floatOffset); ye.sX+=dx; ye.sY+=dy;
moveLayerBy(ye,dx,dy);
}
setTimeout("floatIt()",100);
}
</script>
<div style="position:relative; top:10px;left:0px;border:1px;" id="floating" >
<div class="b_border fleft fH16" style="padding:5px"><strong>已添加的基金</strong></div><div class="b_border2 fleft fH16" id ="compare_div_box" style="padding:5px"></div>
</div>