FineReport——利用JS实现自动翻页及点击后翻页

1、实现点击鼠标后翻页

window.location.href = FR.cjkEncode("ReportServer?formlet=%5B8d22%5D%5B52a1%5D-%5B5e94%5D%5B6536%5D%5B8d26%5D%5B6b3e%5Dtest.frm"); 

2、实现自动翻页

function time() {  
    timer = setTimeout(function() {  
        window.location.href = FR.cjkEncode("ReportServer?formlet=%5B8d22%5D%5B52a1%5D-%5B5e94%5D%5B6536%5D%5B8d26%5D%5B6b3e%5Dtest.frm"); //要轮播的报表url  
    }, 120000); //轮播间隔  
}  
  
time();  
  
setTimeout(function() {  
    //这里的控件名要全用大写  
    $("body").mouseover(function() {  
        clearInterval(timer);  
    })  
    $("body").mouseleave(function() {  
        time();  
    })  
})  

 

你可能感兴趣的:(FineReport)