1. 修改 include/discuzcode.func.php
onload=\"attachimg(this, \'load\')\"
onmousewheel=\"return imgzoom(this)\"
2. 修改 discuzcode 模板
'attachment.php?aid=$attach[aid]')" onmouseout="attachimginfo(this, 'attach_$attach[aid]', 0, event)"
onmousewheel="return imgzoom(this)"
onclick="zoom(this, '$attach[url]/$attach[attachment]')" onmouseout="attachimginfo(this, 'attach_$attach[aid]', 0, event)"
onmousewheel="return imgzoom(this)"
onmouseover="attachimg(this, 'mouseover')" onclick="zoom(this, 'attachment.php?aid=$attach[aid]')"
onmousewheel="return imgzoom(this)"
onmouseover="attachimg(this, 'mouseover')" onclick="zoom(this, '$attach[url]/$attach[attachment]')"
onmousewheel="return imgzoom(this)"
3. 修改 viewthread 模板
</script>
<!--{if !$iscircle || !empty($frombbs)}-->{template footer}<!--{else}-->{template supesite_footer}<!--{/if}-->
function imgzoom(o) {
var zoom=parseInt(o.style.zoom, 10)||100;zoom+=event.wheelDelta/12;
if (zoom>0) o.style.zoom=zoom+'%';
return false;
}