risewindow.js
资源名称:JSP-OA.rar [点击查看]
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:1k
源码类别:
Jsp/Servlet
开发平台:
Java
- function moveWindowUp() {
- amount = parseInt((winHeight-total) * 0.2);
- total += amount;
- if(total<winHeight && amount>0) {
- try {
- window.moveBy(0, (-1) * amount);
- }
- catch(e){
- }
- }
- else {
- clearInterval(handle);
- }
- }
- var amount=0;
- var total=0;
- var handle ;
- var winHeight, winWidth;
- // 启动滚动窗口
- function START(){
- winHeight= document.body.offsetHeight + 30;
- winWidth = document.body.offsetWidth + 10 ;
- window.moveTo(window.screen.availWidth-winWidth, window.screen.availHeight);
- handle = setInterval("moveWindowUp()",70);
- }