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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[美化] 图片附件美化框 For Discuz 4.0

[复制链接]
szqyn 发表于 2006-1-6 14:12:24 | 显示全部楼层 |阅读模式
适用版本:  discuz!4.0
插件作者:  不记得了(忘了是那里找到的了)
插件修改:  viewthread.htm
修改难度:  易
数据库升级:  无

1、把stt.rar附件里的图片放到风格目录下

2、修改模版:viewthread.htm

找到:

  1. <img src="attachment.php?aid=$attach[aid]&noupdate=yes" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='{lang image_open_zoom}';}" onmouseover="if(this.resized) this.style.cursor='hand';" onclick="if(!this.resized) {return false;} else {window.open('attachment.php?aid=$attach[aid]');}" onmousewheel="return imgzoom(this);">
复制代码


改为:


  1. <table border="0" cellpadding="0" cellspacing="0">
  2.   <tr>
  3.     <td width="11" height="11"><img src="{IMGDIR}/attach_img_1.gif" width="11" height="11"></td>
  4.     <td background="{IMGDIR}/attach_img_2.gif"></td>
  5.     <td width="16" height="11"><img src="{IMGDIR}/attach_img_3.gif" width="16" height="11"></td>
  6.   </tr>
  7.   <tr>
  8.     <td background="{IMGDIR}/attach_img_4.gif">&nbsp;</td>
  9.     <td><img src="attachment.php?aid=$attach[aid]&noupdate=yes" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='{lang image_open_zoom}';}" onmouseover="if(this.resized) this.style.cursor='hand';" onclick="if(!this.resized) {return false;} else {window.open('attachment.php?aid=$attach[aid]');}" onmousewheel="return imgzoom(this);"></td>
  10.     <td background="{IMGDIR}/attach_img_6.gif">&nbsp;</td>
  11.   </tr>
  12.   <tr>
  13.     <td width="11" height="16"><img src="{IMGDIR}/attach_img_7.gif" width="11" height="16"></td>
  14.     <td background="{IMGDIR}/attach_img_8.gif"></td>
  15.     <td width="16" height="16"><img src="{IMGDIR}/attach_img_9.gif" width="16" height="16"></td>
  16.   </tr>
  17. </table>
复制代码


再找:

  1. <img src="$attachurl/$attach[attachment]" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='{lang image_open_zoom}';}" onmouseover="if(this.resized) this.style.cursor='hand';" onclick="if(!this.resized) {return false;} else {window.open('$attachurl/$attach[attachment]');}" onmousewheel="return imgzoom(this);">
复制代码


改为:

  1. <table border="0" cellpadding="0" cellspacing="0">
  2.   <tr>
  3.     <td width="11" height="11"><img src="{IMGDIR}/attach_img_1.gif" width="11" height="11"></td>
  4.     <td background="{IMGDIR}/attach_img_2.gif"></td>
  5.     <td width="16" height="11"><img src="{IMGDIR}/attach_img_3.gif" width="16" height="11"></td>
  6.   </tr>
  7.   <tr>
  8.     <td background="{IMGDIR}/attach_img_4.gif">&nbsp;</td>
  9.     <td><img src="$attachurl/$attach[attachment]" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='{lang image_open_zoom}';}" onmouseover="if(this.resized) this.style.cursor='hand';" onclick="if(!this.resized) {return false;} else {window.open('$attachurl/$attach[attachment]');}" onmousewheel="return imgzoom(this);"></td>
  10.     <td background="{IMGDIR}/attach_img_6.gif">&nbsp;</td>
  11.   </tr>
  12.   <tr>
  13.     <td width="11" height="16"><img src="{IMGDIR}/attach_img_7.gif" width="11" height="16"></td>
  14.     <td background="{IMGDIR}/attach_img_8.gif"></td>
  15.     <td width="16" height="16"><img src="{IMGDIR}/attach_img_9.gif" width="16" height="16"></td>
  16.   </tr>
  17. </table>
复制代码

[ 本帖最后由 szqyn 于 2006-1-7 18:17 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x

评分

1

查看全部评分

303196652 发表于 2006-1-6 14:14:34 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

 楼主| szqyn 发表于 2006-1-6 14:18:04 | 显示全部楼层
原帖由 303196652 于 2006-1-6 14:14 发表
没有个演示??

放上了
回复

使用道具 举报

freddy 发表于 2006-1-6 14:19:23 | 显示全部楼层
楼主辛苦了。谢谢共享:)
回复

使用道具 举报

yjflq2002 发表于 2006-1-6 14:28:29 | 显示全部楼层
有特色
回复

使用道具 举报

冷风过境 发表于 2006-1-6 15:44:46 | 显示全部楼层
好东西~
回复

使用道具 举报

bonnae1982 发表于 2006-1-6 17:42:04 | 显示全部楼层
谢谢分享,这个有创意,喜欢!
回复

使用道具 举报

lyxzz 发表于 2006-1-6 18:00:15 | 显示全部楼层
不错 支持下
回复

使用道具 举报

lins2005 发表于 2006-1-6 18:15:13 | 显示全部楼层
只能加一个附件的图片的。多张的图片加不了的
回复

使用道具 举报

madly 发表于 2006-1-6 18:18:41 | 显示全部楼层
不 错,很漂亮。
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-6 18:21 , Processed in 0.670190 second(s), 20 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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