正文

JS拾取2006-02-27 16:46:00

【评论】 【打印】 【字体: 】 本文链接:http://blog.pfan.cn/Csharpsky/10592.html

分享到:

//改变图片大小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+'%';  return false;}//双击鼠标滚动屏幕的代码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=scdocument.ondblclick=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';  }}</script>

阅读(2373) | 评论(0)


版权声明:编程爱好者网站为此博客服务提供商,如本文牵涉到版权问题,编程爱好者网站不承担相关责任,如有版权问题请直接与本文作者联系解决。谢谢!

评论

暂无评论
您需要登录后才能评论,请 登录 或者 注册