用JSP实现DOS形式缓冲网页
//改变图片大小
function resizepic(thispic)
...{
if(thispic.width>700) thispic.width=700;
}
//无级缩放图片大小
function bbimg(o)
...{
var zoom=parseInt(o.style.zoom, 10)||100;
zoom+=event.wheelDelta/12;
if (zoom>0) o.style.zoom=zoom+'%';
}
//双击鼠标滚动屏幕的代码
var currentpos,timer;
function initialize()
...{
timer=setInterval ("scrollwindow ()",30);
}
function sc()
...{
clearInterval(timer);
}
function scrollwindow()
...{
currentpos=document.body.scrollTop;
window.scroll(0,++currentpos);
if (currentpos !=document.body.scrollTop)
sc();
}
document.οnmοusedοwn=sc
document.οndblclick=initialize
//更改字体大小
var status0='';
var curfontsize=10;
var curlineheight=18;
function fontZoomA()...{
if(curfontsize>8)...{
document.getElementById('fontzoom').style.fontSize=(--curfontsize)+'pt';
document.getElementById('fontzoom').style.lineHeight=(--curlineheight)+'pt';
}
}
function fontZoomB()...{
if(curfontsize<64)...{
document.getElementById('fontzoom').style.fontSize=(++curfontsize)+'pt';
document.getElementById('fontzoom').style.lineHeight=(++curlineheight)+'pt';
}
}
本文作者:相关阅读:
构建小型的 FreeBSD 入侵检测系统
ORA-00704 与 bootstrap 错误
关于jsp配置问题的详细解读
在XP系统中模拟Windows7系统的任务栏
DotNetNuke中的函数式编程手法分析
第十三节 对象串行化 [13]
vbs输入助手执行会调用好多乱的进程
Apache环境下PHP利用HTTP缓存协议原理解析及应用分析
asp fckeditor自定义上传文件的文件名
W3C教程(2):W3C 程序
利用WebBrowser彻底解决Web打印问题(包括后台打印)
文本框中,回车键触发事件的js代码[多浏览器兼容]
ASP.NET AJAX中的异步Web Services调用
JAVASCRIPT IE 与 FF 中兼容写法记录