Parent Directory
|
Revision Log
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 |