<script language="javascript">
//右边的滑动按钮
suspendcode="<DIV id=backi style='right:0px;POSITION:absolute;TOP:200px;'><a href='javascript:history.back()' title='返回'><img border=0 src=\"images/lw.gif\" ></a><br><a href='#top' title='顶部'><img border=0 src=\"images/uw.gif\" ></a><br><a href='#bottom' title='底部'><img border=0 src=\"images/dw.gif\" ></a></div>" 
document.write(suspendcode); 
lastScrollY=0; 
function heartBeat(){ 
diffY=document.body.scrollTop; 
percent=.1*(diffY-lastScrollY); 
if(percent>0)percent=Math.ceil(percent); 
else percent=Math.floor(percent); 
document.all.backi.style.pixelTop+=percent; 
lastScrollY=lastScrollY+percent; 
} 
window.setInterval("heartBeat()",1); 



//双击滚屏
var currentpos,timer;
function initialize()
{
timer=setInterval ("scrollwindow ()",16);
}
function sc()
{
clearInterval(timer);
}
function scrollwindow()
{
currentpos=document.body.scrollTop;
window.scroll(0,++currentpos);
if (currentpos !=document.body.scrollTop)
sc();
}
document.onmousedown=sc
document.ondblclick=initialize


//禁止右键
//function stop(){
//return false; 
//} 
//document.oncontextmenu=stop; 
</script>