<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feed.feedsky.com/styles/feedsky2.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" version="2.0"><channel><atom:link href="http://feed.feedsky.com/hubro" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feed.feedsky.com/hubro" type="application/rss+xml"></fs:self_link><lastBuildDate>Thu, 11 Mar 2010 11:18:51 GMT</lastBuildDate><title>hubro's Blog</title><link>http://www.hubro.net/</link><language>en-us</language><copyright>Hubro.net</copyright><pubDate>Thu, 11 Mar 2010 11:18:51 GMT</pubDate><dc:creator>hubro.net@hotmail.com</dc:creator><item><title>TD StylePADDINGRIGHT 5px</title><link>http://www.hubro.net/2010/03/11/TDStylePADDINGRIGHT5px.aspx</link><trackback:ping>http://www.hubro.net/Trackback.aspx?guid=5f3d8996-b1eb-4b7d-8f37-dd85e712c60d</trackback:ping><pingback:server>http://www.hubro.net/pingback.aspx</pingback:server><pingback:target>http://www.hubro.net/PermaLink,guid,5f3d8996-b1eb-4b7d-8f37-dd85e712c60d.aspx</pingback:target><body xmlns="http://www.w3.org/1999/xhtml"><p><table style="MARGIN-BOTTOM: 0px" cellspacing="0" cellpadding="0" width="100%"><tbody><tr><td style="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; PADDING-BOTTOM: 4px; PADDING-TOP: 4px" valign="top" colspan="2"><pre><font color="#1000a0">private</font><a title="System.Void" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.0.0:b77a5c561934e089/System.Void">void</a><b><a class="bold" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://PingState:1.0.0.0/PingState.Form1/PlaySound()">PlaySound</a></b>
                    ()
{
                    <a title="System.String" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.0.0:b77a5c561934e089/System.String">string</a><b>path</b>
                    =
                    <a title="System.Environment" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.0.0:b77a5c561934e089/System.Environment">Environment</a>
                    .
                    <a title="string System.Environment.CurrentDirectory { ... }" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.0.0:b77a5c561934e089/System.Environment/property:CurrentDirectory:String">CurrentDirectory</a>
                    +
                    <font color="#800000">@&quot;\alert.wav&quot;</font>
                    ;
                    <font color="#1000a0">if</font>
                    (
                    <a title="System.IO.File" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.0.0:b77a5c561934e089/System.IO.File">File</a>
                    .
                    <a title="bool System.IO.File.Exists(string);" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.0.0:b77a5c561934e089/System.IO.File/Exists(String):Boolean">Exists</a>
                    (
                    <a title="string path // Local Variable">path</a>
                    ))
{
                    <a title="SpeechLib.SpVoiceClass" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://Interop.SpeechLib:5.0.0.0/SpeechLib.SpVoiceClass">SpVoiceClass</a><b>class2</b>
                    =
                    <font color="#1000a0">new</font><a title="SpeechLib.SpVoiceClass.SpVoiceClass();" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://Interop.SpeechLib:5.0.0.0/SpeechLib.SpVoiceClass/.ctor()">SpVoiceClass</a>
                    ();
                    <a title="SpeechLib.SpFileStreamClass" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://Interop.SpeechLib:5.0.0.0/SpeechLib.SpFileStreamClass">SpFileStreamClass</a><b>class3</b>
                    =
                    <font color="#1000a0">new</font><a title="SpeechLib.SpFileStreamClass.SpFileStreamClass();" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://Interop.SpeechLib:5.0.0.0/SpeechLib.SpFileStreamClass/.ctor()">SpFileStreamClass</a>
                    ();
                    <a title="SpFileStreamClass class3 // Local Variable">class3</a>
                    .
                    <a title="void SpeechLib.SpFileStreamClass.Open(string, SpeechStreamFileMode, bool);" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://Interop.SpeechLib:5.0.0.0/SpeechLib.SpFileStreamClass/Open(String,SpeechLib.SpeechStreamFileMode,Boolean)">Open</a>
                    (
                    <a title="string path // Local Variable">path</a>
                    ,
                    <a title="SpeechLib.SpeechStreamFileMode" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://Interop.SpeechLib:5.0.0.0/SpeechLib.SpeechStreamFileMode">SpeechStreamFileMode</a>
                    .
                    <a title="SpeechStreamFileMode SpeechLib.SpeechStreamFileMode.SSFMOpenForRead;" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://Interop.SpeechLib:5.0.0.0/SpeechLib.SpeechStreamFileMode/SSFMOpenForRead">SSFMOpenForRead</a>
                    ,
                    <font color="#800000">true</font>
                    );
                    <a title="SpeechLib.ISpeechBaseStream" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://Interop.SpeechLib:5.0.0.0/SpeechLib.ISpeechBaseStream">ISpeechBaseStream</a><b>stream</b>
                    =
                    <a title="SpFileStreamClass class3 // Local Variable">class3</a>
                    ;
                    <a title="SpVoiceClass class2 // Local Variable">class2</a>
                    .
                    <a title="int SpeechLib.SpVoiceClass.SpeakStream(ISpeechBaseStream, SpeechVoiceSpeakFlags);" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://Interop.SpeechLib:5.0.0.0/SpeechLib.SpVoiceClass/SpeakStream(SpeechLib.ISpeechBaseStream,SpeechLib.SpeechVoiceSpeakFlags):Int32">SpeakStream</a>
                    (
                    <a title="ISpeechBaseStream stream // Local Variable">stream</a>
                    ,
                    <a title="SpeechLib.SpeechVoiceSpeakFlags" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://Interop.SpeechLib:5.0.0.0/SpeechLib.SpeechVoiceSpeakFlags">SpeechVoiceSpeakFlags</a>
                    .
                    <a title="SpeechVoiceSpeakFlags SpeechLib.SpeechVoiceSpeakFlags.SVSFIsFilename;" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://Interop.SpeechLib:5.0.0.0/SpeechLib.SpeechVoiceSpeakFlags/SVSFIsFilename">SVSFIsFilename</a>
                    );
                    <a title="SpFileStreamClass class3 // Local Variable">class3</a>
                    .
                    <a title="void SpeechLib.SpFileStreamClass.Close();" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://Interop.SpeechLib:5.0.0.0/SpeechLib.SpFileStreamClass/Close()">Close</a>
                    ();
} }
                  </pre></td></tr></tbody></table></p><img width="0" height="0" src="http://www.hubro.net/aggbug.ashx?id=5f3d8996-b1eb-4b7d-8f37-dd85e712c60d"></img></body><description>&lt;p&gt;
&lt;table style=&quot;MARGIN-BOTTOM: 0px&quot; cellspacing=0 cellpadding=0 width=&quot;100%&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;PADDING-RIGHT: 5px; PADDING-LEFT: 5px; PADDING-BOTTOM: 4px; PADDING-TOP: 4px&quot; valign=top colspan=2&gt;
&lt;pre&gt;&lt;font color=#1000a0&gt;private&lt;/font&gt; &lt;a title=System.Void href=&quot;http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.0.0:b77a5c561934e089/System.Void&quot;&gt;void&lt;/a&gt; &lt;b&gt;&lt;a class=bold href=&quot;http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://PingState:1.0.0.0/PingState.Form1/PlaySound()&quot;&gt;PlaySound&lt;/a&gt;&lt;/b&gt;()
{ &lt;a title=System.String href=&quot;http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.0.0:b77a5c561934e089/System.String&quot;&gt;string&lt;/a&gt; &lt;b&gt;path&lt;/b&gt; = &lt;a title=System.Environment href=&quot;http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.0.0:b77a5c561934e089/System.Environment&quot;&gt;Environment&lt;/a&gt;.&lt;a title=&quot;string System.Environment.CurrentDirectory { ... }&quot; href=&quot;http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.0.0:b77a5c561934e089/System.Environment/property:CurrentDirectory:String&quot;&gt;CurrentDirectory&lt;/a&gt; + &lt;font color=#800000&gt;@&quot;\alert.wav&quot;&lt;/font&gt;; &lt;font color=#1000a0&gt;if&lt;/font&gt; (&lt;a title=System.IO.File href=&quot;http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.0.0:b77a5c561934e089/System.IO.File&quot;&gt;File&lt;/a&gt;.&lt;a title=&quot;bool System.IO.File.Exists(string);&quot; href=&quot;http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.0.0:b77a5c561934e089/System.IO.File/Exists(String):Boolean&quot;&gt;Exists&lt;/a&gt;(&lt;a title=&quot;string path // Local Variable&quot;&gt;path&lt;/a&gt;))
{ &lt;a title=SpeechLib.SpVoiceClass href=&quot;http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://Interop.SpeechLib:5.0.0.0/SpeechLib.SpVoiceClass&quot;&gt;SpVoiceClass&lt;/a&gt; &lt;b&gt;class2&lt;/b&gt; = &lt;font color=#1000a0&gt;new&lt;/font&gt; &lt;a title=SpeechLib.SpVoiceClass.SpVoiceClass(); href=&quot;http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://Interop.SpeechLib:5.0.0.0/SpeechLib.SpVoiceClass/.ctor()&quot;&gt;SpVoiceClass&lt;/a&gt;(); &lt;a title=SpeechLib.SpFileStreamClass href=&quot;http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://Interop.SpeechLib:5.0.0.0/SpeechLib.SpFileStreamClass&quot;&gt;SpFileStreamClass&lt;/a&gt; &lt;b&gt;class3&lt;/b&gt; = &lt;font color=#1000a0&gt;new&lt;/font&gt; &lt;a title=SpeechLib.SpFileStreamClass.SpFileStreamClass(); href=&quot;http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://Interop.SpeechLib:5.0.0.0/SpeechLib.SpFileStreamClass/.ctor()&quot;&gt;SpFileStreamClass&lt;/a&gt;(); &lt;a title=&quot;SpFileStreamClass class3 // Local Variable&quot;&gt;class3&lt;/a&gt;.&lt;a title=&quot;void SpeechLib.SpFileStreamClass.Open(string, SpeechStreamFileMode, bool);&quot; href=&quot;http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://Interop.SpeechLib:5.0.0.0/SpeechLib.SpFileStreamClass/Open(String,SpeechLib.SpeechStreamFileMode,Boolean)&quot;&gt;Open&lt;/a&gt;(&lt;a title=&quot;string path // Local Variable&quot;&gt;path&lt;/a&gt;, &lt;a title=SpeechLib.SpeechStreamFileMode href=&quot;http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://Interop.SpeechLib:5.0.0.0/SpeechLib.SpeechStreamFileMode&quot;&gt;SpeechStreamFileMode&lt;/a&gt;.&lt;a title=&quot;SpeechStreamFileMode SpeechLib.SpeechStreamFileMode.SSFMOpenForRead;&quot; href=&quot;http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://Interop.SpeechLib:5.0.0.0/SpeechLib.SpeechStreamFileMode/SSFMOpenForRead&quot;&gt;SSFMOpenForRead&lt;/a&gt;, &lt;font color=#800000&gt;true&lt;/font&gt;); &lt;a title=SpeechLib.ISpeechBaseStream href=&quot;http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://Interop.SpeechLib:5.0.0.0/SpeechLib.ISpeechBaseStream&quot;&gt;ISpeechBaseStream&lt;/a&gt; &lt;b&gt;stream&lt;/b&gt; = &lt;a title=&quot;SpFileStreamClass class3 // Local Variable&quot;&gt;class3&lt;/a&gt;; &lt;a title=&quot;SpVoiceClass class2 // Local Variable&quot;&gt;class2&lt;/a&gt;.&lt;a title=&quot;int SpeechLib.SpVoiceClass.SpeakStream(ISpeechBaseStream, SpeechVoiceSpeakFlags);&quot; href=&quot;http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://Interop.SpeechLib:5.0.0.0/SpeechLib.SpVoiceClass/SpeakStream(SpeechLib.ISpeechBaseStream,SpeechLib.SpeechVoiceSpeakFlags):Int32&quot;&gt;SpeakStream&lt;/a&gt;(&lt;a title=&quot;ISpeechBaseStream stream // Local Variable&quot;&gt;stream&lt;/a&gt;, &lt;a title=SpeechLib.SpeechVoiceSpeakFlags href=&quot;http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://Interop.SpeechLib:5.0.0.0/SpeechLib.SpeechVoiceSpeakFlags&quot;&gt;SpeechVoiceSpeakFlags&lt;/a&gt;.&lt;a title=&quot;SpeechVoiceSpeakFlags SpeechLib.SpeechVoiceSpeakFlags.SVSFIsFilename;&quot; href=&quot;http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://Interop.SpeechLib:5.0.0.0/SpeechLib.SpeechVoiceSpeakFlags/SVSFIsFilename&quot;&gt;SVSFIsFilename&lt;/a&gt;); &lt;a title=&quot;SpFileStreamClass class3 // Local Variable&quot;&gt;class3&lt;/a&gt;.&lt;a title=&quot;void SpeechLib.SpFileStreamClass.Close();&quot; href=&quot;http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://Interop.SpeechLib:5.0.0.0/SpeechLib.SpFileStreamClass/Close()&quot;&gt;Close&lt;/a&gt;();
} } &lt;/pre&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/p&gt;
&lt;img width=&quot;0&quot; height=&quot;0&quot; src=&quot;http://www.hubro.net/aggbug.ashx?id=5f3d8996-b1eb-4b7d-8f37-dd85e712c60d&quot; /&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/340773598/hubro/feedsky/s.gif?r=http://www.hubro.net/2010/03/11/TDStylePADDINGRIGHT5px.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/hubro/340773598/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/hubro/340773598/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Thu, 11 Mar 2010 19:18:51 +0800</pubDate><author>Your DisplayName here!</author><guid isPermaLink="false">http://www.hubro.net/PermaLink,guid,5f3d8996-b1eb-4b7d-8f37-dd85e712c60d.aspx</guid><dc:creator>Your DisplayName here!</dc:creator><fs:srclink>http://www.hubro.net/2010/03/11/TDStylePADDINGRIGHT5px.aspx</fs:srclink><fs:srcfeed>http://www.hubro.net/rss2.aspx</fs:srcfeed><fs:itemid>feedsky/hubro/~1221368/340773598/1223067</fs:itemid></item><item><title>动态加载JS方法</title><link>http://www.hubro.net/2009/10/16/%e5%8a%a8%e6%80%81%e5%8a%a0%e8%bd%bdJS%e6%96%b9%e6%b3%95.aspx</link><trackback:ping>http://www.hubro.net/Trackback.aspx?guid=21a31ea1-8b13-46c9-ac2e-4ba81fd2545a</trackback:ping><pingback:server>http://www.hubro.net/pingback.aspx</pingback:server><pingback:target>http://www.hubro.net/PermaLink,guid,21a31ea1-8b13-46c9-ac2e-4ba81fd2545a.aspx</pingback:target><body xmlns="http://www.w3.org/1999/xhtml"><pre><span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">var</span>
            sHTML=
            <span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4">&quot;&lt;input
type=button onclick=&quot;</span><span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">+</span><span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4">&quot;go2()&quot;</span><span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">+</span><span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4">&quot;
value='Click Me'&gt;&lt;BR&gt;&quot;</span><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">var</span>
            sScript='&lt;SCRIPT
DEFER&gt;' sScript
            <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span>
            sScript
            <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">+</span>
            '
            <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">function</span>
            go2(){
alert(
            <span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4">&quot;Hello
from inserted script.&quot;</span>
            ) }' sScript
            <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span>
            sScript
            <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">+</span>
            '&lt;/script'
            <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">+</span>
            '&gt;';
            <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">var</span>
            ScriptDiv=document.getElementById(
            <span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4">&quot;ScriptDiv&quot;</span>
            );
alert(ScriptDiv) ScriptDiv.insertAdjacentHTML(
            <span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4">&quot;afterBegin&quot;</span>
            ,sHTML
            <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">+</span>
            sScript);
          </span></pre><img width="0" height="0" src="http://www.hubro.net/aggbug.ashx?id=21a31ea1-8b13-46c9-ac2e-4ba81fd2545a"></img></body><description>&lt;pre&gt;&lt;span style=&quot;FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent&quot;&gt;&lt;span style=&quot;FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent&quot;&gt;var&lt;/span&gt; sHTML=&lt;span style=&quot;FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4&quot;&gt;&quot;&amp;lt;input
type=button onclick=&quot;&lt;/span&gt; &lt;span style=&quot;FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4&quot;&gt;&quot;go2()&quot;&lt;/span&gt; &lt;span style=&quot;FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4&quot;&gt;&quot;
value='Click Me'&amp;gt;&amp;lt;BR&amp;gt;&quot;&lt;/span&gt; &lt;span style=&quot;FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent&quot;&gt;var&lt;/span&gt; sScript='&amp;lt;SCRIPT
DEFER&amp;gt;' sScript &lt;span style=&quot;FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent&quot;&gt;=&lt;/span&gt; sScript &lt;span style=&quot;FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent&quot;&gt;+&lt;/span&gt; '&lt;span style=&quot;FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent&quot;&gt;function&lt;/span&gt; go2(){
alert(&lt;span style=&quot;FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4&quot;&gt;&quot;Hello
from inserted script.&quot;&lt;/span&gt;) }' sScript &lt;span style=&quot;FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent&quot;&gt;=&lt;/span&gt; sScript &lt;span style=&quot;FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent&quot;&gt;+&lt;/span&gt; '&amp;lt;/script' &lt;span style=&quot;FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent&quot;&gt;+&lt;/span&gt; '&amp;gt;'; &lt;span style=&quot;FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent&quot;&gt;var&lt;/span&gt; ScriptDiv=document.getElementById(&lt;span style=&quot;FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4&quot;&gt;&quot;ScriptDiv&quot;&lt;/span&gt;);
alert(ScriptDiv) ScriptDiv.insertAdjacentHTML(&lt;span style=&quot;FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4&quot;&gt;&quot;afterBegin&quot;&lt;/span&gt;,sHTML &lt;span style=&quot;FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent&quot;&gt;+&lt;/span&gt; sScript);&lt;/span&gt;&lt;/pre&gt;
&lt;img width=&quot;0&quot; height=&quot;0&quot; src=&quot;http://www.hubro.net/aggbug.ashx?id=21a31ea1-8b13-46c9-ac2e-4ba81fd2545a&quot; /&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/340773599/hubro/feedsky/s.gif?r=http://www.hubro.net/2009/10/16/%e5%8a%a8%e6%80%81%e5%8a%a0%e8%bd%bdJS%e6%96%b9%e6%b3%95.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/hubro/340773599/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/hubro/340773599/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Fri, 16 Oct 2009 15:13:10 +0800</pubDate><author>Your DisplayName here!</author><guid isPermaLink="false">http://www.hubro.net/PermaLink,guid,21a31ea1-8b13-46c9-ac2e-4ba81fd2545a.aspx</guid><dc:creator>Your DisplayName here!</dc:creator><fs:srclink>http://www.hubro.net/2009/10/16/%e5%8a%a8%e6%80%81%e5%8a%a0%e8%bd%bdJS%e6%96%b9%e6%b3%95.aspx</fs:srclink><fs:srcfeed>http://www.hubro.net/rss2.aspx</fs:srcfeed><fs:itemid>feedsky/hubro/~1221368/340773599/1223067</fs:itemid></item><item><title>读多个版面也不是不可能</title><link>http://www.hubro.net/2009/09/24/%e8%af%bb%e5%a4%9a%e4%b8%aa%e7%89%88%e9%9d%a2%e4%b9%9f%e4%b8%8d%e6%98%af%e4%b8%8d%e5%8f%af%e8%83%bd.aspx</link><trackback:ping>http://www.hubro.net/Trackback.aspx?guid=1da98cb1-b0d7-428d-9e22-8c0ee842e1da</trackback:ping><pingback:server>http://www.hubro.net/pingback.aspx</pingback:server><pingback:target>http://www.hubro.net/PermaLink,guid,1da98cb1-b0d7-428d-9e22-8c0ee842e1da.aspx</pingback:target><body xmlns="http://www.w3.org/1999/xhtml"><p>一般论坛多个版面代码基本上也是一样的,放在一起又有何不可</p><p><img src="http://www.hubro.net/content/binary/42342342.jpg" border="0"></img></p><p><img src="http://www.hubro.net/content/binary/23242143.jpg" border="0"></img></p><img width="0" height="0" src="http://www.hubro.net/aggbug.ashx?id=1da98cb1-b0d7-428d-9e22-8c0ee842e1da"></img></body><description>&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;
一般论坛多个版面代码基本上也是一样的,放在一起又有何不可
&lt;/p&gt;
&lt;p&gt;
&lt;img src=&quot;http://www.hubro.net/content/binary/42342342.jpg&quot; border=0&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;img src=&quot;http://www.hubro.net/content/binary/23242143.jpg&quot; border=0&gt;
&lt;/p&gt;
&lt;img width=&quot;0&quot; height=&quot;0&quot; src=&quot;http://www.hubro.net/aggbug.ashx?id=1da98cb1-b0d7-428d-9e22-8c0ee842e1da&quot; /&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/340773600/hubro/feedsky/s.gif?r=http://www.hubro.net/2009/09/24/%e8%af%bb%e5%a4%9a%e4%b8%aa%e7%89%88%e9%9d%a2%e4%b9%9f%e4%b8%8d%e6%98%af%e4%b8%8d%e5%8f%af%e8%83%bd.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/hubro/340773600/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/hubro/340773600/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>小程序</category><pubDate>Thu, 24 Sep 2009 22:37:17 +0800</pubDate><author>Your DisplayName here!</author><guid isPermaLink="false">http://www.hubro.net/PermaLink,guid,1da98cb1-b0d7-428d-9e22-8c0ee842e1da.aspx</guid><dc:creator>Your DisplayName here!</dc:creator><fs:srclink>http://www.hubro.net/2009/09/24/%e8%af%bb%e5%a4%9a%e4%b8%aa%e7%89%88%e9%9d%a2%e4%b9%9f%e4%b8%8d%e6%98%af%e4%b8%8d%e5%8f%af%e8%83%bd.aspx</fs:srclink><fs:srcfeed>http://www.hubro.net/rss2.aspx</fs:srcfeed><fs:itemid>feedsky/hubro/~1221368/340773600/1223067</fs:itemid></item><item><title>更名为ForumReader(论坛阅读器)</title><link>http://www.hubro.net/2009/06/19/%e6%9b%b4%e5%90%8d%e4%b8%baForumReader%e8%ae%ba%e5%9d%9b%e9%98%85%e8%af%bb%e5%99%a8.aspx</link><trackback:ping>http://www.hubro.net/Trackback.aspx?guid=a4d10e1b-eefb-4c3e-9af6-7e5db17d696e</trackback:ping><pingback:server>http://www.hubro.net/pingback.aspx</pingback:server><pingback:target>http://www.hubro.net/PermaLink,guid,a4d10e1b-eefb-4c3e-9af6-7e5db17d696e.aspx</pingback:target><body xmlns="http://www.w3.org/1999/xhtml"><p>断断续续修改,最后结果如下</p><ul><li>列表不再是一个了,可以同时多个</li><li>修改了事件委托,TAB加上了状态图标,GIF怎么不动?</li><li>针对CSDN的贴子回复增加了IFRAM读取,能在CSDN回贴了</li><li>可以重复登录了,针对的是登录页有登录判断过的论坛</li><li>程序集名改为ForumReader</li><li>
            增加了一个说明
            <a href="http://www.hubro.net/ForumReader">http://www.hubro.net/ForumReader</a></li></ul><p><img src="http://www.hubro.net/ForumReader/list.jpg"></img></p><img width="0" height="0" src="http://www.hubro.net/aggbug.ashx?id=a4d10e1b-eefb-4c3e-9af6-7e5db17d696e"></img></body><description>&lt;p&gt;
断断续续修改,最后结果如下
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
列表不再是一个了,可以同时多个&lt;/li&gt;
&lt;li&gt;
修改了事件委托,TAB加上了状态图标,GIF怎么不动?&lt;/li&gt;
&lt;li&gt;
针对CSDN的贴子回复增加了IFRAM读取,能在CSDN回贴了&lt;/li&gt;
&lt;li&gt;
可以重复登录了,针对的是登录页有登录判断过的论坛&lt;/li&gt;
&lt;li&gt;
程序集名改为ForumReader&lt;/li&gt;
&lt;li&gt;
增加了一个说明&lt;a href=&quot;http://www.hubro.net/ForumReader&quot;&gt;http://www.hubro.net/ForumReader&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
&lt;img src=&quot;http://www.hubro.net/ForumReader/list.jpg&quot;&gt;
&lt;/p&gt;
&lt;img width=&quot;0&quot; height=&quot;0&quot; src=&quot;http://www.hubro.net/aggbug.ashx?id=a4d10e1b-eefb-4c3e-9af6-7e5db17d696e&quot; /&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/340773601/hubro/feedsky/s.gif?r=http://www.hubro.net/2009/06/19/%e6%9b%b4%e5%90%8d%e4%b8%baForumReader%e8%ae%ba%e5%9d%9b%e9%98%85%e8%af%bb%e5%99%a8.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/hubro/340773601/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/hubro/340773601/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>小程序</category><pubDate>Fri, 19 Jun 2009 23:02:01 +0800</pubDate><author>Your DisplayName here!</author><guid isPermaLink="false">http://www.hubro.net/PermaLink,guid,a4d10e1b-eefb-4c3e-9af6-7e5db17d696e.aspx</guid><dc:creator>Your DisplayName here!</dc:creator><fs:srclink>http://www.hubro.net/2009/06/19/%e6%9b%b4%e5%90%8d%e4%b8%baForumReader%e8%ae%ba%e5%9d%9b%e9%98%85%e8%af%bb%e5%99%a8.aspx</fs:srclink><fs:srcfeed>http://www.hubro.net/rss2.aspx</fs:srcfeed><fs:itemid>feedsky/hubro/~1221368/340773601/1223067</fs:itemid></item><item><title>集合编辑器</title><link>http://www.hubro.net/2009/04/30/%e9%9b%86%e5%90%88%e7%bc%96%e8%be%91%e5%99%a8.aspx</link><trackback:ping>http://www.hubro.net/Trackback.aspx?guid=8f16e406-cfff-4731-b1a1-cb950793678a</trackback:ping><pingback:server>http://www.hubro.net/pingback.aspx</pingback:server><pingback:target>http://www.hubro.net/PermaLink,guid,8f16e406-cfff-4731-b1a1-cb950793678a.aspx</pingback:target><body xmlns="http://www.w3.org/1999/xhtml"><p>在.NET的属性编辑器PropertyGrid里,如果这个属性是一个集合,那么,.NET会给你一个集合编辑器窗口,很好用的东西,但是,这个东西不是继承Form或UserControl,没法像控件一样拿出来用,而是作为属性的注解,代理生成的窗体,具体情况没仔细看</p><p><img src="http://www.hubro.net/content/binary/PropertyGrid.gif" border="0"></img></p><p>搜了搜,找不到这样的控件,自已写个,原理也简单,关键是这个泛型集合赋值取值问题</p><p>集合采用ILIST传入传出,类的属性加上和用ProPertyGrid一样的注解,基本上实现了所需要的功能</p><p>最终效果</p><img src="http://www.hubro.net/content/binary/PropertyGridControl.gif"></img><p>具体实例在这里</p><a href="http://www.hubro.net/content/binary/WebBrowse.zip">WebBrowse.zip</a><img width="0" height="0" src="http://www.hubro.net/aggbug.ashx?id=8f16e406-cfff-4731-b1a1-cb950793678a"></img></body><description>&lt;p&gt;
在.NET的属性编辑器PropertyGrid里,如果这个属性是一个集合,那么,.NET会给你一个集合编辑器窗口,很好用的东西,但是,这个东西不是继承Form或UserControl,没法像控件一样拿出来用,而是作为属性的注解,代理生成的窗体,具体情况没仔细看
&lt;/p&gt;
&lt;p&gt;
&lt;img src=&quot;http://www.hubro.net/content/binary/PropertyGrid.gif&quot; border=0&gt;
&lt;/p&gt;
&lt;p&gt;
搜了搜,找不到这样的控件,自已写个,原理也简单,关键是这个泛型集合赋值取值问题
&lt;/p&gt;
&lt;p&gt;
集合采用ILIST传入传出,类的属性加上和用ProPertyGrid一样的注解,基本上实现了所需要的功能
&lt;/p&gt;
&lt;p&gt;
最终效果
&lt;/p&gt;
&lt;img src=&quot;http://www.hubro.net/content/binary/PropertyGridControl.gif&quot;&gt; 
&lt;p&gt;
具体实例在这里
&lt;/p&gt;
&lt;a href=&quot;http://www.hubro.net/content/binary/WebBrowse.zip&quot;&gt;WebBrowse.zip&lt;/a&gt;&lt;img width=&quot;0&quot; height=&quot;0&quot; src=&quot;http://www.hubro.net/aggbug.ashx?id=8f16e406-cfff-4731-b1a1-cb950793678a&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/hubro/340773602/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/hubro/340773602/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>小程序</category><pubDate>Thu, 30 Apr 2009 21:38:58 +0800</pubDate><author>Your DisplayName here!</author><guid isPermaLink="false">http://www.hubro.net/PermaLink,guid,8f16e406-cfff-4731-b1a1-cb950793678a.aspx</guid><dc:creator>Your DisplayName here!</dc:creator><fs:srclink>http://www.hubro.net/2009/04/30/%e9%9b%86%e5%90%88%e7%bc%96%e8%be%91%e5%99%a8.aspx</fs:srclink><fs:srcfeed>http://www.hubro.net/rss2.aspx</fs:srcfeed><fs:itemid>feedsky/hubro/~1221368/340773602/1223067</fs:itemid></item><item><title>HTTPREQUEST丢失COOKIE的问题</title><link>http://www.hubro.net/2009/04/26/HTTPREQUEST%e4%b8%a2%e5%a4%b1COOKIE%e7%9a%84%e9%97%ae%e9%a2%98.aspx</link><trackback:ping>http://www.hubro.net/Trackback.aspx?guid=ec5cd117-aa62-4425-a52e-77271f32b4ed</trackback:ping><pingback:server>http://www.hubro.net/pingback.aspx</pingback:server><pingback:target>http://www.hubro.net/PermaLink,guid,ec5cd117-aa62-4425-a52e-77271f32b4ed.aspx</pingback:target><body xmlns="http://www.w3.org/1999/xhtml"><p>HTTPREQUEST请求时,如果响应的页面作了转向,那么,本该在第一次页面返回的COOKIE因为这次跳转丢失了,它可能认为是两次请求,返回了第二个页面的COOKIE,多数情况我们不关心它是否跳转,只需取得结果就行</p><p>HTTPREQUEST只有一个属性和重定向有关AllowAutoRedirect,是否自动转向,默认是TRUE,设为FALSE,它就不会自动转向了,并且返回一个异常,返回的状态代码为302(转向),所以可以用这个来处理,设为不自动重定向,取得正常返回的COOKIE,完成后,要取得返回的结果,只能再请求一次它将要转向的URL了</p><img width="0" height="0" src="http://www.hubro.net/aggbug.ashx?id=ec5cd117-aa62-4425-a52e-77271f32b4ed"></img></body><description>&lt;p&gt;
HTTPREQUEST请求时,如果响应的页面作了转向,那么,本该在第一次页面返回的COOKIE因为这次跳转丢失了,它可能认为是两次请求,返回了第二个页面的COOKIE,多数情况我们不关心它是否跳转,只需取得结果就行
&lt;/p&gt;
&lt;p&gt;
HTTPREQUEST只有一个属性和重定向有关AllowAutoRedirect,是否自动转向,默认是TRUE,设为FALSE,它就不会自动转向了,并且返回一个异常,返回的状态代码为302(转向),所以可以用这个来处理,设为不自动重定向,取得正常返回的COOKIE,完成后,要取得返回的结果,只能再请求一次它将要转向的URL了
&lt;/p&gt;
&lt;img width=&quot;0&quot; height=&quot;0&quot; src=&quot;http://www.hubro.net/aggbug.ashx?id=ec5cd117-aa62-4425-a52e-77271f32b4ed&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/hubro/340773603/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/hubro/340773603/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Sun, 26 Apr 2009 21:39:45 +0800</pubDate><author>Your DisplayName here!</author><guid isPermaLink="false">http://www.hubro.net/PermaLink,guid,ec5cd117-aa62-4425-a52e-77271f32b4ed.aspx</guid><dc:creator>Your DisplayName here!</dc:creator><fs:srclink>http://www.hubro.net/2009/04/26/HTTPREQUEST%e4%b8%a2%e5%a4%b1COOKIE%e7%9a%84%e9%97%ae%e9%a2%98.aspx</fs:srclink><fs:srcfeed>http://www.hubro.net/rss2.aspx</fs:srcfeed><fs:itemid>feedsky/hubro/~1221368/340773603/1223067</fs:itemid></item><item><title>HttpRequest实现登录</title><link>http://www.hubro.net/2009/04/12/HttpRequest%e5%ae%9e%e7%8e%b0%e7%99%bb%e5%bd%95.aspx</link><trackback:ping>http://www.hubro.net/Trackback.aspx?guid=72de94ad-dd22-4ad4-b9ea-709af1d5dd50</trackback:ping><pingback:server>http://www.hubro.net/pingback.aspx</pingback:server><pingback:target>http://www.hubro.net/PermaLink,guid,72de94ad-dd22-4ad4-b9ea-709af1d5dd50.aspx</pingback:target><body xmlns="http://www.w3.org/1999/xhtml"><p><a href="http://www.hubro.net/2009/02/27/%e8%87%aa%e5%88%b6%e8%ae%ba%e5%9d%9b%e6%96%87%e6%9c%ac%e6%b5%8f%e8%a7%88%e5%99%a8.aspx">论坛文本浏览器</a>
          加上了登录功能,能访问需要登录的地址,WINFORM登陆WEB其实是就是POST一系列参数到登陆地址,再取到返回的COOKIE
        </p><p>POST一个地址很简单,直接用HttpRequest请求就行了,加上一些参数,普通的基于HTTP处理的页面比如ASP,PHP直接POST过去就接收了,但ASPX基于事件的WEB就有点麻烦,ASPX在表单页会生成一个HIDDEN,__VIEWSTATE,里面记录了当前表单的一些信息,提交后会用这个对POST过去的信息验证,要到什么程度?试过好多次后发现,所有表单项都需要验证,这样看来,要POST到ASPX页就要读出这个页所有表单项的值了,在完成所有工作后发现,我的程序还是没有正确提交到ASPX页,仔细检查手动生成的GET参数发现,INPUT
TYPE=IMAGE的表单项会生成两个参数,IMAGE.X,IMAGE.Y,只有把这两个参数带上才能成功,并且,这个值也能乱写,保证有这个参数就行了,这个应该是表示坐标的,验证这个很无理</p><p>多数登录有验证图片,读这个图片也有点麻烦,有的是用JS生成的HTTP代码加上图片,还好借助WEBBROWSE控件能返回经过浏览器处理的HTML代码</p><p>完成了正确POST信息后就是处理返回的COOKIE了,原理也很简单,POST后,读取返回的COOKIE,下次请求时再附加上这个COOKIE,这个COOKIE能反复使用,为了能在下次不用再次点登录,把它序列化保存起来,下次请求时,附加上这个COOKIE</p><p>到止,这个程序比较完美了,虽然是自已专用</p><img width="0" height="0" src="http://www.hubro.net/aggbug.ashx?id=72de94ad-dd22-4ad4-b9ea-709af1d5dd50"></img></body><description>&lt;p&gt;
&lt;a href=&quot;http://www.hubro.net/2009/02/27/%e8%87%aa%e5%88%b6%e8%ae%ba%e5%9d%9b%e6%96%87%e6%9c%ac%e6%b5%8f%e8%a7%88%e5%99%a8.aspx&quot;&gt;论坛文本浏览器&lt;/a&gt;加上了登录功能,能访问需要登录的地址,WINFORM登陆WEB其实是就是POST一系列参数到登陆地址,再取到返回的COOKIE
&lt;/p&gt;
&lt;p&gt;
POST一个地址很简单,直接用HttpRequest请求就行了,加上一些参数,普通的基于HTTP处理的页面比如ASP,PHP直接POST过去就接收了,但ASPX基于事件的WEB就有点麻烦,ASPX在表单页会生成一个HIDDEN,__VIEWSTATE,里面记录了当前表单的一些信息,提交后会用这个对POST过去的信息验证,要到什么程度?试过好多次后发现,所有表单项都需要验证,这样看来,要POST到ASPX页就要读出这个页所有表单项的值了,在完成所有工作后发现,我的程序还是没有正确提交到ASPX页,仔细检查手动生成的GET参数发现,INPUT
TYPE=IMAGE的表单项会生成两个参数,IMAGE.X,IMAGE.Y,只有把这两个参数带上才能成功,并且,这个值也能乱写,保证有这个参数就行了,这个应该是表示坐标的,验证这个很无理
&lt;/p&gt;
&lt;p&gt;
多数登录有验证图片,读这个图片也有点麻烦,有的是用JS生成的HTTP代码加上图片,还好借助WEBBROWSE控件能返回经过浏览器处理的HTML代码
&lt;/p&gt;
&lt;p&gt;
完成了正确POST信息后就是处理返回的COOKIE了,原理也很简单,POST后,读取返回的COOKIE,下次请求时再附加上这个COOKIE,这个COOKIE能反复使用,为了能在下次不用再次点登录,把它序列化保存起来,下次请求时,附加上这个COOKIE
&lt;/p&gt;
&lt;p&gt;
到止,这个程序比较完美了,虽然是自已专用
&lt;/p&gt;
&lt;img width=&quot;0&quot; height=&quot;0&quot; src=&quot;http://www.hubro.net/aggbug.ashx?id=72de94ad-dd22-4ad4-b9ea-709af1d5dd50&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/hubro/340773604/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/hubro/340773604/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>小程序</category><pubDate>Sun, 12 Apr 2009 09:35:08 +0800</pubDate><author>Your DisplayName here!</author><guid isPermaLink="false">http://www.hubro.net/PermaLink,guid,72de94ad-dd22-4ad4-b9ea-709af1d5dd50.aspx</guid><dc:creator>Your DisplayName here!</dc:creator><fs:srclink>http://www.hubro.net/2009/04/12/HttpRequest%e5%ae%9e%e7%8e%b0%e7%99%bb%e5%bd%95.aspx</fs:srclink><fs:srcfeed>http://www.hubro.net/rss2.aspx</fs:srcfeed><fs:itemid>feedsky/hubro/~1221368/340773604/1223067</fs:itemid></item><item><title>自制论坛文本浏览器</title><link>http://www.hubro.net/2009/02/27/%e8%87%aa%e5%88%b6%e8%ae%ba%e5%9d%9b%e6%96%87%e6%9c%ac%e6%b5%8f%e8%a7%88%e5%99%a8.aspx</link><trackback:ping>http://www.hubro.net/Trackback.aspx?guid=a5a7bba6-35ed-49b1-95f7-da80876c6ef5</trackback:ping><pingback:server>http://www.hubro.net/pingback.aspx</pingback:server><pingback:target>http://www.hubro.net/PermaLink,guid,a5a7bba6-35ed-49b1-95f7-da80876c6ef5.aspx</pingback:target><body xmlns="http://www.w3.org/1999/xhtml"><p>现在论坛花里胡哨,上班时间看不方便,咋把它整成黑白的</p><p>写了一个小程序,从论坛匹配出贴子列表,再按链接打开贴子,贴子也经过处理,去掉样式,图片,背景色,文字颜色</p><p>显示的贴子</p><p>[img,600]http://www.hubro.net/content/binary/pic1.jpg[/img]</p><p>读出来的列表</p><p>[img,600]http://www.hubro.net/content/binary/pic2.jpg[/img]</p><p>字段和匹配设置</p><p>[img,600]http://www.hubro.net/content/binary/pic3.jpg[/img]</p><p>增加了多配置,字段编辑</p><p>[img]http://www.hubro.net/content/binary/pic4.jpg[/img]</p><p>运行环境,.NET2.0</p><a href="http://www.hubro.net/content/binary/WebBrowse.zip">WebBrowse.zip (26.95 KB)</a><img width="0" height="0" src="http://www.hubro.net/aggbug.ashx?id=a5a7bba6-35ed-49b1-95f7-da80876c6ef5"></img></body><description>&lt;p&gt;
现在论坛花里胡哨,上班时间看不方便,咋把它整成黑白的
&lt;/p&gt;
&lt;p&gt;
写了一个小程序,从论坛匹配出贴子列表,再按链接打开贴子,贴子也经过处理,去掉样式,图片,背景色,文字颜色 
&lt;/p&gt;
&lt;p&gt;
显示的贴子
&lt;/p&gt;
&lt;p&gt;
[img,600]http://www.hubro.net/content/binary/pic1.jpg[/img] 
&lt;/p&gt;
&lt;p&gt;
读出来的列表
&lt;/p&gt;
&lt;p&gt;
[img,600]http://www.hubro.net/content/binary/pic2.jpg[/img] 
&lt;/p&gt;
&lt;p&gt;
字段和匹配设置
&lt;/p&gt;
&lt;p&gt;
[img,600]http://www.hubro.net/content/binary/pic3.jpg[/img]
&lt;/p&gt;
&lt;p&gt;
增加了多配置,字段编辑 
&lt;/p&gt;
&lt;p&gt;
[img]http://www.hubro.net/content/binary/pic4.jpg[/img] 
&lt;/p&gt;
&lt;p&gt;
运行环境,.NET2.0
&lt;/p&gt;
&lt;a href=&quot;http://www.hubro.net/content/binary/WebBrowse.zip&quot;&gt;WebBrowse.zip (26.95 KB)&lt;/a&gt;&lt;img width=&quot;0&quot; height=&quot;0&quot; src=&quot;http://www.hubro.net/aggbug.ashx?id=a5a7bba6-35ed-49b1-95f7-da80876c6ef5&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/hubro/340773605/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/hubro/340773605/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>小程序</category><pubDate>Fri, 27 Feb 2009 15:26:53 +0800</pubDate><author>Your DisplayName here!</author><guid isPermaLink="false">http://www.hubro.net/PermaLink,guid,a5a7bba6-35ed-49b1-95f7-da80876c6ef5.aspx</guid><dc:creator>Your DisplayName here!</dc:creator><fs:srclink>http://www.hubro.net/2009/02/27/%e8%87%aa%e5%88%b6%e8%ae%ba%e5%9d%9b%e6%96%87%e6%9c%ac%e6%b5%8f%e8%a7%88%e5%99%a8.aspx</fs:srclink><fs:srcfeed>http://www.hubro.net/rss2.aspx</fs:srcfeed><fs:itemid>feedsky/hubro/~1221368/340773605/1223067</fs:itemid></item><item><title>正则测试工具</title><link>http://www.hubro.net/2008/09/11/%e6%ad%a3%e5%88%99%e6%b5%8b%e8%af%95%e5%b7%a5%e5%85%b7.aspx</link><trackback:ping>http://www.hubro.net/Trackback.aspx?guid=ab811eff-7de5-4324-a121-f9926ae500ff</trackback:ping><pingback:server>http://www.hubro.net/pingback.aspx</pingback:server><pingback:target>http://www.hubro.net/PermaLink,guid,ab811eff-7de5-4324-a121-f9926ae500ff.aspx</pingback:target><body xmlns="http://www.w3.org/1999/xhtml"><p>能把里面的匹配项用不同颜色表示出来,效果如下图</p><p>[img,600]/content/binary/regexp_01.jpg[/img]</p><p>地址</p><p><a href="http://www.hubro.net/regexp.aspx">http://www.hubro.net/regexp.aspx</a></p><img width="0" height="0" src="http://www.hubro.net/aggbug.ashx?id=ab811eff-7de5-4324-a121-f9926ae500ff"></img></body><description>&lt;p&gt;
能把里面的匹配项用不同颜色表示出来,效果如下图
&lt;/p&gt;
&lt;p&gt;
[img,600]/content/binary/regexp_01.jpg[/img]
&lt;/p&gt;
&lt;p&gt;
地址
&lt;/p&gt;
&lt;p&gt;
&lt;a href=&quot;http://www.hubro.net/regexp.aspx&quot;&gt;http://www.hubro.net/regexp.aspx&lt;/a&gt;
&lt;/p&gt;
&lt;img width=&quot;0&quot; height=&quot;0&quot; src=&quot;http://www.hubro.net/aggbug.ashx?id=ab811eff-7de5-4324-a121-f9926ae500ff&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/hubro/340773606/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/hubro/340773606/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Thu, 11 Sep 2008 15:46:18 +0800</pubDate><author>Your DisplayName here!</author><guid isPermaLink="false">http://www.hubro.net/PermaLink,guid,ab811eff-7de5-4324-a121-f9926ae500ff.aspx</guid><dc:creator>Your DisplayName here!</dc:creator><fs:srclink>http://www.hubro.net/2008/09/11/%e6%ad%a3%e5%88%99%e6%b5%8b%e8%af%95%e5%b7%a5%e5%85%b7.aspx</fs:srclink><fs:srcfeed>http://www.hubro.net/rss2.aspx</fs:srcfeed><fs:itemid>feedsky/hubro/~1221368/340773606/1223067</fs:itemid></item><item><title>我为宁者馨。宁为我者爱。人博者为泽。人静者为仪。</title><link>http://www.hubro.net/2008/07/13/%e6%88%91%e4%b8%ba%e5%ae%81%e8%80%85%e9%a6%a8%e5%ae%81%e4%b8%ba%e6%88%91%e8%80%85%e7%88%b1%e4%ba%ba%e5%8d%9a%e8%80%85%e4%b8%ba%e6%b3%bd%e4%ba%ba%e9%9d%99%e8%80%85%e4%b8%ba%e4%bb%aa.aspx</link><trackback:ping>http://www.hubro.net/Trackback.aspx?guid=26d60cbc-d7be-4a82-a389-d8710fc7136d</trackback:ping><pingback:server>http://www.hubro.net/pingback.aspx</pingback:server><pingback:target>http://www.hubro.net/PermaLink,guid,26d60cbc-d7be-4a82-a389-d8710fc7136d.aspx</pingback:target><body xmlns="http://www.w3.org/1999/xhtml"><p>我为宁者馨。宁为我者爱。人博者为泽。人静者为仪。</p><img width="0" height="0" src="http://www.hubro.net/aggbug.ashx?id=26d60cbc-d7be-4a82-a389-d8710fc7136d"></img></body><description>&lt;p&gt;
我为宁者馨。宁为我者爱。人博者为泽。人静者为仪。
&lt;/p&gt;
&lt;img width=&quot;0&quot; height=&quot;0&quot; src=&quot;http://www.hubro.net/aggbug.ashx?id=26d60cbc-d7be-4a82-a389-d8710fc7136d&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/hubro/340773607/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/hubro/340773607/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Sun, 13 Jul 2008 17:23:21 +0800</pubDate><author>Your DisplayName here!</author><guid isPermaLink="false">http://www.hubro.net/PermaLink,guid,26d60cbc-d7be-4a82-a389-d8710fc7136d.aspx</guid><dc:creator>Your DisplayName here!</dc:creator><fs:srclink>http://www.hubro.net/2008/07/13/%e6%88%91%e4%b8%ba%e5%ae%81%e8%80%85%e9%a6%a8%e5%ae%81%e4%b8%ba%e6%88%91%e8%80%85%e7%88%b1%e4%ba%ba%e5%8d%9a%e8%80%85%e4%b8%ba%e6%b3%bd%e4%ba%ba%e9%9d%99%e8%80%85%e4%b8%ba%e4%bb%aa.aspx</fs:srclink><fs:srcfeed>http://www.hubro.net/rss2.aspx</fs:srcfeed><fs:itemid>feedsky/hubro/~1221368/340773607/1223067</fs:itemid></item></channel></rss>
