﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>博客园-不惊了's blog</title><link>http://www.cnblogs.com/ftingchn/</link><description>记住我生活和工作中留下的每一个脚印……</description><language>zh-cn</language><lastBuildDate>Thu, 28 Aug 2008 02:01:55 GMT</lastBuildDate><pubDate>Thu, 28 Aug 2008 02:01:55 GMT</pubDate><ttl>60</ttl><item><title>获取某文件夹下的目录</title><link>http://www.cnblogs.com/ftingchn/archive/2007/12/17/1003620.html</link><dc:creator>不惊了</dc:creator><author>不惊了</author><pubDate>Mon, 17 Dec 2007 12:55:00 GMT</pubDate><guid>http://www.cnblogs.com/ftingchn/archive/2007/12/17/1003620.html</guid><wfw:comment>http://www.cnblogs.com/ftingchn/comments/1003620.html</wfw:comment><comments>http://www.cnblogs.com/ftingchn/archive/2007/12/17/1003620.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/ftingchn/comments/commentRss/1003620.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/ftingchn/services/trackbacks/1003620.html</trackback:ping><description><![CDATA[<p>&nbsp;</p>
<div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align="top"  alt="" /><span style="color: #000000">DirectoryInfo&nbsp;dirinfo&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">new</span><span style="color: #000000">&nbsp;DirectoryInfo(Server.MapPath(</span><span style="color: #000000">"</span><span style="color: #000000">upload</span><span style="color: #000000">"</span><span style="color: #000000">));<br />
<img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FileSystemInfo[]&nbsp;dirs&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;dirinfo.GetFileSystemInfos();<br />
<img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">if</span><span style="color: #000000">&nbsp;(dirs.Length&nbsp;</span><span style="color: #000000">&gt;</span><span style="color: #000000">&nbsp;</span><span style="color: #000000">1</span><span style="color: #000000">)<br />
<img id="Codehighlighter1_168_261_Open_Image" onclick="this.style.display='none'; Codehighlighter1_168_261_Open_Text.style.display='none'; Codehighlighter1_168_261_Closed_Image.style.display='inline'; Codehighlighter1_168_261_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top"  alt="" /><img id="Codehighlighter1_168_261_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_168_261_Closed_Text.style.display='none'; Codehighlighter1_168_261_Open_Image.style.display='inline'; Codehighlighter1_168_261_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedBlock.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_168_261_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.cnblogs.com/Images/dot.gif"  alt="" /></span><span id="Codehighlighter1_168_261_Open_Text"><span style="color: #000000">{<br />
<img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DropDownList1.DataSource&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;dirs;<br />
<img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DropDownList1.DataBind();<br />
<img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span></div>
<img src ="http://www.cnblogs.com/ftingchn/aggbug/1003620.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41928/" target="_blank">[新闻]Google Gears覆盖四大浏览器 Safari版推出</a>]]></description></item><item><title>下雪了，虽然冷，但感觉不错</title><link>http://www.cnblogs.com/ftingchn/archive/2007/12/10/989323.html</link><dc:creator>不惊了</dc:creator><author>不惊了</author><pubDate>Mon, 10 Dec 2007 05:22:00 GMT</pubDate><guid>http://www.cnblogs.com/ftingchn/archive/2007/12/10/989323.html</guid><wfw:comment>http://www.cnblogs.com/ftingchn/comments/989323.html</wfw:comment><comments>http://www.cnblogs.com/ftingchn/archive/2007/12/10/989323.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.cnblogs.com/ftingchn/comments/commentRss/989323.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/ftingchn/services/trackbacks/989323.html</trackback:ping><description><![CDATA[<font face="Courier New">早上起来，还听同学说是下雨了，拿着伞一出门才知道是下雪了，虽然有点冷，但我还是喜欢下雪。<br />
感觉很舒服。今天早上快到九点，天儿才亮起来。<br />
期待一场大雪到来，HOHO~~</font> 
<img src ="http://www.cnblogs.com/ftingchn/aggbug/989323.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41927/" target="_blank">[新闻]Internet Explorer 8 Beta 2 发布</a>]]></description></item><item><title>给图片加图片水印 (采用ASPJPEG组件)</title><link>http://www.cnblogs.com/ftingchn/archive/2007/12/06/985281.html</link><dc:creator>不惊了</dc:creator><author>不惊了</author><pubDate>Thu, 06 Dec 2007 06:31:00 GMT</pubDate><guid>http://www.cnblogs.com/ftingchn/archive/2007/12/06/985281.html</guid><wfw:comment>http://www.cnblogs.com/ftingchn/comments/985281.html</wfw:comment><comments>http://www.cnblogs.com/ftingchn/archive/2007/12/06/985281.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cnblogs.com/ftingchn/comments/commentRss/985281.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/ftingchn/services/trackbacks/985281.html</trackback:ping><description><![CDATA[<div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align="top"  alt="" /><span style="color: #000000">&lt;</span><span style="color: #000000">%<br />
<img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;--------------------------------------------------</span><span style="color: #008000"><br />
<img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align="top"  alt="" />'</span><span style="color: #008000">&nbsp;功能:&nbsp;给图片加图片水印&nbsp;(采用ASPJPEG组件)</span><span style="color: #008000"><br />
<img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align="top"  alt="" />'</span><span style="color: #008000">&nbsp;作者：不惊了&nbsp;by&nbsp;2007.12.5</span><span style="color: #008000"><br />
<img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align="top"  alt="" />'</span><span style="color: #008000">&nbsp;参数:&nbsp;img：原图路径&nbsp;&nbsp;&nbsp;&nbsp;logo：水印路径</span><span style="color: #008000"><br />
<img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align="top"  alt="" />'</span><span style="color: #008000">&nbsp;说明:&nbsp;加水印后的图覆盖原图</span><span style="color: #008000"><br />
<img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align="top"  alt="" />'</span><span style="color: #008000">&nbsp;调用：Call&nbsp;Create_Watermark("images/01.jpg","images/logo.gif")</span><span style="color: #008000"><br />
<img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align="top"  alt="" />'</span><span style="color: #008000">&nbsp;--------------------------------------------------</span><span style="color: #008000"><br />
<img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">Sub</span><span style="color: #000000">&nbsp;Create_Watermark(img,logo)<br />
<img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">Set</span><span style="color: #000000">&nbsp;Jpeg&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;Server.CreateObject(</span><span style="color: #000000">"</span><span style="color: #000000">Persits.Jpeg</span><span style="color: #000000">"</span><span style="color: #000000">)<br />
<img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">读取原图片&nbsp;</span><span style="color: #008000"><br />
<img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;Jpeg.Open&nbsp;Server.MapPath(img)<br />
<img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">Set</span><span style="color: #000000">&nbsp;Watermark&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;Server.CreateObject(</span><span style="color: #000000">"</span><span style="color: #000000">Persits.Jpeg</span><span style="color: #000000">"</span><span style="color: #000000">)&nbsp;<br />
<img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">读取添加的图片&nbsp;</span><span style="color: #008000"><br />
<img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;Watermark.open&nbsp;Server.MapPath(logo)&nbsp;<br />
<img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">水印的x,y位置</span><span style="color: #008000"><br />
<img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;x</span><span style="color: #000000">=</span><span style="color: #0000ff">cint</span><span style="color: #000000">(Jpeg.originalwidth</span><span style="color: #000000">-</span><span style="color: #000000">Watermark.Width)&nbsp;<br />
<img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;y</span><span style="color: #000000">=</span><span style="color: #0000ff">cint</span><span style="color: #000000">(Jpeg.originalheight</span><span style="color: #000000">-</span><span style="color: #000000">Watermark.Height)<br />
<img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">添加水印</span><span style="color: #008000"><br />
<img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;Jpeg.DrawImage&nbsp;x,&nbsp;y,&nbsp;Watermark,</span><span style="color: #000000">0.5</span><span style="color: #000000">,</span><span style="color: #000000">&amp;</span><span style="color: #000000">Hffffff<br />
<img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">生成后的图片</span><span style="color: #008000"><br />
<img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;Jpeg.Save&nbsp;Server.MapPath(img)&nbsp;<br />
<img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">Set</span><span style="color: #000000">&nbsp;Watermark</span><span style="color: #000000">=</span><span style="color: #0000ff">Nothing</span><span style="color: #000000">&nbsp;<br />
<img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">set</span><span style="color: #000000">&nbsp;Jpeg</span><span style="color: #000000">=</span><span style="color: #0000ff">Nothing</span><span style="color: #000000"><br />
<img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">End&nbsp;Sub</span><span style="color: #000000"><br />
<img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align="top"  alt="" />%</span><span style="color: #000000">&gt;</span></div>
<img src ="http://www.cnblogs.com/ftingchn/aggbug/985281.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41924/" target="_blank">[新闻]中国软件协会：SAP羞辱国产软件是不正当竞争</a>]]></description></item><item><title>嘿嘿，中午给ewebeditor加了一个插入运行代码按钮</title><link>http://www.cnblogs.com/ftingchn/archive/2007/06/28/799140.html</link><dc:creator>不惊了</dc:creator><author>不惊了</author><pubDate>Thu, 28 Jun 2007 08:46:00 GMT</pubDate><guid>http://www.cnblogs.com/ftingchn/archive/2007/06/28/799140.html</guid><wfw:comment>http://www.cnblogs.com/ftingchn/comments/799140.html</wfw:comment><comments>http://www.cnblogs.com/ftingchn/archive/2007/06/28/799140.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.cnblogs.com/ftingchn/comments/commentRss/799140.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/ftingchn/services/trackbacks/799140.html</trackback:ping><description><![CDATA[<p>1.在数据库中添加一条按钮的相关配置<br>&nbsp;&nbsp; 数据库的字段和其它的一样就行:<br>&nbsp;&nbsp; B_Code:按钮的代码，随便取<br>&nbsp;&nbsp;&nbsp;B_Title:鼠标滑过提示<br>&nbsp;&nbsp; B_Image:按钮的图标，放在ButtonImage\standard文件夹下<br>&nbsp;&nbsp; B_Event:insert('nextpage')//这个地方的nextpage和Editor.js中的case "nextpage"对应<br>&nbsp;&nbsp; B_Class:Btn，跟其它的一样就行<br>&nbsp; &nbsp;B_Order:这个按钮的位置排序<br><img height=251 alt="" src="http://www.cnblogs.com/images/cnblogs_com/ftingchn/SpxImage1.jpg" width=745 border=0><br><br>2.copy一个样式，因为默认的不能保存设置<br><img height=180 alt="" src="http://www.cnblogs.com/images/cnblogs_com/ftingchn/SpxImage3.jpg" width=668 border=0><br><br>在设置工具栏的时候就会在左边框中多出一个按钮的选项来<br><img height=136 alt="" src="http://www.cnblogs.com/images/cnblogs_com/ftingchn/SpxImage4.jpg" width=531 border=0></p>
<p>向右添加保存后，预览一下吧，发现了那个新添加的按钮了吧。此时的按钮只是出来了，但不具备功能<br><img height=166 alt="" src="http://www.cnblogs.com/images/cnblogs_com/ftingchn/SpxImage5.jpg" width=285 border=0><br><br>3.需在Editor.js文件中找到&#8220;插入特殊对象&#8221;这个函数，然后加上你自己的代码<br>case "nextpage":<br>&nbsp;insertHTML("{nextpage}");<br>&nbsp;break;<br><img height=191 alt="" src="http://www.cnblogs.com/images/cnblogs_com/ftingchn/SpxImage2.jpg" width=484 border=0><br><br>注意，更改过数据库中的按钮的相关信息后，要重新设置工具栏下的此按钮才有效<br>再添加了一个运行代码框的按钮<br><img height=426 alt="" src="http://www.cnblogs.com/images/cnblogs_com/ftingchn/SpxImage6.jpg" width=728 border=0><br>就是这么简单，我们可以根据这个来DIY自己的编辑器了</p><img src ="http://www.cnblogs.com/ftingchn/aggbug/799140.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41923/" target="_blank">[新闻]福布斯：Facebook网站十大最火爆游戏</a>]]></description></item><item><title>真正的简转繁</title><link>http://www.cnblogs.com/ftingchn/archive/2007/06/09/777298.html</link><dc:creator>不惊了</dc:creator><author>不惊了</author><pubDate>Sat, 09 Jun 2007 02:18:00 GMT</pubDate><guid>http://www.cnblogs.com/ftingchn/archive/2007/06/09/777298.html</guid><wfw:comment>http://www.cnblogs.com/ftingchn/comments/777298.html</wfw:comment><comments>http://www.cnblogs.com/ftingchn/archive/2007/06/09/777298.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cnblogs.com/ftingchn/comments/commentRss/777298.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/ftingchn/services/trackbacks/777298.html</trackback:ping><description><![CDATA[<p>&nbsp;</p>
<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top><span style="COLOR: #0000ff">using</span><span style="COLOR: #000000">&nbsp;System;<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">using</span><span style="COLOR: #000000">&nbsp;System.Data;<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">using</span><span style="COLOR: #000000">&nbsp;System.Configuration;<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">using</span><span style="COLOR: #000000">&nbsp;System.Collections;<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">using</span><span style="COLOR: #000000">&nbsp;System.Web;<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">using</span><span style="COLOR: #000000">&nbsp;System.Web.Security;<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">using</span><span style="COLOR: #000000">&nbsp;System.Web.UI;<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">using</span><span style="COLOR: #000000">&nbsp;System.Web.UI.WebControls;<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">using</span><span style="COLOR: #000000">&nbsp;System.Web.UI.WebControls.WebParts;<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">using</span><span style="COLOR: #000000">&nbsp;System.Web.UI.HtmlControls;<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">using</span><span style="COLOR: #000000">&nbsp;Microsoft.VisualBasic;<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">using</span><span style="COLOR: #000000">&nbsp;System.IO;<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">&nbsp;partial&nbsp;</span><span style="COLOR: #0000ff">class</span><span style="COLOR: #000000">&nbsp;_Default&nbsp;:&nbsp;System.Web.UI.Page<br><img id=Codehighlighter1_360_895_Open_Image onclick="this.style.display='none'; Codehighlighter1_360_895_Open_Text.style.display='none'; Codehighlighter1_360_895_Closed_Image.style.display='inline'; Codehighlighter1_360_895_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_360_895_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_360_895_Closed_Text.style.display='none'; Codehighlighter1_360_895_Open_Image.style.display='inline'; Codehighlighter1_360_895_Open_Text.style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" align=top></span><span id=Codehighlighter1_360_895_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cnblogs.com/Images/dot.gif"></span><span id=Codehighlighter1_360_895_Open_Text><span style="COLOR: #000000">{<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">protected</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">override</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000">&nbsp;Render(HtmlTextWriter&nbsp;writer)<br><img id=Codehighlighter1_424_815_Open_Image onclick="this.style.display='none'; Codehighlighter1_424_815_Open_Text.style.display='none'; Codehighlighter1_424_815_Closed_Image.style.display='inline'; Codehighlighter1_424_815_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_424_815_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_424_815_Closed_Text.style.display='none'; Codehighlighter1_424_815_Open_Image.style.display='inline'; Codehighlighter1_424_815_Open_Text.style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span id=Codehighlighter1_424_815_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cnblogs.com/Images/dot.gif"></span><span id=Codehighlighter1_424_815_Open_Text><span style="COLOR: #000000">{<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;StringWriter&nbsp;stringWriter&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000">&nbsp;StringWriter();<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;HtmlTextWriter&nbsp;htmlWriter&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000">&nbsp;HtmlTextWriter(stringWriter);<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">base</span><span style="COLOR: #000000">.Render(htmlWriter);<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">string</span><span style="COLOR: #000000">&nbsp;content&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;stringWriter.ToString();<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">用Strings类的StrConv方法,其中TraditionalChinese是VisualBasic中的一个枚举</span><span style="COLOR: #008000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">string</span><span style="COLOR: #000000">&nbsp;tw&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;Strings.StrConv(content,&nbsp;VbStrConv.TraditionalChinese,&nbsp;</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">);<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Response.Write(tw);<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">protected</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000">&nbsp;Page_Load(</span><span style="COLOR: #0000ff">object</span><span style="COLOR: #000000">&nbsp;sender,&nbsp;EventArgs&nbsp;e)<br><img id=Codehighlighter1_878_893_Open_Image onclick="this.style.display='none'; Codehighlighter1_878_893_Open_Text.style.display='none'; Codehighlighter1_878_893_Closed_Image.style.display='inline'; Codehighlighter1_878_893_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_878_893_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_878_893_Closed_Text.style.display='none'; Codehighlighter1_878_893_Open_Image.style.display='inline'; Codehighlighter1_878_893_Open_Text.style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span id=Codehighlighter1_878_893_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cnblogs.com/Images/dot.gif"></span><span id=Codehighlighter1_878_893_Open_Text><span style="COLOR: #000000">{<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</span></span></div><img src ="http://www.cnblogs.com/ftingchn/aggbug/777298.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41922/" target="_blank">[新闻]谷歌允许用户评论搜索结果调整顺序</a>]]></description></item><item><title>DropDownList绑定数据源后,如何设置选中项</title><link>http://www.cnblogs.com/ftingchn/archive/2007/05/06/736920.html</link><dc:creator>不惊了</dc:creator><author>不惊了</author><pubDate>Sun, 06 May 2007 02:38:00 GMT</pubDate><guid>http://www.cnblogs.com/ftingchn/archive/2007/05/06/736920.html</guid><wfw:comment>http://www.cnblogs.com/ftingchn/comments/736920.html</wfw:comment><comments>http://www.cnblogs.com/ftingchn/archive/2007/05/06/736920.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.cnblogs.com/ftingchn/comments/commentRss/736920.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/ftingchn/services/trackbacks/736920.html</trackback:ping><description><![CDATA[DropDownList在绑定数据源控件后,该如何设置选中项呢<br>我按以下方法未能实现,我的代码如下:<br>
<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top><span style="COLOR: #000000">&lt;</span><span style="COLOR: #000000">asp:DropDownList&nbsp;ID</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">DropDownList1</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">&nbsp;runat</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">server</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">&nbsp;AutoPostBack</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">True</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">&nbsp;DataSourceID</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">SqlDataSource1</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DataTextField</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">subject</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">&nbsp;DataValueField</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">id</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">&nbsp;OnSelectedIndexChanged</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">DropDownList1_SelectedIndexChanged</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">&gt;</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #000000">&lt;/</span><span style="COLOR: #000000">asp:DropDownList</span><span style="COLOR: #000000">&gt;</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #000000">&lt;</span><span style="COLOR: #000000">asp:SqlDataSource&nbsp;ID</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">SqlDataSource1</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">&nbsp;runat</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">server</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">&nbsp;ConnectionString</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">&lt;%$&nbsp;ConnectionStrings:strconn&nbsp;%&gt;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SelectCommand</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">SELECT&nbsp;[id],&nbsp;[subject]&nbsp;FROM&nbsp;[web_about]</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">&gt;&lt;/</span><span style="COLOR: #000000">asp:SqlDataSource</span><span style="COLOR: #000000">&gt;</span></div>
<br>CS文件中来设置选中项:<br>
<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top><span style="COLOR: #0000ff">protected</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000">&nbsp;Page_Load(</span><span style="COLOR: #0000ff">object</span><span style="COLOR: #000000">&nbsp;sender,&nbsp;EventArgs&nbsp;e)<br><img id=Codehighlighter1_57_216_Open_Image style="DISPLAY: inline" onclick="this.style.display='none'; Codehighlighter1_57_216_Open_Text.style.display='none'; Codehighlighter1_57_216_Closed_Image.style.display='inline'; Codehighlighter1_57_216_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_57_216_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_57_216_Closed_Text.style.display='none'; Codehighlighter1_57_216_Open_Image.style.display='inline'; Codehighlighter1_57_216_Open_Text.style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span id=Codehighlighter1_57_216_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cnblogs.com/Images/dot.gif"></span><span id=Codehighlighter1_57_216_Open_Text style="DISPLAY: inline"><span style="COLOR: #000000">{<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">&nbsp;(</span><span style="COLOR: #000000">!</span><span style="COLOR: #000000">IsPostBack)<br><img id=Codehighlighter1_92_210_Open_Image onclick="this.style.display='none'; Codehighlighter1_92_210_Open_Text.style.display='none'; Codehighlighter1_92_210_Closed_Image.style.display='inline'; Codehighlighter1_92_210_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_92_210_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_92_210_Closed_Text.style.display='none'; Codehighlighter1_92_210_Open_Image.style.display='inline'; Codehighlighter1_92_210_Open_Text.style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id=Codehighlighter1_92_210_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cnblogs.com/Images/dot.gif"></span><span id=Codehighlighter1_92_210_Open_Text><span style="COLOR: #000000">{<br><img style="WIDTH: 11px; HEIGHT: 16px" height=16 src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" width=11 align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;string id=Request.QueryString["id"];<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DropDownList1.SelectedIndex&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;DropDownList1.Items.IndexOf(DropDownList1.Items.FindByValue(id));<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top><br><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">protected</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000">&nbsp;DropDownList1_SelectedIndexChanged(</span><span style="COLOR: #0000ff">object</span><span style="COLOR: #000000">&nbsp;sender,&nbsp;EventArgs&nbsp;e)<br><img id=Codehighlighter1_301_392_Open_Image onclick="this.style.display='none'; Codehighlighter1_301_392_Open_Text.style.display='none'; Codehighlighter1_301_392_Closed_Image.style.display='inline'; Codehighlighter1_301_392_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_301_392_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_301_392_Closed_Text.style.display='none'; Codehighlighter1_301_392_Open_Image.style.display='inline'; Codehighlighter1_301_392_Open_Text.style.display='inline';" src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span id=Codehighlighter1_301_392_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cnblogs.com/Images/dot.gif"></span><span id=Codehighlighter1_301_392_Open_Text><span style="COLOR: #000000">{<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Response.Redirect(Request.Path&nbsp;</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">?id=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">&nbsp;DropDownList1.SelectedItem.Value);<br><img src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;}</span></span></div>
但以上的方法在不绑定数据源的情况下正常:<br>&lt;asp:DropDownList ID="DropDownList1" runat="server" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AutoPostBack="True"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;asp:ListItem Value="1"&gt;选项一&lt;/asp:ListItem&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;asp:ListItem Value="2"&gt;选项二&lt;/asp:ListItem&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/asp:DropDownList&gt;<br>由于初学.NET,不知是什么原因? <img src ="http://www.cnblogs.com/ftingchn/aggbug/736920.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41921/" target="_blank">[新闻]Internet 另一超级漏洞被公布</a>]]></description></item><item><title>五一小3ie随拍</title><link>http://www.cnblogs.com/ftingchn/archive/2007/05/05/736364.html</link><dc:creator>不惊了</dc:creator><author>不惊了</author><pubDate>Sat, 05 May 2007 08:02:00 GMT</pubDate><guid>http://www.cnblogs.com/ftingchn/archive/2007/05/05/736364.html</guid><wfw:comment>http://www.cnblogs.com/ftingchn/comments/736364.html</wfw:comment><comments>http://www.cnblogs.com/ftingchn/archive/2007/05/05/736364.html#Feedback</comments><slash:comments>6</slash:comments><wfw:commentRss>http://www.cnblogs.com/ftingchn/comments/commentRss/736364.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/ftingchn/services/trackbacks/736364.html</trackback:ping><description><![CDATA[<p><img height=464 src="http://www.cnblogs.com/images/cnblogs_com/ftingchn/chu.jpg" width=348 border=0><br><br>景德镇的"出师表"<br><br><img height=464 src="http://www.cnblogs.com/images/cnblogs_com/ftingchn/hui.jpg" width=349 border=0><br><br>人民大会堂</p><img src ="http://www.cnblogs.com/ftingchn/aggbug/736364.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41920/" target="_blank">[新闻]3 个独特的未来搜索引擎</a>]]></description></item><item><title>"回发或回调参数无效"的错误,何解</title><link>http://www.cnblogs.com/ftingchn/archive/2007/01/24/628801.html</link><dc:creator>不惊了</dc:creator><author>不惊了</author><pubDate>Wed, 24 Jan 2007 03:05:00 GMT</pubDate><guid>http://www.cnblogs.com/ftingchn/archive/2007/01/24/628801.html</guid><wfw:comment>http://www.cnblogs.com/ftingchn/comments/628801.html</wfw:comment><comments>http://www.cnblogs.com/ftingchn/archive/2007/01/24/628801.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/ftingchn/comments/commentRss/628801.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/ftingchn/services/trackbacks/628801.html</trackback:ping><description><![CDATA[初学.NET2.0,在做例子的时候,处理提交新评论的时候报"回发或回调参数无效",经过调式我发现是侧边栏的原因<br>这个侧边栏就是什么最新文章,最新评论啊什么的,我全部放在自定义控件里的,然后在控件里将数据绑定到Repeater上,但在内容页提交评论时会报"回发或回调参数无效"的错误,何解<br>在网上搜索过,但都说是下拉列表和AJAX的问题,但我现在的情况不在这两种之内<br>寻找原因中...<br> <img src ="http://www.cnblogs.com/ftingchn/aggbug/628801.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41919/" target="_blank">[新闻]诺基亚新机N85 N79发布</a>]]></description></item><item><title>跟我一起做 击退眼睛疲劳的五大运动</title><link>http://www.cnblogs.com/ftingchn/archive/2006/05/25/408847.html</link><dc:creator>不惊了</dc:creator><author>不惊了</author><pubDate>Thu, 25 May 2006 04:54:00 GMT</pubDate><guid>http://www.cnblogs.com/ftingchn/archive/2006/05/25/408847.html</guid><wfw:comment>http://www.cnblogs.com/ftingchn/comments/408847.html</wfw:comment><comments>http://www.cnblogs.com/ftingchn/archive/2006/05/25/408847.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cnblogs.com/ftingchn/comments/commentRss/408847.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/ftingchn/services/trackbacks/408847.html</trackback:ping><description><![CDATA[<span style="font-weight: bold">1.眼珠运动法</span> <br />
<br />
头向上下左右旋转时，眼珠也跟着一起移动 <br />
<img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" alt="" src="http://www.lemongtree.com/uploads/060523-075249_1.gif" /> <br />
<br />
<br />
<span style="font-weight: bold">2.眨眼法</span> <br />
<br />
头向后仰并不停的眨眼，使血液畅通。眼睛轻微疲劳时，只要做2~3次眨眼运动即可 <br />
<img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" alt="" src="http://www.lemongtree.com/uploads/060523-075253_2.gif" /> <br />
<br />
<br />
<span style="font-weight: bold">3.热冷敷交替法</span> <br />
<br />
一条毛巾浸比洗澡水还要热一点的热水，另一条毛巾浸加了冰块的冷水，先把热毛巾放在眼睛上约五分钟，然后再放冷毛巾五分钟。 <br />
<br />
<img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" alt="" src="http://www.lemongtree.com/uploads/060523-075301_3.gif" /> <br />
<br />
<br />
<span style="font-weight: bold">4.眼睛体操</span> <br />
<br />
中指指向眼窝和鼻梁间，手掌盖脸来回摩擦五分钟。然后脖子各项左右慢慢移动，接着闭上双眼，握拳轻敲后颈部十下。 <br />
<img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" alt="" src="http://www.lemongtree.com/uploads/060523-075306_4.gif" /> <br />
<br />
<br />
<span style="font-weight: bold">5.看远看近法</span> <br />
<br />
看远方三分钟，再看手掌1~2分钟，然后再看远方。这样远近交换几次，可以有效消除眼睛疲劳。 <br />
<img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" alt="" src="http://www.lemongtree.com/uploads/060523-075310_5.gif" /> <br />
<br />
<br />
有没有效果？先试试吧！ <br />
<img src ="http://www.cnblogs.com/ftingchn/aggbug/408847.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41918/" target="_blank">[新闻]数据库市场:微软和甲骨文快速进步 威胁IBM</a>]]></description></item><item><title>如何将来访者的IP及其它信息生成一张图片</title><link>http://www.cnblogs.com/ftingchn/archive/2006/04/18/378018.html</link><dc:creator>不惊了</dc:creator><author>不惊了</author><pubDate>Tue, 18 Apr 2006 03:56:00 GMT</pubDate><guid>http://www.cnblogs.com/ftingchn/archive/2006/04/18/378018.html</guid><wfw:comment>http://www.cnblogs.com/ftingchn/comments/378018.html</wfw:comment><comments>http://www.cnblogs.com/ftingchn/archive/2006/04/18/378018.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/ftingchn/comments/commentRss/378018.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/ftingchn/services/trackbacks/378018.html</trackback:ping><description><![CDATA[<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><span style="COLOR: #0000ff">using</span><span style="COLOR: #000000">&nbsp;System;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">using</span><span style="COLOR: #000000">&nbsp;System.Collections;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">using</span><span style="COLOR: #000000">&nbsp;System.ComponentModel;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">using</span><span style="COLOR: #000000">&nbsp;System.Data;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">using</span><span style="COLOR: #000000">&nbsp;System.Drawing;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">using</span><span style="COLOR: #000000">&nbsp;System.Web;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">using</span><span style="COLOR: #000000">&nbsp;System.Web.SessionState;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">using</span><span style="COLOR: #000000">&nbsp;System.Web.UI;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">using</span><span style="COLOR: #000000">&nbsp;System.Web.UI.WebControls;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">using</span><span style="COLOR: #000000">&nbsp;System.Web.UI.HtmlControls;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">using</span><span style="COLOR: #000000">&nbsp;System.IO;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">namespace</span><span style="COLOR: #000000">&nbsp;WebApplication4&nbsp;<br><img id=Codehighlighter1_302_2766_Open_Image onclick="this.style.display='none'; Codehighlighter1_302_2766_Open_Text.style.display='none'; Codehighlighter1_302_2766_Closed_Image.style.display='inline'; Codehighlighter1_302_2766_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_302_2766_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_302_2766_Closed_Text.style.display='none'; Codehighlighter1_302_2766_Open_Image.style.display='inline'; Codehighlighter1_302_2766_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedBlock.gif" align=top></span><span id=Codehighlighter1_302_2766_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cnblogs.com/Images/dot.gif"></span><span id=Codehighlighter1_302_2766_Open_Text><span style="COLOR: #000000">{&nbsp;<br><img id=Codehighlighter1_306_359_Open_Image onclick="this.style.display='none'; Codehighlighter1_306_359_Open_Text.style.display='none'; Codehighlighter1_306_359_Closed_Image.style.display='inline'; Codehighlighter1_306_359_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_306_359_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_306_359_Closed_Text.style.display='none'; Codehighlighter1_306_359_Open_Image.style.display='inline'; Codehighlighter1_306_359_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;</span><span id=Codehighlighter1_306_359_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">/**/</span><span id=Codehighlighter1_306_359_Open_Text><span style="COLOR: #808080">///</span><span style="COLOR: #008000">&nbsp;</span><span style="COLOR: #808080">&lt;summary&gt;</span><span style="COLOR: #008000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;</span><span style="COLOR: #808080">///</span><span style="COLOR: #008000">&nbsp;ip&nbsp;&#181;&#196;&#213;&#170;&#210;&#170;&#203;&#181;&#195;&#247;&#161;&#163;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;</span><span style="COLOR: #808080">///</span><span style="COLOR: #008000">&nbsp;</span><span style="COLOR: #808080">&lt;/summary&gt;</span><span style="COLOR: #008000">&nbsp;</span><span style="COLOR: #808080"></span></span><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">class</span><span style="COLOR: #000000">&nbsp;ip&nbsp;:&nbsp;System.Web.UI.Page&nbsp;<br><img id=Codehighlighter1_400_2763_Open_Image onclick="this.style.display='none'; Codehighlighter1_400_2763_Open_Text.style.display='none'; Codehighlighter1_400_2763_Closed_Image.style.display='inline'; Codehighlighter1_400_2763_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_400_2763_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_400_2763_Closed_Text.style.display='none'; Codehighlighter1_400_2763_Open_Image.style.display='inline'; Codehighlighter1_400_2763_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;</span><span id=Codehighlighter1_400_2763_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cnblogs.com/Images/dot.gif"></span><span id=Codehighlighter1_400_2763_Open_Text><span style="COLOR: #000000">{&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;</span><span style="COLOR: #0000ff">private</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000">&nbsp;Page_Load(</span><span style="COLOR: #0000ff">object</span><span style="COLOR: #000000">&nbsp;sender,&nbsp;System.EventArgs&nbsp;e)&nbsp;<br><img id=Codehighlighter1_470_2510_Open_Image onclick="this.style.display='none'; Codehighlighter1_470_2510_Open_Text.style.display='none'; Codehighlighter1_470_2510_Closed_Image.style.display='inline'; Codehighlighter1_470_2510_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_470_2510_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_470_2510_Closed_Text.style.display='none'; Codehighlighter1_470_2510_Open_Image.style.display='inline'; Codehighlighter1_470_2510_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;</span><span id=Codehighlighter1_470_2510_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cnblogs.com/Images/dot.gif"></span><span id=Codehighlighter1_470_2510_Open_Text><span style="COLOR: #000000">{&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">string</span><span style="COLOR: #000000">&nbsp;str&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;System.Web.HttpContext.Current.Request.QueryString[</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">word</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">];&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">bool</span><span style="COLOR: #000000">&nbsp;cusWord</span><span style="COLOR: #000000">=</span><span style="COLOR: #0000ff">false</span><span style="COLOR: #000000">;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">如果没有自定义文字则不显示,否则只显示前30位&nbsp;</span><span style="COLOR: #008000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">((str</span><span style="COLOR: #000000">==</span><span style="COLOR: #0000ff">null</span><span style="COLOR: #000000">)</span><span style="COLOR: #000000">||</span><span style="COLOR: #000000">(str.Trim().Length</span><span style="COLOR: #000000">==</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">))&nbsp;<br><img id=Codehighlighter1_651_672_Open_Image onclick="this.style.display='none'; Codehighlighter1_651_672_Open_Text.style.display='none'; Codehighlighter1_651_672_Closed_Image.style.display='inline'; Codehighlighter1_651_672_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_651_672_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_651_672_Closed_Text.style.display='none'; Codehighlighter1_651_672_Open_Image.style.display='inline'; Codehighlighter1_651_672_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;</span><span id=Codehighlighter1_651_672_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cnblogs.com/Images/dot.gif"></span><span id=Codehighlighter1_651_672_Open_Text><span style="COLOR: #000000">{&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;str&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">""</span><span style="COLOR: #000000">;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;}</span></span><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">else</span><span style="COLOR: #000000">&nbsp;<br><img id=Codehighlighter1_687_1016_Open_Image onclick="this.style.display='none'; Codehighlighter1_687_1016_Open_Text.style.display='none'; Codehighlighter1_687_1016_Closed_Image.style.display='inline'; Codehighlighter1_687_1016_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_687_1016_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_687_1016_Closed_Text.style.display='none'; Codehighlighter1_687_1016_Open_Image.style.display='inline'; Codehighlighter1_687_1016_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;</span><span id=Codehighlighter1_687_1016_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cnblogs.com/Images/dot.gif"></span><span id=Codehighlighter1_687_1016_Open_Text><span style="COLOR: #000000">{&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">(str.Length</span><span style="COLOR: #000000">&gt;</span><span style="COLOR: #000000">30</span><span style="COLOR: #000000">)&nbsp;<br><img id=Codehighlighter1_717_763_Open_Image onclick="this.style.display='none'; Codehighlighter1_717_763_Open_Text.style.display='none'; Codehighlighter1_717_763_Closed_Image.style.display='inline'; Codehighlighter1_717_763_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_717_763_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_717_763_Closed_Text.style.display='none'; Codehighlighter1_717_763_Open_Image.style.display='inline'; Codehighlighter1_717_763_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span id=Codehighlighter1_717_763_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cnblogs.com/Images/dot.gif"></span><span id=Codehighlighter1_717_763_Open_Text><span style="COLOR: #000000">{&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;str&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;str.Substring(</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">,</span><span style="COLOR: #000000">30</span><span style="COLOR: #000000">)</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/Images/dot.gif"></span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">string</span><span style="COLOR: #000000">&nbsp;badword&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">System.Configuration.ConfigurationSettings.AppSettings[</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">badwords</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">];&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">过滤不健康词语&nbsp;</span><span style="COLOR: #008000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">for</span><span style="COLOR: #000000">(</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000">&nbsp;i</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;i</span><span style="COLOR: #000000">&lt;</span><span style="COLOR: #000000">badword.Split(&#8217;</span><span style="COLOR: #000000">|</span><span style="COLOR: #000000">&#8217;).Length;i</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">)&nbsp;<br><img id=Codehighlighter1_924_991_Open_Image onclick="this.style.display='none'; Codehighlighter1_924_991_Open_Text.style.display='none'; Codehighlighter1_924_991_Closed_Image.style.display='inline'; Codehighlighter1_924_991_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_924_991_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_924_991_Closed_Text.style.display='none'; Codehighlighter1_924_991_Open_Image.style.display='inline'; Codehighlighter1_924_991_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span id=Codehighlighter1_924_991_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cnblogs.com/Images/dot.gif"></span><span id=Codehighlighter1_924_991_Open_Text><span style="COLOR: #000000">{&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;str&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;str.Replace(badword.Split(&#8217;</span><span style="COLOR: #000000">|</span><span style="COLOR: #000000">&#8217;)[i],</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">[脏话,已被过滤]</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;cusWord</span><span style="COLOR: #000000">=</span><span style="COLOR: #0000ff">true</span><span style="COLOR: #000000">;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;}</span></span><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">获取来访者的相关信息&nbsp;</span><span style="COLOR: #008000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">string</span><span style="COLOR: #000000">&nbsp;IP&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">Your&nbsp;IP:</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">Request.UserHostAddress;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">string</span><span style="COLOR: #000000">&nbsp;Language&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">Language:</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">&nbsp;Request.UserLanguages[</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">];&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">string</span><span style="COLOR: #000000">&nbsp;OS&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">Your&nbsp;Os:</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">Request.Browser.Platform;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">string</span><span style="COLOR: #000000">&nbsp;Browser&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">Browser:</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">&nbsp;Request.Browser.Browser&nbsp;</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">&nbsp;Request.Browser.Version;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">初始化一个Image对象&nbsp;</span><span style="COLOR: #008000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;System.Drawing.Image&nbsp;copyImage&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;System.Drawing.Image.FromFile(Server.MapPath(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">ip.jpg</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">));&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;Graphics&nbsp;g&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;Graphics.FromImage(copyImage);&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;g.DrawImage(copyImage,&nbsp;</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">,&nbsp;</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">,&nbsp;copyImage.Width,&nbsp;copyImage.Height);&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;Font&nbsp;f&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000">&nbsp;Font(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">courier&nbsp;new</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">,</span><span style="COLOR: #000000">8</span><span style="COLOR: #000000">,System.Drawing.FontStyle.Bold);&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;Font&nbsp;f1&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000">&nbsp;Font(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">宋体</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">,</span><span style="COLOR: #000000">9</span><span style="COLOR: #000000">,System.Drawing.FontStyle.Underline);&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;Brush&nbsp;b1&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000">&nbsp;SolidBrush(Color.Blue);&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;Brush&nbsp;b2&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000">&nbsp;SolidBrush(Color.Red);&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;Brush&nbsp;b3&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000">&nbsp;SolidBrush(Color.Green);&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;Brush&nbsp;b4&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000">&nbsp;SolidBrush(Color.Black);&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">(cusWord)&nbsp;<br><img id=Codehighlighter1_1859_2067_Open_Image onclick="this.style.display='none'; Codehighlighter1_1859_2067_Open_Text.style.display='none'; Codehighlighter1_1859_2067_Closed_Image.style.display='inline'; Codehighlighter1_1859_2067_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_1859_2067_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1859_2067_Closed_Text.style.display='none'; Codehighlighter1_1859_2067_Open_Image.style.display='inline'; Codehighlighter1_1859_2067_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;</span><span id=Codehighlighter1_1859_2067_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cnblogs.com/Images/dot.gif"></span><span id=Codehighlighter1_1859_2067_Open_Text><span style="COLOR: #000000">{&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;g.DrawString(str,&nbsp;f1,&nbsp;b4,&nbsp;</span><span style="COLOR: #000000">80</span><span style="COLOR: #000000">,&nbsp;</span><span style="COLOR: #000000">5</span><span style="COLOR: #000000">);&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;g.DrawString(IP,&nbsp;f,&nbsp;b1,&nbsp;</span><span style="COLOR: #000000">80</span><span style="COLOR: #000000">,&nbsp;</span><span style="COLOR: #000000">18</span><span style="COLOR: #000000">);&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;g.DrawString(OS,&nbsp;f,&nbsp;b2,&nbsp;</span><span style="COLOR: #000000">80</span><span style="COLOR: #000000">,&nbsp;</span><span style="COLOR: #000000">30</span><span style="COLOR: #000000">);&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;g.DrawString(Language,&nbsp;f,&nbsp;b2,&nbsp;</span><span style="COLOR: #000000">80</span><span style="COLOR: #000000">,&nbsp;</span><span style="COLOR: #000000">42</span><span style="COLOR: #000000">);&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;g.DrawString(Browser,&nbsp;f,&nbsp;b3,&nbsp;</span><span style="COLOR: #000000">80</span><span style="COLOR: #000000">,&nbsp;</span><span style="COLOR: #000000">54</span><span style="COLOR: #000000">);&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;}</span></span><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">else</span><span style="COLOR: #000000">&nbsp;<br><img id=Codehighlighter1_2082_2251_Open_Image onclick="this.style.display='none'; Codehighlighter1_2082_2251_Open_Text.style.display='none'; Codehighlighter1_2082_2251_Closed_Image.style.display='inline'; Codehighlighter1_2082_2251_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_2082_2251_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_2082_2251_Closed_Text.style.display='none'; Codehighlighter1_2082_2251_Open_Image.style.display='inline'; Codehighlighter1_2082_2251_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;</span><span id=Codehighlighter1_2082_2251_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cnblogs.com/Images/dot.gif"></span><span id=Codehighlighter1_2082_2251_Open_Text><span style="COLOR: #000000">{&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;g.DrawString(IP,&nbsp;f,&nbsp;b1,&nbsp;</span><span style="COLOR: #000000">80</span><span style="COLOR: #000000">,&nbsp;</span><span style="COLOR: #000000">10</span><span style="COLOR: #000000">);&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;g.DrawString(OS,&nbsp;f,&nbsp;b2,&nbsp;</span><span style="COLOR: #000000">80</span><span style="COLOR: #000000">,&nbsp;</span><span style="COLOR: #000000">25</span><span style="COLOR: #000000">);&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;g.DrawString(Language,&nbsp;f,&nbsp;b2,&nbsp;</span><span style="COLOR: #000000">80</span><span style="COLOR: #000000">,&nbsp;</span><span style="COLOR: #000000">40</span><span style="COLOR: #000000">);&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;g.DrawString(Browser,&nbsp;f,&nbsp;b3,&nbsp;</span><span style="COLOR: #000000">80</span><span style="COLOR: #000000">,&nbsp;</span><span style="COLOR: #000000">55</span><span style="COLOR: #000000">);&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;}</span></span><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;g.Dispose();&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;System.IO.MemoryStream&nbsp;ms&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000">&nbsp;System.IO.MemoryStream();&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;copyImage.Save(ms,System.Drawing.Imaging.ImageFormat.Jpeg);&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;Response.ClearContent();&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;Response.ContentType&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">image/Jpeg</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;Response.BinaryWrite(ms.ToArray());&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top><br><img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;}</span></span><span style="COLOR: #000000">&nbsp;<br><img id=Codehighlighter1_2515_2759_Closed_Image onclick="this.style.display='none'; Codehighlighter1_2515_2759_Closed_Text.style.display='none'; Codehighlighter1_2515_2759_Open_Image.style.display='inline'; Codehighlighter1_2515_2759_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top><img id=Codehighlighter1_2515_2759_Open_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_2515_2759_Open_Text.style.display='none'; Codehighlighter1_2515_2759_Closed_Image.style.display='inline'; Codehighlighter1_2515_2759_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top>&nbsp;&nbsp;</span><span id=Codehighlighter1_2515_2759_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">Web</span><span id=Codehighlighter1_2515_2759_Open_Text style="DISPLAY: none"><span style="COLOR: #0000ff">#region</span><span style="COLOR: #000000">&nbsp;Web&nbsp;&nbsp;</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;</span><span style="COLOR: #0000ff">override</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">protected</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000">&nbsp;OnInit(EventArgs&nbsp;e)&nbsp;<br><img id=Codehighlighter1_2578_2630_Open_Image onclick="this.style.display='none'; Codehighlighter1_2578_2630_Open_Text.style.display='none'; Codehighlighter1_2578_2630_Closed_Image.style.display='inline'; Codehighlighter1_2578_2630_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_2578_2630_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_2578_2630_Closed_Text.style.display='none'; Codehighlighter1_2578_2630_Open_Image.style.display='inline'; Codehighlighter1_2578_2630_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;</span><span id=Codehighlighter1_2578_2630_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cnblogs.com/Images/dot.gif"></span><span id=Codehighlighter1_2578_2630_Open_Text><span style="COLOR: #000000">{&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;InitializeComponent();&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">base</span><span style="COLOR: #000000">.OnInit(e);&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;}</span></span><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">private</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000">&nbsp;InitializeComponent()&nbsp;<br><img id=Codehighlighter1_2678_2745_Open_Image onclick="this.style.display='none'; Codehighlighter1_2678_2745_Open_Text.style.display='none'; Codehighlighter1_2678_2745_Closed_Image.style.display='inline'; Codehighlighter1_2678_2745_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_2678_2745_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_2678_2745_Closed_Text.style.display='none'; Codehighlighter1_2678_2745_Open_Image.style.display='inline'; Codehighlighter1_2678_2745_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;</span><span id=Codehighlighter1_2678_2745_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cnblogs.com/Images/dot.gif"></span><span id=Codehighlighter1_2678_2745_Open_Text><span style="COLOR: #000000">{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">this</span><span style="COLOR: #000000">.Load&nbsp;</span><span style="COLOR: #000000">+=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000">&nbsp;System.EventHandler(</span><span style="COLOR: #0000ff">this</span><span style="COLOR: #000000">.Page_Load);&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;}</span></span><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;</span><span style="COLOR: #0000ff">#endregion</span></span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000"><br><img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;}</span></span><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</span></span></div>
<img src ="http://www.cnblogs.com/ftingchn/aggbug/378018.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41917/" target="_blank">[新闻]深度分析：全球千亿美元市值IT企业7月榜单点评</a>]]></description></item><item><title>如何让FLASH不遮住层</title><link>http://www.cnblogs.com/ftingchn/archive/2006/04/10/371212.html</link><dc:creator>不惊了</dc:creator><author>不惊了</author><pubDate>Mon, 10 Apr 2006 04:56:00 GMT</pubDate><guid>http://www.cnblogs.com/ftingchn/archive/2006/04/10/371212.html</guid><wfw:comment>http://www.cnblogs.com/ftingchn/comments/371212.html</wfw:comment><comments>http://www.cnblogs.com/ftingchn/archive/2006/04/10/371212.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/ftingchn/comments/commentRss/371212.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/ftingchn/services/trackbacks/371212.html</trackback:ping><description><![CDATA[<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 今天做一网站，上面的FLASH老是遮住下拉菜单的层，无奈之下百度了一下，在<a href="http://www.windstudio.net/html/200507/20050720112754.htm" target=_blank>有风的日子</a>里找到了解决方法：DW中，插入Flash动画，然后在其属性面板中，点parameters，添加参数wmode，值为transparent；<br>或者直接修改网页的代码，在定义SWF文件属性的代码中添加：<br>&lt;param name="wmode" value="transparent"&gt;<br>不过这种效果只有IE支持。<br><br>制作半透明的层，定义它的Alpha值：<br>.halfalpha { background-color: #000000; filter: Alpha(Opacity=50)}<br><br>然后在层标签中加&lt;div class="halfalpha"&gt;</p>
<img src ="http://www.cnblogs.com/ftingchn/aggbug/371212.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41916/" target="_blank">[新闻]中移动上半年净利549亿元 每天盈利3亿</a>]]></description></item><item><title>SQL的保留字查询</title><link>http://www.cnblogs.com/ftingchn/archive/2006/04/08/370104.html</link><dc:creator>不惊了</dc:creator><author>不惊了</author><pubDate>Sat, 08 Apr 2006 09:24:00 GMT</pubDate><guid>http://www.cnblogs.com/ftingchn/archive/2006/04/08/370104.html</guid><wfw:comment>http://www.cnblogs.com/ftingchn/comments/370104.html</wfw:comment><comments>http://www.cnblogs.com/ftingchn/archive/2006/04/08/370104.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/ftingchn/comments/commentRss/370104.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/ftingchn/services/trackbacks/370104.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;今天在论坛上看到有蛮多关于SQL语名报错的问题，其中不泛有保留字的原因。这里有我收集的一个用来查询保留字的小程序，可能会有点用：直接保存为.htm格式即可使用
<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><span style="COLOR: #000000">&lt;</span><span style="COLOR: #000000">HTML</span><span style="COLOR: #000000">&gt;</span><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #000000">&lt;</span><span style="COLOR: #000000">HEAD</span><span style="COLOR: #000000">&gt;&lt;</span><span style="COLOR: #000000">TITLE</span><span style="COLOR: #000000">&gt;</span><span style="COLOR: #000000">验证SQL保留字</span><span style="COLOR: #000000">&lt;/</span><span style="COLOR: #000000">TITLE</span><span style="COLOR: #000000">&gt;</span><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #000000">&lt;</span><span style="COLOR: #000000">SCRIPT&nbsp;LANGUAGE</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">VBScript</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">&gt;</span><span style="COLOR: #000000">&nbsp;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #000000">&lt;</span><span style="COLOR: #000000">!</span><span style="COLOR: #000000">--</span><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">function</span><span style="COLOR: #000000">&nbsp;keyword(str)&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>x</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">action,add,aggregate,all,alter,after,and,as,asc,avg,avg_row_length,auto_increment,between,bigint,bit,binary,blob,bool,both,by,cascade,case,char,character,change,check,checksum,column,columns,comment,constraint,create,cross,current_date,current_time,current_timestamp,data,database,databases,date,datetime,day,day_hour,day_minute,day_second,dayofmonth,dayofweek,dayofyear,dec,decimal,default,delayed,delay_key_write,delete,desc,describe,distinct,distinctrow,double,drop,end,else,escape,escaped,enclosed,enum,explain,exists,fields,file,first,float,float4,float8,flush,foreign,from,for,full,function,global,grant,grants,group,having,heap,high_priority,hour,hour_minute,hour_second,hosts,identified,ignore,in,index,infile,inner,insert,insert_id,int,integer,interval,int1,int2,int3,int4,int8,into,if,is,isam,join,key,keys,kill,last_insert_id,leading,left,length,like,lines,limit,load,local,lock,logs,long,longblob,longtext,low_priority,max,max_rows,match,mediumblob,mediumtext,mediumint,middleint,min_rows,minute,minute_second,modify,month,monthname,myisam,natural,numeric,no,not,null,on,optimize,option,optionally,or,order,outer,outfile,pack_keys,partial,password,precision,primary,procedure,process,processlist,privileges,read,real,references,reload,regexp,rename,replace,restrict,returns,revoke,rlike,row,rows,second,select,set,show,shutdown,smallint,soname,sql_big_tables,sql_big_selects,sql_low_priority_updates,sql_log_off,sql_log_update,sql_select_limit,sql_small_result,sql_big_result,sql_warnings,straight_join,starting,status,string,table,tables,temporary,terminated,text,then,time,timestamp,tinyblob,tinytext,tinyint,trailing,to,type,use,using,unique,unlock,unsigned,update,usage,values,varchar,variables,varying,varbinary,with,write,when,where,year,year_month,zerofill</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>y</span><span style="COLOR: #000000">=</span><span style="COLOR: #0000ff">split</span><span style="COLOR: #000000">(x,</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">,</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">)&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">for</span><span style="COLOR: #000000">&nbsp;i</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">to</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">ubound</span><span style="COLOR: #000000">(y)&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">&nbsp;str</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">y(i)&nbsp;</span><span style="COLOR: #0000ff">then</span><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>keyword</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">y(i)</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">属于保留字</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">exit</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">for</span><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">else</span><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>keyword</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">str</span><span style="COLOR: #000000">&amp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">不属于保留字</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">end</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">next</span><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">ERASE</span><span style="COLOR: #000000">&nbsp;y&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">msgbox</span><span style="COLOR: #000000">(keyword)&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">end&nbsp;function</span><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">Sub</span><span style="COLOR: #000000">&nbsp;Button1_OnClick&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Dim</span><span style="COLOR: #000000">&nbsp;TheForm&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Set</span><span style="COLOR: #000000">&nbsp;TheForm&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;Document.ValidForm&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;</span><span style="COLOR: #0000ff">If</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">len</span><span style="COLOR: #000000">(</span><span style="COLOR: #0000ff">trim</span><span style="COLOR: #000000">(TheForm.Text1.Value))</span><span style="COLOR: #000000">&lt;=</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">Then</span><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">MsgBox</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">请输入</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;</span><span style="COLOR: #0000ff">Else</span><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;keyword(TheForm.Text1.Value)&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;</span><span style="COLOR: #0000ff">End</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">If</span><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">End&nbsp;Sub</span><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #000000">--&gt;</span><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #000000">&lt;/</span><span style="COLOR: #000000">SCRIPT</span><span style="COLOR: #000000">&gt;</span><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #000000">&lt;/</span><span style="COLOR: #000000">HEAD</span><span style="COLOR: #000000">&gt;</span><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #000000">&lt;</span><span style="COLOR: #000000">BODY</span><span style="COLOR: #000000">&gt;</span><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #000000">&lt;</span><span style="COLOR: #000000">H3</span><span style="COLOR: #000000">&gt;</span><span style="COLOR: #000000">SQL保留字验证</span><span style="COLOR: #000000">&lt;/</span><span style="COLOR: #000000">H3</span><span style="COLOR: #000000">&gt;&lt;</span><span style="COLOR: #000000">HR</span><span style="COLOR: #000000">&gt;</span><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #000000">&lt;</span><span style="COLOR: #000000">FORM&nbsp;NAME</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">ValidForm</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">&gt;</span><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>请输入保留字：&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #000000">&lt;</span><span style="COLOR: #000000">INPUT&nbsp;NAME</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">Text1</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">&nbsp;TYPE</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">TEXT</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">&nbsp;size</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">8</span><span style="COLOR: #000000">&gt;</span><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #000000">&lt;</span><span style="COLOR: #000000">INPUT&nbsp;NAME</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">Button1</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">&nbsp;TYPE</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">BUTTON</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">&nbsp;VALUE</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">提交</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">&gt;</span><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #000000">&lt;/</span><span style="COLOR: #000000">FORM</span><span style="COLOR: #000000">&gt;</span><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #000000">&lt;/</span><span style="COLOR: #000000">BODY</span><span style="COLOR: #000000">&gt;</span><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #000000">&lt;/</span><span style="COLOR: #000000">HTML</span><span style="COLOR: #000000">&gt;</span></div>
<img src ="http://www.cnblogs.com/ftingchn/aggbug/370104.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41915/" target="_blank">[新闻]中国移动谋划推出Web2.0产品mspaces.net</a>]]></description></item><item><title>多项目选择菜单</title><link>http://www.cnblogs.com/ftingchn/archive/2006/04/06/368208.html</link><dc:creator>不惊了</dc:creator><author>不惊了</author><pubDate>Thu, 06 Apr 2006 03:58:00 GMT</pubDate><guid>http://www.cnblogs.com/ftingchn/archive/2006/04/06/368208.html</guid><wfw:comment>http://www.cnblogs.com/ftingchn/comments/368208.html</wfw:comment><comments>http://www.cnblogs.com/ftingchn/archive/2006/04/06/368208.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/ftingchn/comments/commentRss/368208.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/ftingchn/services/trackbacks/368208.html</trackback:ping><description><![CDATA[<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><span style="COLOR: #000000">&lt;</span><span style="COLOR: #000000">script&nbsp;language</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">JavaScript</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">&gt;</span><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">function</span><span style="COLOR: #000000">&nbsp;copyToList(from,to)&nbsp;</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">from表示:包含可选择项目的select对象名字&nbsp;to表示:列出可选择项目的select对象名字&nbsp;//你可以根据你的具体情况修改&nbsp;</span><span style="COLOR: #008000"><br><img id=Codehighlighter1_130_866_Open_Image onclick="this.style.display='none'; Codehighlighter1_130_866_Open_Text.style.display='none'; Codehighlighter1_130_866_Closed_Image.style.display='inline'; Codehighlighter1_130_866_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_130_866_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_130_866_Closed_Text.style.display='none'; Codehighlighter1_130_866_Open_Image.style.display='inline'; Codehighlighter1_130_866_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedBlock.gif" align=top></span><span id=Codehighlighter1_130_866_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cnblogs.com/Images/dot.gif"></span><span id=Codehighlighter1_130_866_Open_Text><span style="COLOR: #000000">{&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;fromList&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;eval('document.forms[</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">].'&nbsp;</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">&nbsp;from);&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;toList&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;eval('document.forms[</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">].'&nbsp;</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">&nbsp;to);&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">&nbsp;(toList.options.length&nbsp;</span><span style="COLOR: #000000">&gt;</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">&amp;&amp;</span><span style="COLOR: #000000">&nbsp;toList.options[</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">].value&nbsp;</span><span style="COLOR: #000000">==</span><span style="COLOR: #000000">&nbsp;'temp')&nbsp;<br><img id=Codehighlighter1_300_337_Open_Image onclick="this.style.display='none'; Codehighlighter1_300_337_Open_Text.style.display='none'; Codehighlighter1_300_337_Closed_Image.style.display='inline'; Codehighlighter1_300_337_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_300_337_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_300_337_Closed_Text.style.display='none'; Codehighlighter1_300_337_Open_Image.style.display='inline'; Codehighlighter1_300_337_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;</span><span id=Codehighlighter1_300_337_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cnblogs.com/Images/dot.gif"></span><span id=Codehighlighter1_300_337_Open_Text><span style="COLOR: #000000">{&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;toList.options.length&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;}</span></span><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;</span><span style="COLOR: #0000ff">var</span><span style="COLOR: #000000">&nbsp;sel&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">false</span><span style="COLOR: #000000">;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;</span><span style="COLOR: #0000ff">for</span><span style="COLOR: #000000">&nbsp;(i</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;i</span><span style="COLOR: #000000">&lt;</span><span style="COLOR: #000000">fromList.options.length;i</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">)&nbsp;<br><img id=Codehighlighter1_405_828_Open_Image onclick="this.style.display='none'; Codehighlighter1_405_828_Open_Text.style.display='none'; Codehighlighter1_405_828_Closed_Image.style.display='inline'; Codehighlighter1_405_828_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_405_828_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_405_828_Closed_Text.style.display='none'; Codehighlighter1_405_828_Open_Image.style.display='inline'; Codehighlighter1_405_828_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;</span><span id=Codehighlighter1_405_828_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cnblogs.com/Images/dot.gif"></span><span id=Codehighlighter1_405_828_Open_Text><span style="COLOR: #000000">{&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">var</span><span style="COLOR: #000000">&nbsp;current&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;fromList.options[i];&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">&nbsp;(current.selected)&nbsp;<br><img id=Codehighlighter1_479_823_Open_Image onclick="this.style.display='none'; Codehighlighter1_479_823_Open_Text.style.display='none'; Codehighlighter1_479_823_Closed_Image.style.display='inline'; Codehighlighter1_479_823_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_479_823_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_479_823_Closed_Text.style.display='none'; Codehighlighter1_479_823_Open_Image.style.display='inline'; Codehighlighter1_479_823_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</span><span id=Codehighlighter1_479_823_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cnblogs.com/Images/dot.gif"></span><span id=Codehighlighter1_479_823_Open_Text><span style="COLOR: #000000">{&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sel&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">true</span><span style="COLOR: #000000">;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">&nbsp;(current.value&nbsp;</span><span style="COLOR: #000000">==</span><span style="COLOR: #000000">&nbsp;'temp')&nbsp;<br><img id=Codehighlighter1_543_600_Open_Image onclick="this.style.display='none'; Codehighlighter1_543_600_Open_Text.style.display='none'; Codehighlighter1_543_600_Closed_Image.style.display='inline'; Codehighlighter1_543_600_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_543_600_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_543_600_Closed_Text.style.display='none'; Codehighlighter1_543_600_Open_Image.style.display='inline'; Codehighlighter1_543_600_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id=Codehighlighter1_543_600_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cnblogs.com/Images/dot.gif"></span><span id=Codehighlighter1_543_600_Open_Text><span style="COLOR: #000000">{&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;alert&nbsp;('你不能选择这个项目</span><span style="COLOR: #000000">!</span><span style="COLOR: #000000">');&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000">;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;txt&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;current.text;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;val&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;current.value;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;toList.options[toList.length]&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000">&nbsp;Option(txt,val);&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;toList.options[toList.length</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">].selected</span><span style="COLOR: #000000">=</span><span style="COLOR: #0000ff">true</span><span style="COLOR: #000000">;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fromList.options[i]&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">null</span><span style="COLOR: #000000">;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;i</span><span style="COLOR: #000000">--</span><span style="COLOR: #000000">;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;}</span></span><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">&nbsp;(</span><span style="COLOR: #000000">!</span><span style="COLOR: #000000">sel)&nbsp;alert&nbsp;('你还没有选择任何项目');&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</span></span><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff">function</span><span style="COLOR: #000000">&nbsp;allSelect()&nbsp;</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">这是当用户按下提交按钮时，对列出选择的select对象执行全选工作，让递交至的后台程序能取得相关数据&nbsp;</span><span style="COLOR: #008000"><br><img id=Codehighlighter1_944_1126_Open_Image onclick="this.style.display='none'; Codehighlighter1_944_1126_Open_Text.style.display='none'; Codehighlighter1_944_1126_Closed_Image.style.display='inline'; Codehighlighter1_944_1126_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_944_1126_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_944_1126_Closed_Text.style.display='none'; Codehighlighter1_944_1126_Open_Image.style.display='inline'; Codehighlighter1_944_1126_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedBlock.gif" align=top></span><span id=Codehighlighter1_944_1126_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cnblogs.com/Images/dot.gif"></span><span id=Codehighlighter1_944_1126_Open_Text><span style="COLOR: #000000">{&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;List&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;document.forms[</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">].chosen;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">&nbsp;(List.length&nbsp;</span><span style="COLOR: #000000">&amp;&amp;</span><span style="COLOR: #000000">&nbsp;List.options[</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">].value&nbsp;</span><span style="COLOR: #000000">==</span><span style="COLOR: #000000">&nbsp;'temp')&nbsp;</span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000">;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;</span><span style="COLOR: #0000ff">for</span><span style="COLOR: #000000">&nbsp;(i</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;i</span><span style="COLOR: #000000">&lt;</span><span style="COLOR: #000000">List.length;i</span><span style="COLOR: #000000">++</span><span style="COLOR: #000000">)&nbsp;<br><img id=Codehighlighter1_1079_1123_Open_Image onclick="this.style.display='none'; Codehighlighter1_1079_1123_Open_Text.style.display='none'; Codehighlighter1_1079_1123_Closed_Image.style.display='inline'; Codehighlighter1_1079_1123_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_1079_1123_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1079_1123_Closed_Text.style.display='none'; Codehighlighter1_1079_1123_Open_Image.style.display='inline'; Codehighlighter1_1079_1123_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;</span><span id=Codehighlighter1_1079_1123_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cnblogs.com/Images/dot.gif"></span><span id=Codehighlighter1_1079_1123_Open_Text><span style="COLOR: #000000">{&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;List.options[i].selected&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">true</span><span style="COLOR: #000000">;&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;}</span></span><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</span></span><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #000000">&lt;/</span><span style="COLOR: #000000">script</span><span style="COLOR: #000000">&gt;</span><span style="COLOR: #000000">&nbsp;<br><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></span></div>
<p>&nbsp;</p>
<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">form&nbsp;</span><span style="COLOR: #ff0000">action</span><span style="COLOR: #0000ff">=""</span><span style="COLOR: #ff0000">&nbsp;method</span><span style="COLOR: #0000ff">="post"</span><span style="COLOR: #ff0000">&nbsp;onSubmit</span><span style="COLOR: #0000ff">="allSelect()"</span><span style="COLOR: #ff0000">&nbsp;</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">&nbsp;<br></span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">table&nbsp;</span><span style="COLOR: #ff0000">border</span><span style="COLOR: #0000ff">="0"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">tr</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">td</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">select&nbsp;</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="possible"</span><span style="COLOR: #ff0000">&nbsp;size</span><span style="COLOR: #0000ff">="4"</span><span style="COLOR: #ff0000">&nbsp;MULTIPLE&nbsp;width</span><span style="COLOR: #0000ff">=200&nbsp;</span><span style="COLOR: #ff0000">style</span><span style="COLOR: #0000ff">="width:&nbsp;200px"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">option&nbsp;</span><span style="COLOR: #ff0000">value</span><span style="COLOR: #0000ff">="temp"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">从右边选择号码&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">select</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">td</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">td</span><span style="COLOR: #0000ff">&gt;&lt;</span><span style="COLOR: #800000">input&nbsp;</span><span style="COLOR: #ff0000">type</span><span style="COLOR: #0000ff">="button"</span><span style="COLOR: #ff0000">&nbsp;value</span><span style="COLOR: #0000ff">="=&gt;"</span><span style="COLOR: #ff0000">&nbsp;onclick</span><span style="COLOR: #0000ff">="javascript:copyToList('possible','chosen')"</span><span style="COLOR: #0000ff">&gt;&lt;</span><span style="COLOR: #800000">br</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">input&nbsp;</span><span style="COLOR: #ff0000">type</span><span style="COLOR: #0000ff">="button"</span><span style="COLOR: #ff0000">&nbsp;value</span><span style="COLOR: #0000ff">="&lt;="</span><span style="COLOR: #ff0000">&nbsp;onclick</span><span style="COLOR: #0000ff">="javascript:copyToList('chosen','possible')"</span><span style="COLOR: #0000ff">&gt;&lt;/</span><span style="COLOR: #800000">td</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">td</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">select&nbsp;</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="chosen"</span><span style="COLOR: #ff0000">&nbsp;size</span><span style="COLOR: #0000ff">="4"</span><span style="COLOR: #ff0000">&nbsp;MULTIPLE&nbsp;width</span><span style="COLOR: #0000ff">=200&nbsp;</span><span style="COLOR: #ff0000">style</span><span style="COLOR: #0000ff">="width:&nbsp;200px;"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">option&nbsp;</span><span style="COLOR: #ff0000">value</span><span style="COLOR: #0000ff">="sh"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">中国上海</span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">option&nbsp;</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">option&nbsp;</span><span style="COLOR: #ff0000">value</span><span style="COLOR: #0000ff">="wh"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">中国武汉</span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">option</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">option&nbsp;</span><span style="COLOR: #ff0000">value</span><span style="COLOR: #0000ff">="bj"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">中国北京</span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">option</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">option&nbsp;</span><span style="COLOR: #ff0000">value</span><span style="COLOR: #0000ff">="hk"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">中国香港</span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">option</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">select</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">td</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">tr</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">table</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">&nbsp;<br></span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">form</span><span style="