下面,图老师小编带您去了解一下用JSP实现DOS形式缓冲网页,生活就是不断的发现新事物,get新技能~
【 tulaoshi.com - Web开发 】
SCRIPT language=JavaScript type=text/JavaScript
//改变图片大小
function resizepic(thispic)
...{
if(thispic.width700) thispic.width=700;
}
//无级缩放图片大小
function bbimg(o)
...{
var zoom=parseInt(o.style.zoom, 10)||100;
zoom+=event.wheelDelta/12;
if (zoom0) 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.onmousedown=sc
document.ondblclick=initialize
//更改字体大小
var status0='';
var curfontsize=10;
var curlineheight=18;
function fontZoomA()...{
if(curfontsize8)...{
document.getElementById('fontzoom').style.fontSize=(--curfontsize)+'pt';
document.getElementById('fontzoom').style.lineHeight=(--curlineheight)+'pt';
}
}
function fontZoomB()...{
if(curfontsize64)...{
document.getElementById('fontzoom').style.fontSize=(++curfontsize)+'pt';
document.getElementById('fontzoom').style.lineHeight=(++curlineheight)+'pt';
}
}
/SCRIPT
http://blog.csdn.net/ye728/archive/2007/01/29/1497444.aspx
来源:http://www.tulaoshi.com/n/20160219/1616822.html
看过《用JSP实现DOS形式缓冲网页》的人还看了以下文章 更多>>