setTimeout(function(){
//隐藏报表块report6的滚动条(此报表块名为report6,根据具体情况修改)
$("div").find("#frozen-north").style.overflow="hidden";
$("div").find("#frozen-center").style.overflow="hidden";
},500);
window.flag=true;
setTimeout(function(){
$("#frozen-center").mouseover(function()
{
window.flag=false;
})
//鼠标悬停,滚动停止
$("#frozen-center").mouseleave(function()
{
window.flag=true;
})
//鼠标离开,继续滚动
var old=-1;
var interval=setInterval(function()
{
if(window.flag){
currentpos=$("#frozen-center").scrollTop;
if (currentpos==old){
$("#frozen-center").scrollTop=0;
}
else {
old=currentpos;
$("#frozen-center").scrollTop=currentpos+1.5;
}
}
},100);
//以100ms的速度每次滚动1.5PX
},1000)