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

Contents of /fenglin/js/img_adjust.js

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations)
Wed May 7 11:27:46 2025 UTC (10 months, 1 week ago) by sysadm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +0 -0 lines
Content type: text/javascript
FILE REMOVED
Refine with JQuery, remove legacy code

1 function img_adjust(img, width)
2 {
3 if (img.width > width)
4 {
5 img.width = width;
6 }
7 return false;
8 }
9
10 function bbs_img_zoom(e, o)
11 {
12 var zoom = parseInt(o.style.zoom, 10) || 100;
13 zoom += e.wheelDelta / 12;
14 if (zoom > 0)
15 {
16 o.style.zoom = zoom + '%';
17 }
18 return false;
19 }

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