会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
首页
订阅
管理
126的上传文件界面
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD><TITLE>上传文件</title> <META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK href="上传文件.files/style.css" type=text/css rel=stylesheet> </head> <BODY class=upload> <FORM id=uploadForm name=uploadForm action="" method=post encType=multipart/form-data> <TABLE class=twp_all cellSpacing=0 cellPadding=0 width="100%" border=0> <TBODY> <TR> <TD class="oplist_op_addfile"> <DIV class=oplist_op_af_inner id=buttonDiv><A class=abtn hideFocus href="javascript:void(0);"> <DIV class=addbtn id=uploadInput style="border:1px solid blue; background:#DDD;"></div></a> <SCRIPT language=javascript> //WPU.init(); function rrfUploadShow(){ var oDiv = document.getElementById("uploadInput"); //alert(oDiv); var oInput = document.createElement("INPUT"); oInput.id = "input"+1; oInput.name = "input"+1; oInput.type = "file"; oInput.className = "input_browser"; oInput.hideFocus = true; oInput.size = 1; oInput.onchange=rrfUploadAdd; oDiv.appendChild(oInput); } rrfUploadShow(); function rrfUploadAdd(){ var index = WPU.index - 1; var obj = WPU.list[index]; var oInput = obj.input; var sUrl = oInput.value; var sPic = "unknown"; var sExten = sUrl.substring(sUrl.lastIndexOf(".")+1,sUrl.length); if(WPU.map[sExten]){ sPic = WPU.map[sExten]; } sPic = WPU.imgurl + sPic + ".gif"; var oUploadDiv = $("uploadDiv"); var oDiv = document.createElement("DIV"); oDiv.id = "div"+index; var sHtml = '\ <table width="100%" border="0" cellspacing="0" cellpadding="0" class="oplist_filelist">\ <tr class="tr_file">\ <td class="td_pathlist"><img src="'+sPic+'" width="16" height="16"> '+sUrl+'</td>\ <td nowrap class="td_operate"><a href="javascript:WPU.del('+index+');" hideFocus><img src="'+getImage('blank.gif')+'" class="img_opicons"> 移除</a> <span id="unzip'+index+'" style="display:none"><input name="unzip" id="unzip" type="checkbox"/>自动解压</span></td>\ </tr>\ </table>\ '; oDiv.innerHTML = sHtml; oUploadDiv.appendChild(oDiv); oInput.style.display="none"; obj.div = oDiv; obj.unzip = $("unzip"+index); obj.exten = sExten; WPU.show(); $("divNone").style.display = "none"; } </script> </div> </td></tr> <TR> <TD class="oplist_op_con oplist_op_con_list fit_box"><!--高度自适应开始--> <DIV class=twp_con_div2> <TABLE class=oplist_filelist cellSpacing=0 cellPadding=0 width="100%" border=0> <TBODY> <TR class=tbl_inner_title> <TD class=td_pathlist>文件路径</td> <TD class=td_operate noWrap>操作</td></tr></tbody></table> <DIV id=uploadDiv> <DIV id=divNone></div></div><!--doc list end--></div><!--高度自适应结束--></td></tr> </tbody></table></form> <SCRIPT language=javascript type=text/javascript><!-- if( document.domain == "126.com" && window.top.frames["jsFrame"] ){ var GE = window.top.frames["jsFrame"].GE; if( GE.member && GE.member.isVipMember){ document.getElementById("fromUrlTd").parentNode.className = ""; } } //--></script> </body></html>
Posted on
2008-05-26 11:30
古代
阅读(
366
) 评论(
0
)
编辑
收藏
举报
刷新页面
返回顶部