这个问题一直存在,官方的人一直在推责任,说你这是设置问题,那里设置问题,从来不去检查自己的问题。
打开模板 discuzcode.htm
第258行开始-262行,替换为:以下
- <!--{if $_G['setting']['thumbstatus'] && $attach['thumb']}-->
- <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" onclick="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" alt="$attach[imgalt]" title="$attach[imgalt]"{if $_GET['from'] != 'preview'} onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})"{/if} />
- <!--{else}-->
- <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" alt="$attach[imgalt]" title="$attach[imgalt]" {if $_GET['from'] != 'preview'} onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})"{/if} />
- <!--{/if}-->
复制代码
原因很简单,就是少了一个 alt="$attach[imgalt]" title="$attach[imgalt]" 信息
从ZOOM函数的JS来看,EXIF信息写在IMGTITLE里。故。。。。。。。。。。。。。。。
- function _zoom(obj, zimg, nocover, pn, showexif) {
- zimg = !zimg ? obj.src : zimg;
- showexif = !parseInt(showexif) ? 0 : showexif;
- if(!zoomstatus) {
- window.open(zimg, '', '');
- return;
- }
- if(!obj.id) obj.id = 'img_' + Math.random();
- var faid = !obj.getAttribute('aid') ? 0 : obj.getAttribute('aid');
- var menuid = 'imgzoom';
- var menu = $(menuid);
- var zoomid = menuid + '_zoom';
- var imgtitle = !nocover && obj.title ? '<div class="imgzoom_title">' + obj.title + '</div>' +
- (showexif ? '<div id="' + zoomid + '_exif" class="imgzoom_exif" onmouseover="this.className=\'imgzoom_exif imgzoom_exif_hover\'" onmouseout="this.className=\'imgzoom_exif\'"></div>' : '')
- : '';
复制代码
|