<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>~SingleForum~无废话记录~ Topic: input file赋值</title>
<link>http://www.ll19.com/bb/</link>
<description>~19~记录点有用的好吗？少说废话少装b~</description>
<language>en</language>
<pubDate>Tue, 07 Feb 2012 08:49:43 +0000</pubDate>

<item>
<title>admin on "input file赋值"</title>
<link>http://www.ll19.com/bb/topic/67#post-67</link>
<pubDate>Tue, 07 Apr 2009 08:18:07 +0000</pubDate>
<dc:creator>admin</dc:creator>
<guid isPermaLink="false">67@http://www.ll19.com/bb/</guid>
<description>&#60;p&#62;input的file文本中，为了安全考虑，一般是只读或者不允许赋值的，只能用户鼠标点击才能上传文件。除了使用ActiveX，使用JS是无法为FILE赋值的，把客户端的文件直接上传肯定也是被禁止之列。&#60;/p&#62;
&#60;p&#62;下面的ActiveX赋值方法：&#60;/p&#62;
&#60;p&#62;<div class="igBar"><span id="ljavascript-1"><a href="#" onclick="javascript:showPlainTxt('javascript-1'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">JAVASCRIPT:</span><br /><div id="javascript-1">
<div class="javascript"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&amp;#60;br /&amp;#62;</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> WshShell=<span style="color: #003366; font-weight: bold;">new</span> ActiveXObject<span style="color: #66cc66;">&#40;</span>&amp;#34;WScript.<span style="color: #006600;">Shell</span>&amp;#34;<span style="color: #66cc66;">&#41;</span>;&amp;#60;br /&amp;#62;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'***'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #000066;">focus</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;&amp;#60;br /&amp;#62;</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; WshShell.<span style="color: #006600;">sendKeys</span><span style="color: #66cc66;">&#40;</span>value<span style="color: #66cc66;">&#41;</span>; &amp;#60;/p&amp;#62;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&amp;#60;p&amp;#62; </div></li></ol></div>
</div></div><br />
&#60;/p&#62;</description>
</item>

</channel>
</rss>

