risewindow.js
来自「一个用java编写的功能强大的OA系统」· JavaScript 代码 · 共 29 行
JS
29 行
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);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?