在自己的坛子上面老看到这个,闹心,所以试了下下面的方法。
找到templates\default\forum\discuzcode.htm
搜索到代码
<img{if $attach['price'] && $_G['forum_attachmentdown'] && $_G['uid'] != $attach['uid']} class="attprice"{/if} style="cursor:pointer" id="aimg_$attach[aid]" aid="$attach[aid]" src="{STATICURL}image/common/none.gif" οnclick="zoom(this, this.getAttribute('zoomfile'), 0, 0, '{$_G[setting][showexif]}')" zoomfile="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes¬humb=yes{else}{$attach[url]}$attach[attachment]{/if}" file="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode{else}{$attach[url]}$attachthumb{/if}" inpost="1"{if $_GET['from'] != 'preview'} οnmοuseοver="showMenu({'ctrlid':this.id,'pos':'12'})"{/if} />
只需要删除其中的代码
οnmοuseοver="showMenu({'ctrlid':this.id,'pos':'12'})"
下一步再搜索代码
<img{if $attach['price'] && $_G['forum_attachmentdown'] && $_G['uid'] != $attach['uid']} class="attprice"{/if} id="aimg_$attach[aid]" aid="$attach[aid]" src="{STATICURL}image/common/none.gif" zoomfile="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes¬humb=yes{else}{$attach[url]}$attach[attachment]{/if}" file="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes{else}{$attach[url]}$attach[attachment]{/if}" $widthcode id="aimg_$attach[aid]" inpost="1"{if $_GET['from'] != 'preview'} οnmοuseοver="showMenu({'ctrlid':this.id,'pos':'12'})"{/if} />
删除其中的代码
οnmοuseοver="showMenu({'ctrlid':this.id,'pos':'12'})"
到这一步就完成了,覆盖之前的代码即可。
OK,改之前记得备份哦。