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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
12
返回列表 发新帖

[HACK]发贴,回复,编辑帖子模板仿4.0附件上传双行显示 for 2.5 sp1

[复制链接]
k7k7 发表于 2005-7-7 23:14:38 | 显示全部楼层
什么用 ?
回复

使用道具 举报

dreamnet 发表于 2005-7-7 23:51:21 | 显示全部楼层
这个是梦网的,做个借鉴把
  1. <script language="JavaScript">
  2. var attachnum = 1;
  3. function addattachment() {
  4.         attachnum < 5 ? attachnum++ : findobj("addattachlink").disabled=true;
  5.         findobj("attach_"+attachnum).style.display = "";
  6. }
  7. </script>
  8. <table cellspacing="{BORDERWIDTH}" cellpadding="{TABLESPACE}" width="960" align="center" bgcolor="#efefef">
  9. <tr><td colspan="2" style="background:#0B1BB3"> <font color="white">上传新附件 :</font> <a id="addattachlink" href="###" onclick="addattachment(this.form)">
  10. <font color="#FFFFFF">[+]</font></a> <font color="#FFFFFF">  <--点击+号可上传更多附件</font></td></tr>
  11. <td colspan="2" >{lang attachment} ({lang lower_than} $maxattachsize_kb kb <!--{if $attachextensions}-->, {lang attachment_allow_exts}: $attachextensions
  12. <!--{/if}-->)  <font color="#800000">   使用水印标签</font><input type="checkbox" name="watermark" value="1" >   <img src="images/watermark.gif">
  13. </td></tr>
  14.         <!--{loop $multiattach $key $temp}-->
  15.        
  16. <!--{if $key==1}-->       
  17. <tbody id="attach_$key" style=""><!--{else}--><tbody id="attach_$key" style="display: none"><!--{/if}-->
  18. <tr bgcolor="{ALTBG2}"><td width="50%">
  19. <!--{if $allowsetattachperm}-->{lang require}{lang credit_title}:
  20. <input type="text" name="attachperm[]" value="0" size="1"><!--{/if}--> 描述:
  21. <input type="text" name="attachtext[]" size="15" style="border:1px solid #008000; ">{lang attachment}:
  22. <input type="file" name="attach[]" size="15">
  23. </td><td width="50%">
  24. <!--{if $allowsetattachperm}-->{lang require}{lang credit_title}:
  25. <input type="text" name="attachperm[]" value="0" size="1"><!--{/if}-->描述:
  26. <input type="text" name="attachtext[]" size="15" style="border:1px solid #008000; ">{lang attachment}:
  27. <input type="file" name="attach[]" size="15">
  28. </td></tr></tbody><!--{/loop}--></table>
复制代码

本帖子中包含更多资源

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

x
回复

使用道具 举报

88212560 发表于 2005-7-14 05:59:38 | 显示全部楼层

测试

掉的大了  都改坏了
回复

使用道具 举报

88212560 发表于 2005-7-14 06:00:16 | 显示全部楼层

很好先看看

掉的大了  都改坏了
回复

使用道具 举报

conanwchen 发表于 2005-8-7 01:42:22 | 显示全部楼层
收藏!
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-6-2 12:16 , Processed in 0.092012 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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