/[LeafOK_CVS]/fenglin/js/imageszoom.js
ViewVC logotype

Annotation of /fenglin/js/imageszoom.js

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Wed May 12 00:28:27 2004 UTC (21 years, 10 months ago) by sysadm
Branch: MAIN
CVS Tags: fenglin_1-0-0-0_MIL
Content type: text/javascript
Add function:
image zoom in and zoom out

1 sysadm 1.1 function bbs_img_zoom(e, o)
2     {
3     var zoom = parseInt(o.style.zoom, 10) || 100;
4     zoom += event.wheelDelta / 12;
5     if (zoom > 0) o.style.zoom = zoom + '%';
6     return false;
7     }

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1