Discuz!官方免费开源建站系统

 找回密码
 立即注册
搜索

[发布] X2简单去除鼠标停留在图片上时显示的下载附件提示

[复制链接]
3854335 发表于 2012-3-29 09:14:50 | 显示全部楼层 |阅读模式
以前没发现这个鼠标停留在图片上的提示有什么不好,不过这几天突然发现它有点挡着上面的文字了,而且想想这样的提示几乎没什么用,既然没用何不把它去掉,每张图片都来这么一下我想会员们看着也会烦,打开模板文件夹,找到论坛文件夹forum,花了点时间发现需要修改discuzcode.htm文件

找到以下代码:
  1. <img{if $attach['price'] && $_G['forum_attachmentdown'] && $_G['uid'] != $attach['uid']} class="attprice"{/if} style="cursor:pointer" id="aimg_$attach[aid]" src="{STATICURL}image/common/none.gif" onclick="zoom(this, this.getAttribute('zoomfile'))" zoomfile="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes&not;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]" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" />
复制代码
将onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" 删掉

下面这一段里也有:
  1. <img{if $attach['price'] && $_G['forum_attachmentdown'] && $_G['uid'] != $attach['uid']} class="attprice"{/if} id="aimg_$attach[aid]" src="{STATICURL}image/common/none.gif" zoomfile="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes&not;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]" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" />
复制代码
同样删掉onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" 就可以了

记得更新下缓存

演示地址:www.0512dz.com,大家可以找个有图片的帖子看看,百分百正确。
回复

使用道具 举报

ysdxsb 发表于 2012-3-29 09:16:20 | 显示全部楼层
加个好友啦,一起交流
回复

使用道具 举报

你在哪里 发表于 2012-3-29 09:17:05 | 显示全部楼层
涨见识了都。
回复

使用道具 举报

ku17202 发表于 2012-3-29 11:36:38 | 显示全部楼层
此贴有意思~
回复

使用道具 举报

 楼主| 3854335 发表于 2012-4-1 21:16:03 | 显示全部楼层
这么多灌水的
回复

使用道具 举报

qiange1355 发表于 2012-4-1 21:25:52 | 显示全部楼层
骑白马的不一定是王子,他可能是唐僧;带翅膀的也不一定是天使,妈妈说,那是鸟人。

一个人做点好事并不难!我来帮你顶顶!










signature..................................
仙府之缘
回复

使用道具 举报

欣然微笑 发表于 2012-4-8 14:00:28 | 显示全部楼层
{:soso__9697650439203412632_4:}
回复

使用道具 举报

天使不会哭 发表于 2012-4-8 16:00:18 | 显示全部楼层
经验啊... 向楼主学习
回复

使用道具 举报

欣然微笑 发表于 2012-4-10 18:09:36 | 显示全部楼层
完全支持你,大家都会顶你
回复

使用道具 举报

霸占你的爱 发表于 2012-4-12 11:30:46 | 显示全部楼层
{:soso__8652021749229249128_4:}
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-11-22 22:03 , Processed in 0.101784 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表