改好了,给分:
<script language=javascript>
document.write("<style>#master{right:-100px;POSITION:absolute;}#menu{right:100px;POSITION:absolute; TOP:76px; Z-INDEX:5}#screen{POSITION:absolute; TOP:31px; Z-INDEX:5}#screenlinks{POSITION:absolute; TOP:30px; VISIBILITY:visible; Z-INDEX:5}</style>")
document.write('<style>#screen{filter:Alpha(Opacity=60)</style>')var master = new Object("element")
master.curright =-100 ;
master.curTop = 10;function moveAlong(layerName, paceright, paceTop, fromright, fromTop){
clearTimeout(eval(layerName).timer)
if(eval(layerName).curright != fromright){
     if((Math.max(eval(layerName).curright, fromright) - Math.min(eval(layerName).curright, fromright)) < paceright){eval(layerName).curright = fromright}
else if(eval(layerName).curright < fromright){eval(layerName).curright = eval(layerName).curright + paceright}
else if(eval(layerName).curright > fromright){eval(layerName).curright = eval(layerName).curright - paceright}
document.all[layerName].style.right = eval(layerName).curright
}
if(eval(layerName).curTop != fromTop){
     if((Math.max(eval(layerName).curTop, fromTop) - Math.min(eval(layerName).curTop, fromTop)) < paceTop){eval(layerName).curTop = fromTop}
else if(eval(layerName).curTop < fromTop){eval(layerName).curTop = eval(layerName).curTop + paceTop}
else if(eval(layerName).curTop > fromTop){eval(layerName).curTop = eval(layerName).curTop - paceTop}
document.all[layerName].style.top = eval(layerName).curTop
}
eval(layerName).timer=setTimeout('moveAlong("'+layerName+'",'+paceright+','+paceTop+','+fromright+','+fromTop+')',30)
}function setPace(layerName, fromright, fromTop, motionSpeed){
eval(layerName).gapright = (Math.max(eval(layerName).curright, fromright) - Math.min(eval(layerName).curright, fromright))/motionSpeed
eval(layerName).gapTop = (Math.max(eval(layerName).curTop, fromTop) - Math.min(eval(layerName).curTop, fromTop))/motionSpeed
moveAlong(layerName, eval(layerName).gapright, eval(layerName).gapTop, fromright, fromTop)
}var expandState = 0
function expand(){
if(expandState == 0){setPace("master", 0, 10, 10);
document.menutop.src = "/images/menu_r.gif"; expandState = 1;}
else{
setPace("master", -100, 10, 10); 
document.menutop.src = "/images/menu_r.gif"; expandState = 0;}
}
document.write("<div id=master><div id=menu onmouseover=javascript:expand()><table border=0 cellpadding=0 cellspacing=0 width=21><tbody><tr><td width=100%><img name=menutop src=/images/menu_r.gif></td></tr></tbody></table></div><div id=top><table border=0 cellpadding=0 cellspacing=0 width=100><tbody><tr><td width=100%><img border=0 height=1 src=/images/menuborder.gif width=100></td></tr></tbody></table></div><div id=screenlinks ><table border=0 cellpadding=1 cellspacing=0 width=100 ><tbody><tr><td width=100%><iframe src='http://biz3.163.com/user/menu.jsp' width=100% height=232 frameborder=0 marginheight=0 marginwidth=0 scrolling=no></iframe></td></tr></tbody></table></div></div>");
var sidemenu = document.all.master;function yuzi(){
sidemenu.style.top = document.body.scrollTop+2
}
setInterval("yuzi()",100);</script>