免費論壇 繁體 | 簡體
Sclub交友聊天~加入聊天室當版主
分享

帖子内容附件下载超美化

本文来自:★flash之路-flash技术交流★ 转帖请注明出处! 作者:flashroad 您是第1737个浏览者

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

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

x
flashroad友情提示:
“点评”不是“回帖”!
进入discuzcode模板,找到下面这一块代码:
  1.                         <img src="{if $attach[refcheck]}attachment.php?aid=$aidencode&noupdate=yes{else}$attach[url]/$attach[attachment]{/if}" alt="$attach[filename]" />
  2.                 <!--{/if}-->
  3.         <!--{/if}-->
  4.         <!--{else}-->
复制

将其后面紧跟的所有代码都删除并替换成下面的代码:

  1. <!--附件超美化-->
  2.         <style type="text/css">
  3. <!--
  4. .typeoption table ,.typeoption td { width: 380px; font-size:12px;}
  5. .movie{
  6. float:left;  

  7. }
  8. -->
  9. </style>
  10. <div class="typeoption">
  11. <div class="movie">
  12.         $attach[attachicon]
  13. </div>
  14. <div style="margin-left: 38px;width: 39%;height:auto; border:1px dashed #F30;">
  15. <table cellpadding="0" cellspacing="0" class="formtable datatable" >
  16. <tr class="colplural">
  17. <th><strong>附件下载信息</strong></th><td><font color=#ff0000>$attach[filename]</font></td>
  18. </tr>
  19. <tr>
  20. <th>附件大小:</th><td>$attach[attachsize]</td>
  21. </tr><tr class="colplural">
  22. <th>附件{lang price}:</th><td>{$extcredits[$creditstransextra[1]][title]} $attach[price] {$extcredits[$creditstransextra[1]][unit]} [<a href="misc.php?action=attachpay&aid=$attach[aid]" onclick="showWindow('attachpay', this.href);return false;">{lang attachment_buy}</a>] [<a href="misc.php?action=viewattachpayments&aid=$attach[aid]" onclick="showWindow('attachpay', this.href);return false;" target="_blank">{lang pay_view}</a>]</td>
  23. </tr><tr>
  24. <th>{lang downloads}:</th><td>$attach[downloads]</td>
  25. </tr><tr class="colplural">
  26. <th>更新时间:</th><td>$attach[dateline]</td>
  27. </tr><tr>
  28. <th>下载地址:</th><td>
  29. <a href="attachment.php?aid=$aidencode" target="_blank"{if !$attach['attachimg'] && $GLOBALS[attachcredits]} onclick="return creditconfirm('{$GLOBALS[attachcredits]}');"{/if}><img src="http://flashroad.joinbbs.net/attachments/month_1808/18080622431c54da4a3313170d.gif" border="0" alt="普通方式下载 - $attach[filename]" /></a>
  30. </td>
  31. </tr>
  32. </table>
  33. </div>
  34.         <!--{/if}-->
  35.         </dl>
  36. <!--{/block}-->
  37. <!--{eval return $return;}-->
  38. <!--{eval
  39. }

  40. function attachinpost($attach) {
  41. global $attachrefcheck, $extcredits, $creditstrans, $creditstransextra, $ftp, $thumbstatus, $attachimgpost;
  42. $attach['refcheck'] = (!$attach['remote'] && $attachrefcheck) || ($attach['remote'] && ($ftp['hideurl'] || ($attach['isimage'] && $attachimgpost && strtolower(substr($ftp['attachurl'], 0, 3)) == 'ftp')));
  43. $aidencode = aidencode($attach[aid]);
  44. }-->
  45. <!--{block return}-->
  46.         <!--{if !isset($attach['unpayed'])}-->
  47.                 <!--{if $attach['attachimg']}-->
  48.                         <!--{if !IS_ROBOT}-->
  49.                                 <span style="position: absolute; display: none" id="attach_$attach[aid]" onmouseover="showMenu({'ctrlid':this.id,'pos':'13'})"><img src="{IMGDIR}/attachimg.gif" border="0"></span>
  50.                                 <!--{if $thumbstatus && $attach['thumb']}-->
  51.                                         <a href="javascript:;"><img onclick="zoom(this, '{if $attach[refcheck]}attachment.php?aid=$aidencode&noupdate=yes¬humb=yes{else}$attach[url]/$attach[attachment]{/if}')" src="{if $attach[refcheck]}attachment.php?aid=$aidencode{else}$attach[url]/$attach[attachment].thumb.jpg{/if}" border="0" id="aimg_$attach[aid]" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" /></a>
  52.                                 <!--{else}-->
  53.                                         {eval $GLOBALS[aimgs][$attach[pid]][] = $attach[aid];}{eval $widthcode = attachwidth($attach['width']);}
  54.                                         <img src="images/common/none.gif" file="{if $attach[refcheck]}attachment.php?aid=$aidencode&noupdate=yes{else}$attach[url]/$attach[attachment]{/if}" $widthcode id="aimg_$attach[aid]" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" alt="$attach[filename]" />
  55.                                 <!--{/if}-->
  56.                                 <div class="t_attach" id="aimg_$attach[aid]_menu" style="position: absolute; display: none">                                
  57.                                 <a href="attachment.php?aid=$aidencode¬humb=yes" title="$attach[filename]" target="_blank"><strong>{lang download}</strong></a> ($attach[attachsize])<br />
  58.                                 <!--{if $attach[description]}-->$attach[description]<br /><!--{/if}-->
  59.                         <!--{else}-->
  60.                                 <dl class="t_attachlist attachimg">
  61.                                 <!--{if !$attach['price'] || $attach['payed']}-->
  62.                                         <!--{if $attach['description']}--><p>{$attach[description]}</p><!--{/if}-->
  63.                                         <img src="{if $attach[refcheck]}attachment.php?aid=$aidencode&noupdate=yes{else}$attach[url]/$attach[attachment]{/if}" alt="$attach[filename]" />
  64.                                 <!--{/if}-->
  65.                                 <div style="display: none">
  66.                         <!--{/if}-->
  67.                 <!--{else}-->

  68. <style type="text/css">
  69. <!--
  70. .typeoption table ,.typeoption td { width: 260px; font-size:12px;}
  71. .movie{
  72. float:left;  

  73. }
  74. -->
  75. </style>
  76. <div class="typeoption">
  77. <div class="movie">
  78.         $attach[attachicon]
  79. </div>
  80. <div style="margin-left: 38px;width: 39%;height:auto; border:1px dashed #F30;">
  81. <table cellpadding="0" cellspacing="0" class="formtable datatable" >
  82. <tr class="colplural">
  83. <th><strong>附件下载信息</strong></th><td><font color=#ff0000>$attach[filename]</font></td>
  84. </tr>
  85. <tr>
  86. <th>附件大小:</th><td>$attach[attachsize]</td>
  87. </tr><tr class="colplural">
  88. <th>附件{lang price}:</th><td>{$extcredits[$creditstransextra[1]][title]} $attach[price] {$extcredits[$creditstransextra[1]][unit]} [<a href="misc.php?action=viewattachpayments&aid=$attach[aid]" onclick="showWindow('attachpay', this.href);return false;" target="_blank">{lang pay_view}</a>]</td>
  89. </tr><tr>
  90. <th>{lang downloads}:</th><td>$attach[downloads]</td>
  91. </tr><tr class="colplural">
  92. <th>更新时间:</th><td>$attach[dateline]</td>
  93. </tr><tr>
  94. <th>下载地址:</th><td>
  95. <a href="attachment.php?aid=$aidencode" target="_blank"{if !$attach['attachimg'] && $GLOBALS[attachcredits]} onclick="return creditconfirm('{$GLOBALS[attachcredits]}');"{/if}><img src="http://flashroad.joinbbs.net/attachments/month_1808/18080622431c54da4a3313170d.gif" border="0" alt="普通方式下载 - $attach[filename]" /></a>
  96. </td>
  97. </tr>
  98. </table>
  99. </div>
  100.                         <div class="t_attach" id="attach_$attach[aid]_menu" style="position: absolute; display: none">
  101.                         <!--{if $attach['description']}-->$attach[description]<br /><!--{/if}-->
  102.                         {lang downloads}: $attach[downloads]<br />
  103.                         <!--{if $attach['readperm']}-->{lang readperm}: $attach[readperm]<br /><!--{/if}-->
  104.                 <!--{/if}-->
  105.                 <!--{if $attach['price']}-->
  106.                         {lang price}: {$extcredits[$creditstransextra[1]][title]} $attach[price] {$extcredits[$creditstransextra[1]][unit]}<br />
  107.                         <a href="misc.php?action=viewattachpayments&aid=$attach[aid]" onclick="showWindow('attachpay', this.href);return false;" target="_blank">[{lang pay_view}]</a>
  108.                 <!--{/if}-->
  109.                 <div class="t_smallfont">$attach[dateline]</div>
  110.                 <!--{if !$attach['attachimg'] && $GLOBALS['attachcredits']}-->{lang attachcredits} $GLOBALS[attachcredits]<br /><!--{/if}-->
  111.                 </div>
  112.         <!--{else}-->

  113. <style type="text/css">
  114. <!--
  115. .typeoption table ,.typeoption td { width: 300px; font-size:12px;}
  116. .movie{
  117. float:left;  

  118. }
  119. -->
  120. </style>
  121. <div class="typeoption">
  122. <div class="movie">
  123.         $attach[attachicon]
  124. </div>
  125. <div style="margin-left: 38px;width: 39%;height:auto; border:1px dashed #F30;">
  126. <table cellpadding="0" cellspacing="0" class="formtable datatable" >
  127. <tr class="colplural">
  128. <th><strong>附件下载信息</strong></th><td><font color=#ff0000>$attach[filename]</font></td>
  129. </tr>
  130. <tr>
  131. <th>附件大小:</th><td>$attach[attachsize]</td>
  132. </tr><tr class="colplural">
  133. <th>附件{lang price}:</th><td>{$extcredits[$creditstransextra[1]][title]} $attach[price] {$extcredits[$creditstransextra[1]][unit]} [<a href="misc.php?action=attachpay&aid=$attach[aid]" onclick="showWindow('attachpay', this.href);return false;">{lang attachment_buy}</a>] [<a href="misc.php?action=viewattachpayments&aid=$attach[aid]" onclick="showWindow('attachpay', this.href);return false;" target="_blank">{lang pay_view}</a>]</td>
  134. </tr><tr>
  135. <th>{lang downloads}:</th><td>$attach[downloads]</td>
  136. </tr><tr class="colplural">
  137. <th>更新时间:</th><td>$attach[dateline]</td>
  138. </tr><tr>
  139. <th>下载地址:</th><td>
  140. <strong><font color=#ff0000>{lang attach_pay},请先购买再下载...</font></strong>
  141. </td>
  142. </tr>
  143. </table>
  144. </div>
  145.         <!--{/if}-->
  146. <!--{/block}-->
  147. <!--{eval return $return;}-->
  148. <!--{eval
  149. }

  150. }-->
复制
您所在的用户组只能看到部分内容.
如查看全部内容, 请先登录或者注册.

获得 大恶魔卡 一张

卡片说明:flashroad不小心破坏了公物,被警察叔叔扣掉6金钱

卡片效果:-6

友情提示:单击下列任意一个表情,即可瞬间自动回复本帖!

好贴......
郁闷......
开心......
擦汗......
鄙视......
狂怒
谢谢
爱你呦
拜托了
嗯嗯
OMG
求关注
伤心......
无奈.....
无奈.....
无奈.....
无奈.....
无奈.....
哈哈哈
NO
OK
what
我来了

最近访问本帖者列表:

阿么
访问时间:2019-05-03 03:59
天使小小
访问时间:2018-12-28 22:11
flashroad
访问时间:2018-08-26 20:27
天使宝贝
访问时间:2018-08-10 11:31

打赏

取消

感谢您的支持,我会继续努力的!

扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

Powered by 爱秀代码,分享从这里开始,精彩与您同在

点评
B Color Smilies

您还可以输入:个字符
X

X


这是所需的素材
楼上代码中的
  1. http://flashroad.joinbbs.net/attachments/month_1808/18080622431c54da4a3313170d.gif
复制
就是这个素材。请将其下载后上传至自己的论坛,获取地址后替换上面的
您所在的用户组只能看到部分内容.
如查看全部内容, 请先登录或者注册.
附件: 您需要登录才可以下载或查看附件。没有帐号?注册
点评
B Color Smilies

您还可以输入:个字符
X

X

TOP

本帖转自:
本帖隐藏的内容需要回复才可以浏览

有细节修改
您所在的用户组只能看到部分内容.
如查看全部内容, 请先登录或者注册.
点评
B Color Smilies

您还可以输入:个字符
X

X

TOP

 

B Color Image Link Quote Code Smilies
高级模式 | 发新话题

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

快速
返回顶部
返回首页