有个网页INPUT里没有name的file 怎么自动输入文件名
有id 但是我用_IEGetObjById这个不管用网页的原码是
<body>
<form name="form1" method="post" action="logReport.aspx" id="form1">
<div>
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKLTk1OTM5NDI0Ng9kFgICAQ9kFggCCw9kFgICAg9kFgJmD2QWBgIBDw8WAh4EVGV4dAUY5LuK5pel5pel5b+X5bey5LiK5oql77yBZGQCAw8PFgQeC05hdmlnYXRlVXJsZR4HVmlzaWJsZWhkZAIFDw8WAh4HRW5hYmxlZGhkZAINDw8WAh8ABRUyMDEwLTgtMjDoh7MyMDEwLTktMThkZAIXDzwrAA0BAA8WBB4LXyFEYXRhQm91bmRnHgtfIUl0ZW1Db3VudAIFZBYCZg9kFgwCAQ8PZBYEHgtvbm1vdXNlb3ZlcgUkdGhpcy5zdHlsZS5iYWNrZ3JvdW5kQ29sb3I9JyNjMWViZmYnHgpvbm1vdXNlb3V0BSR0aGlzLnN0eWxlLmJhY2tncm91bmRDb2xvcj0nI0ZGRkZGRicWDGYPZBYCZg8VAQkyMDEwLTktMThkAgEPZBYCZg8VAREyMDEwLTktMTkgODowODo0MGQCAg9kFgJmDxUBBTIwMC42ZAIDD2QWAmYPFQESMjAxMC05LTE4IDIxOjIwOjU3ZAIED2QWAmYPFQEG5q2j5bi4ZAIFD2QWAmYPFQEGMjMyOTk1ZAICDw9kFgQfBgUkdGhpcy5zdHlsZS5iYWNrZ3JvdW5kQ29sb3I9JyNjMWViZmYnHwcFJHRoaXMuc3R5bGUuYmFja2dyb3VuZENvbG9yPScjRkZGRkZGJxYMZg9kFgJmDxUBCTIwMTAtOS0xN2QCAQ9kFgJmDxUBETIwMTAtOS0xOCA4OjA4OjM0ZAICD2QWAmYPFQEFMjAwLjZkAgMPZBYCZg8VAREyMDEwLTktMTggMjoxNjoxMWQCBA9kFgJmDxUBBuato+W4uGQCBQ9kFgJmDxUBBjIzMjA0NGQCAw8PZBYEHwYFJHRoaXMuc3R5bGUuYmFja2dyb3VuZENvbG9yPScjYzFlYmZmJx8HBSR0aGlzLnN0eWxlLmJhY2tncm91bmRDb2xvcj0nI0ZGRkZGRicWDGYPZBYCZg8VAQkyMDEwLTktMTZkAgEPZBYCZg8VAREyMDEwLTktMTcgODoyMzozMmQCAg9kFgJmDxUBAzE2OWQCAw9kFgJmDxUBETIwMTAtOS0xNyA2OjUxOjU2ZAIED2QWAmYPFQEG5q2j5bi4ZAIFD2QWAmYPFQEGMjMxMTM2ZAIEDw9kFgQfBgUkdGhpcy5zdHlsZS5iYWNrZ3JvdW5kQ29sb3I9JyNjMWViZmYnHwcFJHRoaXMuc3R5bGUuYmFja2dyb3VuZENvbG9yPScjRkZGRkZGJxYMZg9kFgJmDxUBCTIwMTAtOS0xNWQCAQ9kFgJmDxUBETIwMTAtOS0xNiA4OjM2OjAwZAICD2QWAmYPFQEFMTY0LjNkAgMPZBYCZg8VAREyMDEwLTktMTYgNDo1MDoyNGQCBA9kFgJmDxUBBuato+W4uGQCBQ9kFgJmDxUBBjIzMDI1M2QCBQ8PZBYEHwYFJHRoaXMuc3R5bGUuYmFja2dyb3VuZENvbG9yPScjYzFlYmZmJx8HBSR0aGlzLnN0eWxlLmJhY2tncm91bmRDb2xvcj0nI0ZGRkZGRicWDGYPZBYCZg8VAQkyMDEwLTktMTRkAgEPZBYCZg8VAREyMDEwLTktMTUgOToyMTo1N2QCAg9kFgJmDxUBBTE2Ny4xZAIDD2QWAmYPFQERMjAxMC05LTE1IDY6NTA6NDZkAgQPZBYCZg8VAQbmraPluLhkAgUPZBYCZg8VAQYyMjkzNjlkAgYPDxYCHwJoZGQCGQ8PFgIeC1JlY29yZGNvdW50Ah5kZBgBBQlHcmlkVmlldzEPPCsACgEIAgFktk4aJgj+/aQadbpXg3FI1OAqlUw=" />
</div>
<script language="Javascript"><!--
--></script>
<div>
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWDQLp4f/gCQKVtaqrBwL4g6zcDgKu29yYAwKNoqf3BgK27dK7DwKM54rGBgKf4ezNCAKf4YSBBALm3ravBQKelIP4CQKSlM/7CQK7q7GGCL0cF38GtxokCC1AdhxrcsrKZ5uO" />
</div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="30" background="../../images/tab_05.gif">
<input name="fileName" type="hidden" id="fileName" />
<input name="fSize" type="hidden" id="fSize" />
<input name="creatTime" type="hidden" id="creatTime" />
<input name="lastmodTime" type="hidden" id="lastmodTime" />
<input name="cafenum" type="hidden" id="cafenum" value="41010310000104" />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="12" height="30">
<img src="../../images/tab_03.gif" width="12" height="30" />
</td>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="46%" valign="middle">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="5%">
<div align="center">
<img src="../../images/tb.gif" width="16" height="16" /></div>
</td>
<td width="95%">
<span>你当前的位置</span>:[日常报备]-[日志上报]
</td>
</tr>
</table>
</td>
<td width="54%">
</td>
</tr>
</table>
</td>
<td width="16">
<img src="../../images/tab_07.gif" width="16" height="30" />
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="8" background="../../images/tab_12.gif">
</td>
<td>
<table id="Reptable" width="98%" border="0" cellpadding="0" cellspacing="1" bgcolor="b5d6e6" style="margin-top: 5px; margin-bottom: 5px">
<tr>
<td height="24" colspan="2" background="../../images/tab_bg.gif" bgcolor="#FFFFFF" style="padding-left: 15px;">
日志上报:
</td>
</tr>
<tr>
<td height="25" colspan="2" align="left" bgcolor="#E6F7FF" style="padding-left: 15px; line-height: 2;">
<table width="680px" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="50px">
说明:
</td>
<td>
1. 日志上报为过滤王或雨人系统日志,具体路径:
</td>
</tr>
<tr>
<td width="50px">
</td>
<tdstyle="padding-left:18px;">
过滤王日志路径:“过滤王安装目录\log\access_log\”</span>
</td>
</tr>
<tr>
<td width="50px">
</td>
<td style="padding-left:18px; color:Red;">
过滤王升级后路径: “安装盘符根目录\FNSMS6\DataBase\2010月份\AccessLog2010开头文件</td>
</tr>
<tr>
<td width="50px">
</td>
<td style="padding-left:18px; color:Red;">
如升级安装在c盘,2010年6月8日志文件:C:\FNSMS6\Database\201006\AccessLog20100608_20100608*****
文件</td>
</tr>
<tr>
<td width="50px">
</td>
<td style="padding-left:18px;">
雨人日志路径:“网络神探安装目录\NetDetective\DBBak”</span>
</td>
</tr>
<tr>
<td width="50px">
</td>
<td>
2. 上报时间:每天上午10点前,超过10点为违规上报,请说明情况否则会扣除网吧积分。
</td>
</tr>
<tr>
<td width="50px" class="style1">
</td>
<td class="style1">
3. 上报日志为前一天日志,每天只能上报一次;请一次性选择好系统日志文件。
</td>
</tr>
<tr>
<td width="50px">
</td>
<td>
4. 每天0点至1点不得上报日志;
</td>
</tr>
<tr>
<td width="50px">
</td>
<td>
5. 注意事项:上报日志需要设置浏览器 <a href="notice/settings.html" title="查看浏览器配置" target="_blank" style="font-size: 12px; color: #FF0000; text-decoration: underline">
请查看[详细设置]</a> 。
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF" align="center" colspan="2">
<table width="98%" border="0" cellpadding="0" cellspacing="1" bgcolor="b5d6e6" style="margin-top: 5px; margin-bottom: 5px">
<tr>
<td height="25" bgcolor="#c1ebff" align="left" colspan="2" style="padding-left: 30px; line-height: 2;">
<span id="MsgLab" style="color:#FF3300;">今日日志已上报!</span>
* 选择前一天日志,不要选择当天日志进行上传。</td>
</tr>
<tr>
<td width="20%" height="25" bgcolor="#c1ebff" align="right">
选择日志文件:
</td>
<td width="80%" bgcolor="#FFFFFF" align="left">
<input type="file" id="my_file" onchange="SumbitFileAccessInfo();" width="300px" /> 无法上传或提示"请选择上报日志",请点击:<a href="notice/settings.html" title="查看浏览器配置" target="_blank" style="font-size: 14px; color: #FF0000; text-decoration: underline">查看解决方法>></a>
</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF" align="center" colspan="2">
<input type="submit" name="Button1" value="上报" id="Button1" disabled="disabled" style="width:70px;" />
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="b5d6e6" style="margin-top: 5px; margin-bottom: 5px">
<tr>
<td height="24" background="../../images/tab_bg.gif" bgcolor="#FFFFFF" style="padding-left: 20px;">
日志查询:(查询时间为:<span id="FindDate">2010-8-20至2010-9-18</span>
)
</td>
</tr>
<tr>
<td height="25" align="center" bgcolor="#FFFFFF">
<table width="98%" border="0" align="center" bgcolor="b5d6e6" cellpadding="0" cellspacing="1" style="margin-top: 5px; margin-bottom: 5px">
<tr>
<td bgcolor="#D5EFFD" width="10%">
<div align="right">
日志时间开始:</div>
</td>
<td height="20" width="15%" bgcolor="#FFFFFF" align="left">
<input name="RepSTime" type="text" id="RepSTime" onfocus="WdatePicker()" style="width:120px;" />
</td>
<td width="10%" align="left" bgcolor="#D5EFFD">
<div align="right">
日志时间结束:</div>
</td>
<td width="15%" align="left" bgcolor="#FFFFFF">
<input name="RepETime" type="text" id="RepETime" onfocus="WdatePicker({minDate:'#F{$dp.$D(\'RepSTime\')}'})" style="width:120px;" />
</td>
<td width="10%" align="left" bgcolor="#D5EFFD">
<div align="right">
日志状态:</div>
</td>
<td align="left" width="15%" bgcolor="#FFFFFF" align="left">
<select name="FlagDList" id="FlagDList">
<option value="-请选择上报状态-">-请选择上报状态-</option>
<option value="-1">正常</option>
<option value="1">违规</option>
</select>
</td>
<td height="20" align="left" bgcolor="#FFFFFF">
<input type="submit" name="Button2" value="查找" id="Button2" style="width:70px;" />
</td>
</tr>
</table>
<div>
<table cellspacing="1" cellpadding="0" align="Center" rules="all" bgcolor="#b5d6e6" border="0" id="GridView1" style="border-width:0px;width:98%;margin-bottom: 5px; margin-top: 10px">
<tr class="tableheader" align="center">
<th scope="col">日志日期</th><th scope="col">日志上报时间</th><th scope="col">日志大小</th><th scope="col">日志修改时间</th><th scope="col">日志状态</th><th scope="col">操作</th>
</tr><tr onmouseover="this.style.backgroundColor='#c1ebff'" onmouseout="this.style.backgroundColor='#FFFFFF'" style="background-color:White;height:22px;">
<td align="center" valign="middle" style="height:20px;width:120px;">
2010-9-18
</td><td align="center" valign="middle">
2010-9-19 8:08:40
</td><td align="center" valign="middle" style="width:90px;">
200.6
M
</td><td align="center" valign="middle" style="width:160px;">
2010-9-18 21:20:57
</td><td align="center" valign="middle" style="width:100px;">
正常
</td><td align="center" valign="middle" style="width:90px;">
<a href="#" onclick="popUp('LogDetails.aspx?id=232995',570,390)">查 看</a>
</td>
</tr><tr onmouseover="this.style.backgroundColor='#c1ebff'" onmouseout="this.style.backgroundColor='#FFFFFF'" style="background-color:White;height:22px;">
<td align="center" valign="middle" style="height:20px;width:120px;">
2010-9-17
</td><td align="center" valign="middle">
2010-9-18 8:08:34
</td><td align="center" valign="middle" style="width:90px;">
200.6
M
</td><td align="center" valign="middle" style="width:160px;">
2010-9-18 2:16:11
</td><td align="center" valign="middle" style="width:100px;">
正常
</td><td align="center" valign="middle" style="width:90px;">
<a href="#" onclick="popUp('LogDetails.aspx?id=232044',570,390)">查 看</a>
</td>
</tr><tr onmouseover="this.style.backgroundColor='#c1ebff'" onmouseout="this.style.backgroundColor='#FFFFFF'" style="background-color:White;height:22px;">
<td align="center" valign="middle" style="height:20px;width:120px;">
2010-9-16
</td><td align="center" valign="middle">
2010-9-17 8:23:32
</td><td align="center" valign="middle" style="width:90px;">
169
M
</td><td align="center" valign="middle" style="width:160px;">
2010-9-17 6:51:56
</td><td align="center" valign="middle" style="width:100px;">
正常
</td><td align="center" valign="middle" style="width:90px;">
<a href="#" onclick="popUp('LogDetails.aspx?id=231136',570,390)">查 看</a>
</td>
</tr><tr onmouseover="this.style.backgroundColor='#c1ebff'" onmouseout="this.style.backgroundColor='#FFFFFF'" style="background-color:White;height:22px;">
<td align="center" valign="middle" style="height:20px;width:120px;">
2010-9-15
</td><td align="center" valign="middle">
2010-9-16 8:36:00
</td><td align="center" valign="middle" style="width:90px;">
164.3
M
</td><td align="center" valign="middle" style="width:160px;">
2010-9-16 4:50:24
</td><td align="center" valign="middle" style="width:100px;">
正常
</td><td align="center" valign="middle" style="width:90px;">
<a href="#" onclick="popUp('LogDetails.aspx?id=230253',570,390)">查 看</a>
</td>
</tr><tr onmouseover="this.style.backgroundColor='#c1ebff'" onmouseout="this.style.backgroundColor='#FFFFFF'" style="background-color:White;height:22px;">
<td align="center" valign="middle" style="height:20px;width:120px;">
2010-9-14
</td><td align="center" valign="middle">
2010-9-15 9:21:57
</td><td align="center" valign="middle" style="width:90px;">
167.1
M
</td><td align="center" valign="middle" style="width:160px;">
2010-9-15 6:50:46
</td><td align="center" valign="middle" style="width:100px;">
正常
</td><td align="center" valign="middle" style="width:90px;">
<a href="#" onclick="popUp('LogDetails.aspx?id=229369',570,390)">查 看</a>
</td>
</tr>
</table>
</div>
<!-- AspNetPager V7.2 for VS2005 & VS2008Copyright:2003-2008 Webdiyer (www.webdiyer.com) -->
<div id="AspNetPager1" class="page">
<div class="page" style="width:230px;float:left;">
第1页,共6页,每页5条,共 <font color="red">30</font> 条
</div><div class="page" style="float:left;">
<a disabled="disabled" style="margin-right:5px;">首页</a><a disabled="disabled" style="margin-right:5px;">上一页</a><span style="margin-right:5px;font-weight:Bold;color:red;">1</span><a href="javascript:__doPostBack('AspNetPager1','2')" style="margin-right:5px;">2</a><a href="javascript:__doPostBack('AspNetPager1','3')" style="margin-right:5px;">3</a><a href="javascript:__doPostBack('AspNetPager1','4')" style="margin-right:5px;">4</a><a href="javascript:__doPostBack('AspNetPager1','5')" style="margin-right:5px;">5</a><a href="javascript:__doPostBack('AspNetPager1','6')" style="margin-right:5px;">...</a><a href="javascript:__doPostBack('AspNetPager1','2')" style="margin-right:5px;">下一页</a><a href="javascript:__doPostBack('AspNetPager1','6')" style="margin-right:5px;">尾页</a> 转到<select name="AspNetPager1_input" id="AspNetPager1_input" onchange="__doPostBack('AspNetPager1','')">
<option value="1" selected="true">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option>
</select>页
</div>
</div>
<!-- AspNetPager V7.2 for VS2005 & VS2008 End -->
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="35" background="../../images/tab_19.gif">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="12" height="35">
<img src="../../images/tab_18.gif" width="12" height="35" />
</td>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="23" class="STYLE4">
</td>
<td>
</td>
</tr>
</table>
</td>
<td width="16">
<img src="../../images/tab_20.gif" width="16" height="35" />
</td>
</tr>
</table>
</td>
</tr>
</table>
<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['form1'];
if (!theForm) {
theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
//]]>
</script>
</form>
</body>
在 选择日志文件:后面的我想自动输入文件名 但是这个控件没name 怎么办 这个问题啊,难啊 代码太长看着麻烦 简化一点吧
<td width="20%" height="25" bgcolor="#c1ebff" align="right">
选择日志文件:
</td>
<td width="80%" bgcolor="#FFFFFF" align="left">
<input type="file" id="my_file" width="300px" /> 无法上传或提示"请选择上报日志",请点击:<a href="notice/settings.html" title="查看浏览器配置" target="_blank" style="font-size: 14px; color: #FF0000; text-decoration: underline">查看解决方法>></a>
</td>
就是在选择日志文件:自动输入我想上传的日志文件名 下班前再顶一下 高手们帮忙看看怎么办! 终于找到解决办法了
使用ControlSend就可以了
页:
[1]