»
Guest:
Register
|
Login
|
冻结用户(激活)
|
Residents
AbyssalSwamp
»
程序代码二次开发
» 图片附件美化框 For Discuz 4.0
Previous thread
Next thread
Title:
[BBShack]
图片附件美化框 For Discuz 4.0
Phoenix001
CAFFZ前员工
UID 181234
Digest
2
Points 13
Posts 1490
码币MB 3003 Code
黄金 0 Catty
钻石 0 Pellet
Permissions 1
Register 2019-5-27
Status offline
图片附件美化框 For Discuz 4.0
适用版本: discuz!4.0
插件作者: 不记得了(忘了是那里找到的了)
插件修改: viewthread.htm
修改难度: 易
数据库升级: 无
1、把stt.rar附件里的图片放到风格目录下
2、修改模版:viewthread.htm
找到:
<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);">
复制代码
改为:
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="11" height="11"><img src="{IMGDIR}/attach_img_1.gif" width="11" height="11"></td>
<td background="{IMGDIR}/attach_img_2.gif"></td>
<td width="16" height="11"><img src="{IMGDIR}/attach_img_3.gif" width="16" height="11"></td>
</tr>
<tr>
<td background="{IMGDIR}/attach_img_4.gif"> </td>
<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>
<td background="{IMGDIR}/attach_img_6.gif"> </td>
</tr>
<tr>
<td width="11" height="16"><img src="{IMGDIR}/attach_img_7.gif" width="11" height="16"></td>
<td background="{IMGDIR}/attach_img_8.gif"></td>
<td width="16" height="16"><img src="{IMGDIR}/attach_img_9.gif" width="16" height="16"></td>
</tr>
</table>
复制代码
再找:
<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);">
复制代码
改为:
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="11" height="11"><img src="{IMGDIR}/attach_img_1.gif" width="11" height="11"></td>
<td background="{IMGDIR}/attach_img_2.gif"></td>
<td width="16" height="11"><img src="{IMGDIR}/attach_img_3.gif" width="16" height="11"></td>
</tr>
<tr>
<td background="{IMGDIR}/attach_img_4.gif"> </td>
<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>
<td background="{IMGDIR}/attach_img_6.gif"> </td>
</tr>
<tr>
<td width="11" height="16"><img src="{IMGDIR}/attach_img_7.gif" width="11" height="16"></td>
<td background="{IMGDIR}/attach_img_8.gif"></td>
<td width="16" height="16"><img src="{IMGDIR}/attach_img_9.gif" width="16" height="16"></td>
</tr>
</table>
复制代码
2023-2-18 11:52
#1
Phoenix001
CAFFZ前员工
UID 181234
Digest
2
Points 13
Posts 1490
码币MB 3003 Code
黄金 0 Catty
钻石 0 Pellet
Permissions 1
Register 2019-5-27
Status offline
图片附件美化框 For Discuz 4.0
https://discuz.dismall.com/thread-218206-1-1.html
(出处: Discuz免费开源建站系统)
............................................................................................................................
适用版本: discuz!4.0
插件作者: 不记得了(忘了是那里找到的了)
插件修改: viewthread.htm
修改难度: 易
数据库升级: 无
1、把stt.rar附件里的图片放到风格目录下
2、修改模版:viewthread.htm
找到:
<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);">
复制代码
改为:
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="11" height="11"><img src="{IMGDIR}/attach_img_1.gif" width="11" height="11"></td>
<td background="{IMGDIR}/attach_img_2.gif"></td>
<td width="16" height="11"><img src="{IMGDIR}/attach_img_3.gif" width="16" height="11"></td>
</tr>
<tr>
<td background="{IMGDIR}/attach_img_4.gif"> </td>
<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>
<td background="{IMGDIR}/attach_img_6.gif"> </td>
</tr>
<tr>
<td width="11" height="16"><img src="{IMGDIR}/attach_img_7.gif" width="11" height="16"></td>
<td background="{IMGDIR}/attach_img_8.gif"></td>
<td width="16" height="16"><img src="{IMGDIR}/attach_img_9.gif" width="16" height="16"></td>
</tr>
</table>
复制代码
再找:
<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);">
复制代码
改为:
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="11" height="11"><img src="{IMGDIR}/attach_img_1.gif" width="11" height="11"></td>
<td background="{IMGDIR}/attach_img_2.gif"></td>
<td width="16" height="11"><img src="{IMGDIR}/attach_img_3.gif" width="16" height="11"></td>
</tr>
<tr>
<td background="{IMGDIR}/attach_img_4.gif"> </td>
<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>
<td background="{IMGDIR}/attach_img_6.gif"> </td>
</tr>
<tr>
<td width="11" height="16"><img src="{IMGDIR}/attach_img_7.gif" width="11" height="16"></td>
<td background="{IMGDIR}/attach_img_8.gif"></td>
<td width="16" height="16"><img src="{IMGDIR}/attach_img_9.gif" width="16" height="16"></td>
</tr>
</table>
复制代码
[ 本帖最后由 szqyn 于 2006-1-7 18:17 编辑 ]
Image attachment
:
SpxImage4.gif
(2023-2-20 13:13, 63.79 K)
Image attachment
:
SpxImage5.gif
(2023-2-20 13:13, 69.17 K)
Att
:
stt.rar
(2023-2-20 13:13, 1.35 K)
Number of times this attachment has been downloaded 51
2023-2-20 13:13
#2
Printable version
|
Recommend to a friend
|
Subscribe to topic
|
Favorite topic
AbyssalSwamp jumps to ...
+++Casual
> Case Board(C版)
+++ProductsCommunication
> ContentManagementSystem
> Internet of Things(System)
> DigitalFactorySystem-基于229项目
> EquipmentSupply
> SmartFarmSystem-CA226智慧农场
+++CAFFZ Company
> CompanySystem(S版)
All times are GMT+8, and the current time is 2025-12-13 14:08
Clear informations ->sessions/cookies
-
Contact Us
-
CAFFZ - ZAKE