<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Life is like a dream &#187; Website</title>
	<atom:link href="http://ahlang.com/tag/website/feed/" rel="self" type="application/rss+xml" />
	<link>http://ahlang.com</link>
	<description></description>
	<lastBuildDate>Sat, 03 Dec 2011 05:15:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>WordPress Skin:Redoable 1.1</title>
		<link>http://ahlang.com/2007/03/04/redoable-11/</link>
		<comments>http://ahlang.com/2007/03/04/redoable-11/#comments</comments>
		<pubDate>Sat, 03 Mar 2007 16:20:13 +0000</pubDate>
		<dc:creator>Ahlang</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Website]]></category>

		<guid isPermaLink="false">http://hs.swl.cn/?p=48</guid>
		<description><![CDATA[一个基于K2的主题，在K2的基础上做了一些修改，例如它可以设置Live Search的结果显示在中间还是侧边，Redoable的特色就是支持众多的插件，另外可以设置主题为深颜色。 支持插件列表： # Ale... ]]></description>
			<content:encoded><![CDATA[<p><img src="/wp-content/themes/redoable/screenshot.png" alt="Redoable 1.1 截图" /></p>
<p>一个基于K2的主题，在K2的基础上做了一些修改，例如它可以设置Live Search的结果显示在中间还是侧边，Redoable的特色就是支持众多的插件，另外可以设置主题为深颜色。</p>
<blockquote><p>支持插件列表：<br />
# Alex King’s Articles v1.1<br />
# Brian’s Latest Comments v1.5.10<br />
# Extended Live Archives v0.10beta-r18<br />
# Semiologic’s Google Analytics Plugin v1.9<br />
# Gregarious v1.5.2 and v2 beta<br />
# Noteworthy v1.0<br />
# Random Quotes v1.3<br />
# Rechuked Buttons v1.0 (Based on Sawchuck Buttons plugin) &#8211; Not WP2.1 compatible…yet<br />
# Related Posts v2.04<br />
# Share This v1.4<br />
# Ultimate Tag Warrior v3.1415926<br />
# Ultimate Category Cloud v2.0 (Based on Weighted Categories plugin)<br />
# Word Count v0.01<br />
# WP-PostRatings v1.04<br />
# WP-PostViews v1.1<br />
# iMP Download Manager v1.2<br />
# Quoter v1.1<br />
# Subscribe to Comments v2.0.8<br />
# Spam Karma 2<br />
# wp-recent-links</p></blockquote>
<p><a href="http://www.deanjrobinson.com/wordpress/redoable">Redoable homepage</a> </p>
<p>不过，这skin,更推荐用户使用FF浏览器.</p>
<p>包括</p>
<ul>
右侧栏的live search在ie7下有错误，只可以回车提交搜索，而不是直接使用即时显示结果……<br />
底部的一排链接无法查看，opera及ie7均无效,仅在FF可用 <img src='http://ahlang.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />
</ul>
<p>Google的Adsense上的FF推介<br />
带Google 工具栏的Firefox:<br />
<script type="text/javascript"><!--
google_ad_client = "pub-8769230258248952";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as_rimg";
google_cpa_choice = "CAAQycb8zwEaCNrmdvgKt1bFKJnA93M";
google_ad_channel = "";
//--></script><br />
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://ahlang.com/2007/03/04/redoable-11/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google News Bar整合进pjblog</title>
		<link>http://ahlang.com/2007/02/17/google-news-bar/</link>
		<comments>http://ahlang.com/2007/02/17/google-news-bar/#comments</comments>
		<pubDate>Sat, 17 Feb 2007 09:09:00 +0000</pubDate>
		<dc:creator>Ahlang</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Website]]></category>

		<guid isPermaLink="false">http://hs.swl.cn/?p=5</guid>
		<description><![CDATA[在ChinaUI上看到Google AJAX Search API新增News及图书搜索结果的网站嵌入功能，感觉比较好玩，于是顺便就整合进了自己的blog内。 读取的关键字为blog文章的第一个ta... ]]></description>
			<content:encoded><![CDATA[<p>在ChinaUI上看到<a target="_blank" href="http://www.chinaui.com/news/newsinfo.aspx?ARTICLE_ID=2017">Google AJAX Search API新增News及图书搜索结果的网站嵌入功能</a>，感觉比较好玩，于是顺便就整合进了自己的blog内。<br/>
<ul style="list-style-type:decimal"><br/>
<li>读取的关键字为blog文章的第一个tag<br/> </li>
<li>如无匹配的新闻,Google会自动以Google作为其关键字<br/> </li>
<li>我这里的实现的方法很蠢:在article.asp里重新建了两数据集，以便获得第一个tag<br/></li>
</ul>
<p><br/><br/>Google官方的创建news bar 的向导页面:<a target="_blank" href="http://www.google.com/uds/solutions/wizards/newsbar.html">News Bar Wizard &#8211; Put Google News on Your Web Page</a> ,有兴趣的朋友，可点击查看。<br/><br/><img src="/attachments/month_0702/g2007216131850.jpg" border="0" alt=""/><br/></p>
]]></content:encoded>
			<wfw:commentRss>http://ahlang.com/2007/02/17/google-news-bar/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>页面如何实现显示随机标题</title>
		<link>http://ahlang.com/2006/11/17/random-title/</link>
		<comments>http://ahlang.com/2006/11/17/random-title/#comments</comments>
		<pubDate>Fri, 17 Nov 2006 19:40:00 +0000</pubDate>
		<dc:creator>Ahlang</dc:creator>
				<category><![CDATA[Website]]></category>

		<guid isPermaLink="false">http://hs.swl.cn/?p=25</guid>
		<description><![CDATA[类似于Verycd的效果。 &#60;!DOCTYPE HTML PUBLIC &#34;-//W3C//DT... ]]></description>
			<content:encoded><![CDATA[<p>类似于Verycd的效果。</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;</li>
<li>&lt;HTML&gt;</li>
<li>&lt;HEAD&gt;</li>
<li>&lt;TITLE&gt; New Document &lt;/TITLE&gt;</li>
<li>&lt;META NAME=&quot;Generator&quot; CONTENT=&quot;EditPlus&quot;&gt;</li>
<li>&lt;META NAME=&quot;Author&quot; CONTENT=&quot;&quot;&gt;</li>
<li>&lt;META NAME=&quot;Keywords&quot; CONTENT=&quot;&quot;&gt;</li>
<li>&lt;META NAME=&quot;Description&quot; CONTENT=&quot;&quot;&gt;</li>
<li>&lt;/HEAD&gt;</li>
<li>&nbsp;</li>
<li>&lt;BODY&gt;</li>
<li>&lt;body onload=&quot;oload()&quot;&gt;</li>
<li>&nbsp;</li>
<li>&lt;/body&gt;</li>
<li>&lt;script type=&quot;text/javascript&quot;&gt;</li>
<li>function oload(){</li>
<li>theTIT = new Array('共享世界，有你才精彩！'</li>
<li>,'目标愈高，志向愈可贵。'</li>
<li>,'生活的理想，就是为了理想的生活。'</li>
<li>,'每一天都是一个全新的开始。'</li>
<li>,'今天的执著，会造成明日的后悔。'</li>
<li>,'世间的活动，缺点虽多，但仍是美好的。'</li>
<li>,'不要浪费你的生命在你一定会后悔的地方上。'</li>
<li>,'人没有自由，犹如木偶。'</li>
<li>,'寻找本身就是一种幸福。'</li>
<li>,'不懂得自爱的人，是没有能力去爱别人的。'</li>
<li>,'如果你能像看别人缺点一样，如此准确地发现自己的缺点，那么你的生命将会不平凡。'</li>
<li>,'有个等待也不错。'</li>
<li>,'生活中的万事万物，无不可以吸收教益，无不可以成文，只要”求思之深而无不在”定能有所得益。'</li>
<li>,'不招人妒是庸才。'</li>
<li>,'精神里需要的东西，超出现实的负荷，是失败的一个原因。'</li>
<li>,'灵感，不过是顽强地劳动而获得的奖赏。'</li>
<li>,'春蚕到死丝方尽，人至期颐亦不休。一息尚存须努力，留作青年好范畴。'</li>
<li>,'要知道你用食指指着别人大骂时，手中另外三个指头是指着自己的。'</li>
<li>,'逆境中不自弃，顺境中不张扬。'</li>
<li>,'人家怕你，并不是一种福；人家欺你，并不是一种辱。'</li>
<li>,'分享互联网'</li>
<li>,'人生在世界是短暂的，对这短暂的人生，我们最好的报答就是工作。'</li>
<li>,'睡觉是为了踏实地工作，工作是为了踏实地睡觉。'</li>
<li>,'不是事业为了思想，而是思想为了事业。'</li>
<li>,'使生活变成幻想，再把幻想化为现实。'</li>
<li>,'来是偶然的，走是必然的。所以你必须，随缘不变，不变随缘。'</li>
<li>,'我们必须接受失望， 因为它是有限的，但千万不可失去希望，因为它是无穷的。'</li>
<li>,'羞耻心是所有品德的源泉。'</li>
<li>,'修行就是修正自己错误的观念。'</li>
<li>,'坐而论道，不如起而行动。'</li>
<li>,'有所成就是人生唯一的真正乐趣。'</li>
<li>,'你什么时候放下， 什么时候就没有烦恼。'</li>
<li>,'与其事过境还不时地感叹，不如用心地好好珍惜所有。'</li>
<li>,'一个人的价值，应该看他贡献什么，而不应当看他取得什么。'</li>
<li>,'忌妒别人，不会给自己增加任何的好处。忌妒别人，也不可能减少别人的成就。'</li>
<li>,'对人恭敬，就是在庄严你自己。','我的世界有我的真理，正义的立场由我决定。'</li>
<li>,'想象力比知识更重要。','你希望掌握永恒，那你必须控制现在。'</li>
<li>,'勇于接受别人的批评，正好可以调整自己的缺点。'</li>
<li>,'无事莫把闲话聊，是非往往闲话生。'</li>
<li>,'人生的价值，并不是用时间，而是用深度去衡量的。'</li>
<li>,'真正没有资格谈明天的人，是那个不懂得珍惜今天的人。'</li>
<li>,'超越自我。','随缘不是得过且过，因循苟且，而是尽人事听天命。'</li>
<li>,'只要自觉心安，东西南北都好。如有一人未度，切莫自己逃了。'</li>
<li>,'朋友就是另一个我。','谁给我一滴水， 我便回报他整个大海。'</li>
<li>,'人类最大的错误， 在于不敢承担圣人的心。'</li>
<li>,'一个不是我们有所求的朋友才是真正的朋友。'</li>
<li>,'拥有一颗无私的爱心，便拥有了一切。'</li>
<li>,'站在光明中看到的只是黑暗，站在黑暗中却拥有光明。'</li>
<li>,'你的选择是做或不做，但不做就永远不会有机会。'</li>
<li>,'不要在智慧中夹杂着傲慢，不要使谦虚缺乏智慧。'</li>
<li>,'我们确实有如是的优点， 但也要隐藏几分，这个叫做涵养。'</li>
<li>,'当你对自己诚实的时候，世界上没有人能够欺骗得了你。'</li>
<li>,'十日画一水，五日画一石。','最足以显示一个人性格的，莫过于他所嘲笑的是什么东西。'</li>
<li>,'和你一同笑过的人，你可能把他忘掉；但是和你一同哭过的人，你却永远不忘。'</li>
<li>,'沉默是诽谤最好的答复。'</li>
<li>,'戏言不能伤敌但能伤友。'</li>
<li>,'你的谦逊会使别人感到高兴。'</li>
<li>,'与人相处之道，在于无限的容忍。'</li>
<li>,'能为别人设想的人，永远不寂寞。'</li>
<li>,'学历代表过去，学习力掌握将来。'</li>
<li>,'要不得谦词是废话。'</li>
<li>,'自由的目的是为了为他人创造自由。'</li>
<li>,'人生得一知己足已，斯世当以同怀视之。'</li>
<li>,'广结众缘，就是不要去伤害任何一个人。'</li>
<li>,'人和人的心最远又最近，真诚便是中间的通道。'</li>
<li>,'自己不曾拥有，就快乐地欣赏别人的拥有。'</li>
<li>,'原谅别人，就是给自己心中留下空间，以便回旋。'</li>
<li>,'宁可自己去原谅原谅别人，莫让别人来原谅你。'</li>
<li>,'一个人如果不能从内心去原谅别人，那他就永远不会心安理得。');</li>
<li>titID = Math.floor(Math.random()*theTIT.length);</li>
<li>document.title = 'Life is like a dream ：'+theTIT[titID]</li>
<li>}</li>
<li>&lt;/script&gt;</li>
<li>&nbsp;</li>
<li>&lt;/BODY&gt;</li>
<li>&lt;/HTML&gt;</li></ol></div>
]]></content:encoded>
			<wfw:commentRss>http://ahlang.com/2006/11/17/random-title/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP中如何访问SQL Server</title>
		<link>http://ahlang.com/2006/10/27/asp-mssql/</link>
		<comments>http://ahlang.com/2006/10/27/asp-mssql/#comments</comments>
		<pubDate>Fri, 27 Oct 2006 14:09:00 +0000</pubDate>
		<dc:creator>Ahlang</dc:creator>
				<category><![CDATA[Website]]></category>

		<guid isPermaLink="false">http://hs.swl.cn/?p=32</guid>
		<description><![CDATA[介绍如何使用 ActiveX 数据对象 (ADO) ... ]]></description>
			<content:encoded><![CDATA[<p>介绍如何使用 ActiveX 数据对象 (ADO) 在 ASP 脚本中建立到 SQL Server 的连接，同时利用 ODBC 3.0 的连接池功能。</p>
<p><strong>连接池</strong><br />
启用 ODBC 连接池。<br />
有关连接池的其他信息以及有关如何启用连接池功能的说明，请单击下面的文章编号，以查看 Microsoft 知识库中相应的文章：<br />
<a href="http://support.microsoft.com/kb/164221/">164221</a> INFO：如何在 ODBC 应用程序中启用连接池<br />
<strong><br />
ODBC DSN</strong><br />
使用“ODBC 管理器”，在安装了 Microsoft Internet Information Server (IIS) 的计算机上创建一个系统数据源名称 (DSN)。指定一次连接属性，然后在每个页面上重新使用此属性。例如，在 Global.asa 文件的“Session_OnStart”事件中，将连接属性定义为：</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">Session(&quot;ConnectionString&quot;) =</li>
<li>&quot;dsn=SQLSysDSN;uid=&lt;username&gt;;pwd=&lt;strong password&gt;;DATABASE=pubs;APP=ASP Script&quot;</li></ol></div>
<p>确保满足下列所有条件：<br />
• “系统 DSN”定义中没有选中“受信任连接”框。<br />
• SQL Server 安全模式不是“Windows NT 集成”。<br />
• 在连接属性中，uid 不为空。<br />
否则，到 SQL Server 的连接可能会失败，并收到以下错误消息：</p>
<p><em>Microsoft OLE DB provider for ODBC Drivers error &#8217;80004005&#8242;<br />
[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed- User:_<br />
Reason: Not defined as a valid user of a trusted SQL Server connection.</em></p>
<p><strong>Global.asa</strong>是否使用 Global.asa 文件是可选的。在其位置上，在此文件中创建的条目通常可以放到应用程序调用的第一页上。假定 ASP 脚本位于一个在“Internet 服务管理器”中没有定义为虚拟目录的文件夹中，而是位于另一个虚拟目录下面，那么包含 Session 变量和 DSN 定义的 Global.asa 文件就必须保留在该虚拟目录中。否则，将收到以下错误消息：<br />
<em>Microsoft OLE DB Provider for ODBC Drivers error &#8217;80004005&#8242;<br />
[Microsoft][ODBC Driver Manager] Data source name not found and no<br />
default driver specified</em></p>
<p><strong>ASP 脚本中的连接</strong><br />
通过打开和关闭到每个 Active Server Pages 上的数据库的连接来利用连接池。要打开该连接，请在页面的 <Body> 部分中键入以下语句：</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">&lt;%</li>
<li>Set OBJdbConnection = Server.CreateObject(&quot;ADODB.Connection&quot;)</li>
<li>OBJdbConnection.Open Session(&quot;ConnectionString&quot;) %&gt;</li></ol></div>
<p>要关闭该连接，请直接将以下内容放到 </Body> 标记后：</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">&lt;%</li>
<li>OBJdbConnection.Close</li>
<li>Set OBJdbConnection = Nothing</li>
<li>%&gt;</li></ol></div>
<p>如果没有按照本文前面介绍的那样正确定义连接设置，您可能会收到以下两条错误消息：</p>
<p><em>Microsoft OLE DB Provider for ODBC Drivers error &#8217;80004005&#8242;<br />
[Microsoft][ODBC SQL Server Driver][DBNMPNTW]Connection broken.</em><br />
- 或者 -<br />
<em>Microsoft OLE DB Provider for ODBC Drivers error &#8217;80004005&#8242;<br />
[Microsoft][ODBC SQL Server Driver]Communication link failure</em></p>
<p>此处是一个包含 Global.asa 和 Authors.asp 文件的示例应用程序。此示例应用程序将返回名为“authors”的“pubs”表中的四列和所有记录。</p>
<p>注意：您必须先将 UID <username> 和 pwd =
<password> 更改为正确的值，然后才能运行此代码。请确保该 UID 具有在数据库中执行此操作所需的适当权限。</p>
<p><strong>Global.asa</strong></p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">&lt;SCRIPT LANGUAGE=VBScript RUNAT=Server&gt;</li>
<li>Sub Session_OnStart</li>
<li>Session(&quot;ConnectionString&quot;) =</li>
<li>&quot;DSN=SQLSysDSN;UID=&lt;username&gt;;PWD=&lt;strong password&gt;;DATABASE=pubs;APP=ASP script&quot;</li>
<li>Session(&quot;ConnectionTimeout&quot;) = 15</li>
<li>Session(&quot;CommandTimeout&quot;) = 30</li>
<li>End Sub</li>
<li>&nbsp;</li>
<li>Sub Session_OnEnd</li>
<li>&nbsp;</li>
<li>End Sub</li>
<li>&lt;/SCRIPT&gt;</li></ol></div>
<p><strong>Authors.asp</strong></p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">&lt;HTML&gt;</li>
<li>&lt;HEAD&gt;</li>
<li>&lt;TITLE&gt;All Authors&lt;/TITLE&gt;</li>
<li>&lt;/HEAD&gt;</li>
<li>&lt;BODY BGCOLOR=&quot;#FFFFFF&quot;&gt;</li>
<li>&nbsp;</li>
<li>&lt;% Set OBJdbConnection = Server.CreateObject(&quot;ADODB.Connection&quot;)</li>
<li>OBJdbConnection.ConnectionTimeout = Session(&quot;ConnectionTimeout&quot;)</li>
<li>OBJdbConnection.CommandTimeout = Session(&quot;CommandTimeout&quot;)</li>
<li>OBJdbConnection.Open Session(&quot;ConnectionString&quot;)</li>
<li>Set SQLStmt = Server.CreateObject(&quot;ADODB.Command&quot;)</li>
<li>Set RS = Server.CreateObject (&quot;ADODB.Recordset&quot;)</li>
<li>%&gt;</li>
<li>&nbsp;</li>
<li>&lt;p&gt;</li>
<li>&lt;table border=&quot;0&quot; bordercolor=&quot;#000000&quot;&gt;</li>
<li>&lt;%</li>
<li>SQLStmt.CommandText = &quot;select * from authors&quot;</li>
<li>SQLStmt.CommandType = 1</li>
<li>Set SQLStmt.ActiveConnection = OBJdbConnection</li>
<li>RS.Open SQLStmt</li>
<li>&nbsp;</li>
<li>Do While Not RS.EOF</li>
<li>%&gt;</li>
<li>&lt;TR&gt;</li>
<li>&lt;TD Width = 150 ALIGN=LEFT&gt;</li>
<li>&lt;FONT SIZE=+1&gt;</li>
<li>&lt;%= RS(&quot;au_id&quot;) %&gt;</li>
<li>&lt;/FONT&gt;&lt;/TD&gt;</li>
<li>&lt;TD&gt;&lt;/TD&gt;</li>
<li>&lt;TD Width = 150 ALIGN=LEFT&gt;</li>
<li>&lt;FONT SIZE=+1&gt;</li>
<li>&lt;%= RS(&quot;au_lname&quot;) %&gt;</li>
<li>&lt;/FONT&gt;&lt;/TD&gt;</li>
<li>&lt;TD Width = 150 ALIGN=LEFT&gt;</li>
<li>&lt;FONT SIZE=+1&gt;</li>
<li>&lt;%= RS(&quot;au_fname&quot;) %&gt;</li>
<li>&lt;/FONT&gt;&lt;/TD&gt;</li>
<li>&lt;TD Width = 150 ALIGN=LEFT&gt;</li>
<li>&lt;FONT SIZE=+1&gt;</li>
<li>&lt;%= RS(&quot;phone&quot;) %&gt;</li>
<li>&lt;/FONT&gt;&lt;/TD&gt;</li>
<li>&lt;/TR&gt;</li>
<li>&lt;%</li>
<li>RS.MoveNext</li>
<li>Loop</li>
<li>%&gt;</li>
<li>&lt;/table&gt;</li>
<li>&lt;hr&gt;</li>
<li>&lt;p&gt;</li>
<li>&lt;/BODY&gt;</li>
<li>&lt;% OBJdbConnection.Close</li>
<li>Set OBJdbConnection = Nothing</li>
<li>%&gt;</li>
<li>&lt;/HTML&gt;</li></ol></div>
<p>适用于:<br />
• Microsoft SQL Server 2000 标准版<br />
• Microsoft SQL Server 7.0 标准版<br />
• Microsoft SQL Server 6.5 标准版<br />
• Microsoft SQL Server 6.0 标准版<br />
• Microsoft SQL Server 4.21a 标准版<br />
• Microsoft Internet Information Server 4.0<br />
• Microsoft Internet Information Server 3.0<br />
• Microsoft Internet Information Services 5.0<br />
• Microsoft SQL Server 2005 Standard Edition<br />
• Microsoft SQL Server 2005 Express Edition<br />
• Microsoft SQL Server 2005 Developer Edition<br />
• Microsoft SQL 2005 Server Enterprise<br />
• Microsoft SQL 2005 Server Workgroup </p>
]]></content:encoded>
			<wfw:commentRss>http://ahlang.com/2006/10/27/asp-mssql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[转]css模拟title和alt的提示效果</title>
		<link>http://ahlang.com/2006/10/26/css-title-alt/</link>
		<comments>http://ahlang.com/2006/10/26/css-title-alt/#comments</comments>
		<pubDate>Fri, 27 Oct 2006 01:18:00 +0000</pubDate>
		<dc:creator>Ahlang</dc:creator>
				<category><![CDATA[Website]]></category>

		<guid isPermaLink="false">http://hs.swl.cn/?p=33</guid>
		<description><![CDATA[&#60;style type=&#34;text/CSS&#34;&#62; div#nifty{margin:0;background:#9BD1FA;font-size:12px;} p {padding:... ]]></description>
			<content:encoded><![CDATA[<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">&lt;style type=&quot;text/CSS&quot;&gt;</li>
<li>div#nifty{margin:0;background:#9BD1FA;font-size:12px;}</li>
<li>p {padding:0 5px;margin:0;}</li>
<li>div.rtop {display:block;background:#fff}</li>
<li>div.rtop div {display:block;height:1px;overflow:hidden;background:#9BD1FA}</li>
<li>div.r1{margin:0 3px}</li>
<li>div.r2{margin:0 2px}</li>
<li>div.r3{margin:0 1px}</li>
<li>div.rtop div.r4 {margin:0 1px;height:1px}</li>
<li>&lt;/style&gt;</li>
<li>&lt;div id=&quot;nifty&quot;&gt;</li>
<li>&lt;div class=&quot;rtop&quot;&gt;</li>
<li>&lt;div class=&quot;r1&quot;&gt;&lt;/div&gt;</li>
<li>&lt;div class=&quot;r2&quot;&gt;&lt;/div&gt;</li>
<li>&lt;div class=&quot;r3&quot;&gt;&lt;/div&gt;</li>
<li>&lt;div class=&quot;r4&quot;&gt;&lt;/div&gt;</li>
<li>&lt;/div&gt;</li>
<li>&lt;p&gt;div + CSS 圆角矩形--From &lt;a href=&quot;http://www.achome.cn&quot;&gt;www.achome.cn&lt;/a&gt;&lt;/p&gt;</li>
<li>&lt;div class=&quot;rtop&quot;&gt;</li>
<li>&lt;div class=&quot;r4&quot;&gt;&lt;/div&gt;</li>
<li>&lt;div class=&quot;r3&quot;&gt;&lt;/div&gt;</li>
<li>&lt;div class=&quot;r2&quot;&gt;&lt;/div&gt;</li>
<li>&lt;div class=&quot;r1&quot;&gt;&lt;/div&gt;</li>
<li>&lt;/div&gt;</li>
<li>&lt;/div&gt;</li></ol></div>
]]></content:encoded>
			<wfw:commentRss>http://ahlang.com/2006/10/26/css-title-alt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>正确截取中文字符长度的len及left函数</title>
		<link>http://ahlang.com/2006/10/13/function-len-left/</link>
		<comments>http://ahlang.com/2006/10/13/function-len-left/#comments</comments>
		<pubDate>Sat, 14 Oct 2006 05:00:00 +0000</pubDate>
		<dc:creator>Ahlang</dc:creator>
				<category><![CDATA[Website]]></category>

		<guid isPermaLink="false">http://hs.swl.cn/?p=37</guid>
		<description><![CDATA[vbs中自带的len及left函数无法对中文字符长度进行正确的截取，可使用下2函数替代。 &#60;% Function Strleft(Str,L) Temp_Str=Len(Str... ]]></description>
			<content:encoded><![CDATA[<p>vbs中自带的len及left函数无法对中文字符长度进行正确的截取，可使用下2函数替代。</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">&lt;%</li>
<li>Function Strleft(Str,L)</li>
<li>Temp_Str=Len(Str)</li>
<li>For I=1 To Temp_Str</li>
<li>Test_Str=(Mid(Str,I,1))</li>
<li>Strleft=Strleft&amp;Test_Str</li>
<li>If Asc(Test_Str)&gt;0 Then</li>
<li>lens=lens+1</li>
<li>Else</li>
<li>lens=lens+2</li>
<li>End If</li>
<li>If lens&gt;=L Then Exit For</li>
<li>Next</li>
<li>End Function</li>
<li>&nbsp;</li>
<li>function strLength(str)</li>
<li>ON ERROR RESUME NEXT</li>
<li>dim WINNT_CHINESE</li>
<li>WINNT_CHINESE = (len(&quot;中国&quot;)=2)</li>
<li>if WINNT_CHINESE then</li>
<li>dim l,t,c</li>
<li>dim i</li>
<li>l=len(str)</li>
<li>t=l</li>
<li>for i=1 to l</li>
<li>c=asc(mid(str,i,1))</li>
<li>if c&lt;0 then c=c+65536</li>
<li>if c&gt;255 then</li>
<li>t=t+1</li>
<li>end if</li>
<li>next</li>
<li>strLength=t</li>
<li>else</li>
<li>strLength=len(str)</li>
<li>end if</li>
<li>if err.number&lt;&gt;0 then err.clear</li>
<li>end function</li>
<li>%&gt;</li></ol></div>
]]></content:encoded>
			<wfw:commentRss>http://ahlang.com/2006/10/13/function-len-left/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>禁止页面操作</title>
		<link>http://ahlang.com/2006/09/28/disable/</link>
		<comments>http://ahlang.com/2006/09/28/disable/#comments</comments>
		<pubDate>Thu, 28 Sep 2006 18:36:00 +0000</pubDate>
		<dc:creator>Ahlang</dc:creator>
				<category><![CDATA[Website]]></category>

		<guid isPermaLink="false">http://hs.swl.cn/?p=41</guid>
		<description><![CDATA[如何禁止打印页面 解决思路： 要真正禁止打印页面是办不到的，但是如果能设置让用户打印到的是空白，也算是实现禁止打印的目的了。 具体步骤： 代码示例... ]]></description>
			<content:encoded><![CDATA[<p><strong>如何禁止打印页面</strong></p>
<p>解决思路：</p>
<blockquote><p>要真正禁止打印页面是办不到的，但是如果能设置让用户打印到的是空白，也算是实现禁止打印的目的了。<br />
具体步骤：<br />
代码示例： </p></blockquote>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">&lt;html&gt; </li>
<li>&lt;head&gt;&lt;title&gt;不可打印的页面&lt;/title&gt; </li>
<li>&lt;style&gt; </li>
<li>@media print{ </li>
<li>body{display:none} </li>
<li>} </li>
<li>&lt;/style&gt; </li>
<li>&lt;/head&gt; </li>
<li>&lt;body&gt; </li>
<li>文档主要内容 </li>
<li>&lt;/body&gt; </li>
<li>&lt;/head&gt;</li></ol></div>
<p>注意：@media print{}规则中所定义的CSS仅对打印时的页面生效。<br />
技巧：在很多论坛中在打印帖子时都是用一个专门的页面来实现，如果能熟练运用@media print{}规则，就不用单独做一个打印用的页了。<br />
提示：<br />
@media print{}规则中可以用来代码print的还有all和screen。<br />
类似@media的规则如表2.2.1所示。</p>
<p>规则说明<br />
@import指定导入的外部样式表及目标媒体。该规则必须在样式表头部最先声明<br />
@charset在外部样式表文件内使用。指定该样式表使用的字符集。<br />
@font-face设置嵌入HTML文档的OpenType字体(需IE5+支持)<br />
@media指定样式表规则用于指定的媒体类型(需IE5.5+支持)</p>
<p>特别提示<br />
运行本例代码，然后打印网页，打印结果将不包括”文档主要内容”。</p>
<p>特别说明</p>
<p>本例主要运用了@media规则来定义页面对于打印时应用的样式，print意思是所定义的CSS应用于打印机，类似的print媒体类型还有：<br />
all 应用于所有类型的设备<br />
screen 应用于计算机的显示器</p>
<p><strong>禁止选取，禁止右键，禁止拷贝</strong></p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">&lt;BODY onselectstart=&quot;return false&quot; oncopy=&quot;return false;&quot; oncut=&quot;return false;&quot; oncontextmenu=&quot;window.event.returnValue=false&quot; &gt;</li></ol></div>
<p>1.oncontextmenu=”window.event.returnValue=false” 将彻底屏蔽鼠标右键<br />
2.onselectstart=”return false” 取消选取、防止复制<br />
3.onpaste=”return false” 不准粘贴<br />
4.oncopy=”return false;” oncut=”return false;” 防止复制</p>
<p><strong>禁止Ctrl+P</strong></p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">&lt;!--</li>
<li>function fKey(){</li>
<li>var keycode = event.keyCode;</li>
<li>if(event.ctrlKey &amp;&amp; keycode == 80){</li>
<li>alert(&quot;此功能已禁止.&quot;);</li>
<li>return false;</li>
<li>}</li>
<li>}</li>
<li>//--&gt;</li>
<li>&lt;/script&gt;</li></ol></div>
<p>body中添加 onkeydown=”return fKey();” </p>
]]></content:encoded>
			<wfw:commentRss>http://ahlang.com/2006/09/28/disable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>access的demo及w2k的form</title>
		<link>http://ahlang.com/2006/09/28/access-demo-w2k-form/</link>
		<comments>http://ahlang.com/2006/09/28/access-demo-w2k-form/#comments</comments>
		<pubDate>Thu, 28 Sep 2006 18:33:00 +0000</pubDate>
		<dc:creator>Ahlang</dc:creator>
				<category><![CDATA[Website]]></category>

		<guid isPermaLink="false">http://hs.swl.cn/?p=42</guid>
		<description><![CDATA[access的demo字段限值65k,windows 2k的form每个域的大小限制为100k…………解决&#34; 超大文本提交的处理&#34;的方法65k的限制的话，只能换mssql了…………PRB: Error \&#34;Reques... ]]></description>
			<content:encoded><![CDATA[<p>access的demo字段限值65k,windows 2k的form每个域的大小限制为100k…………<br/><br/>解决&#34; 超大文本提交的处理&#34;的方法<br/><br/>65k的限制的话，只能换mssql了…………<br/><br/>PRB: Error \&#34;Request Object, ASP 0107 (0&#215;80004005)\&#34; When You Post a Form<br/><br/>The information in this article applies to:<br/><br/>Microsoft Active Server Pages<br/><br/>This article was previously published under Q273482 <br/><br/>SYMPTOMS<br/><br/>When you post a large form field, you may receive the following error message: <br/><br/>Error Type:<br/><br/>Request object, ASP 0107 (0&#215;80004005)<br/><br/>The data being processed is over the allowed limit.<br/><br/>In Microsoft Internet Information Server (IIS) 4.0, you may receive the following error message: <br/><br/>Request object error \&#39;ASP 0107 : 80004005\&#39;<br/><br/>Stack Overflow<br/><br/>/projectname/page.asp, line XX<br/><br/>The data being processed is over the allowed limit. <br/><br/>CAUSE<br/><br/>The size limit of each form field that is retrieved in the Request object is 102,399 bytes. The error occurs when you exceed this limit. <br/><br/>RESOLUTION<br/><br/>To resolve this problem, use one of the following methods: <br/><br/>Instead of reading form variable values with the Request.Form collection, use Request.BinaryRead (Request.TotalBytes), and parse the form values from the output of Request.BinaryRead.<br/><br/>Use a File Upload scheme, such as Microsoft Posting Acceptor.<br/><br/>Break the HTML form variables into multiple form variables before you submit the form. The 102,399 byte limit is for each form variable, so you can have multiple form variables of 102,399 characters o&#114; less. The following sample code illustrates this: WARNING: ANY USE BY YOU OF THE CODE PROVIDED IN THIS ARTICLE IS AT YOUR OWN RISK. Microsoft provides this code \&#34;as is\&#34; without warranty of any kind, either express o&#114; implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose. <br/><br/>
<div class="UBBPanel">
<div class="UBBTitle"><img src="/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div>
<div class="UBBContent"><br/>&lt;FORM method=post action=LargePost.asp name=theForm onsubmit=\&#34;BreakItUp()\&#34;&gt;<br/><br/>&lt;Textarea rows=3 cols=100 name=BigTextArea&gt;A bunch of text&#8230;&lt;/Textarea&gt;<br/><br/>&lt;input type=submit value=go&gt;<br/><br/>&lt;/form&gt;<br/><br/><br/><br/>&lt;SCRIPT Language=JavaScript&gt;<br/><br/>function BreakItUp()<br/><br/>{<br/><br/>  //Set the limit for field size.<br/><br/>  var FormLimit = 102399<br/><br/><br/><br/>  //Get the value of the large input object.<br/><br/>  var TempVar = new String<br/><br/>  TempVar = document.theForm.BigTextArea.value<br/><br/><br/><br/>  //If the length of the object is greater than the limit, break it<br/><br/>  //into multiple objects.<br/><br/>  if (TempVar.length &gt; FormLimit)<br/><br/>  {<br/><br/>    document.theForm.BigTextArea.value = TempVar.substr(0, FormLimit)<br/><br/>    TempVar = TempVar.substr(FormLimit)<br/><br/><br/><br/>    while (TempVar.length &gt; 0)<br/><br/>    {<br/><br/>      var objTEXTAREA = document.cr&#101;ateElement(\&#34;TEXTAREA\&#34;)<br/><br/>      objTEXTAREA.name = \&#34;BigTextArea\&#34;<br/><br/>      objTEXTAREA.value = TempVar.substr(0, FormLimit)<br/><br/>      document.theForm.appendChild(objTEXTAREA)<br/><br/>      <br/><br/>      TempVar = TempVar.substr(FormLimit)<br/><br/>    }<br/><br/>  }<br/><br/>}<br/><br/>&lt;/SCRIPT&gt;<br/><br/>                                                <br/><br/>The receiving Active Server Page (ASP) page reconstructs the variable: <br/><br/>&lt;%<br/><br/>Dim BigTextArea<br/><br/><br/><br/>For I = 1 To Request.Form(\&#34;BigTextArea\&#34;).Count <br/><br/>  BigTextArea = BigTextArea &amp; Request.Form(\&#34;BigTextArea\&#34;)(I)<br/><br/>Next<br/><br/>%&gt;<br/></div>
</div>
<p>&#8212;&#8211;</p>
]]></content:encoded>
			<wfw:commentRss>http://ahlang.com/2006/09/28/access-demo-w2k-form/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>用CSS实现圆角</title>
		<link>http://ahlang.com/2006/09/27/css-round-corners/</link>
		<comments>http://ahlang.com/2006/09/27/css-round-corners/#comments</comments>
		<pubDate>Wed, 27 Sep 2006 19:34:00 +0000</pubDate>
		<dc:creator>Ahlang</dc:creator>
				<category><![CDATA[Website]]></category>

		<guid isPermaLink="false">http://hs.swl.cn/?p=45</guid>
		<description><![CDATA[&#60;style type=&#34;text/CSS&#34;&#62; div#nifty{margin:0;background:#9BD1FA;font-size:12px;} p {padding:... ]]></description>
			<content:encoded><![CDATA[<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">&lt;style type=&quot;text/CSS&quot;&gt;</li>
<li>div#nifty{margin:0;background:#9BD1FA;font-size:12px;}</li>
<li>p {padding:0 5px;margin:0;}</li>
<li>div.rtop {display:block;background:#fff}</li>
<li>div.rtop div {display:block;height:1px;overflow:hidden;background:#9BD1FA}</li>
<li>div.r1{margin:0 3px}</li>
<li>div.r2{margin:0 2px}</li>
<li>div.r3{margin:0 1px}</li>
<li>div.rtop div.r4 {margin:0 1px;height:1px}</li>
<li>&lt;/style&gt;</li>
<li>&lt;div id=&quot;nifty&quot;&gt;</li>
<li>&lt;div class=&quot;rtop&quot;&gt;</li>
<li>&lt;div class=&quot;r1&quot;&gt;&lt;/div&gt;</li>
<li>&lt;div class=&quot;r2&quot;&gt;&lt;/div&gt;</li>
<li>&lt;div class=&quot;r3&quot;&gt;&lt;/div&gt;</li>
<li>&lt;div class=&quot;r4&quot;&gt;&lt;/div&gt;</li>
<li>&lt;/div&gt;</li>
<li>&lt;p&gt;div + CSS 圆角矩形--From &lt;a href=&quot;http://www.achome.cn&quot;&gt;www.achome.cn&lt;/a&gt;&lt;/p&gt;</li>
<li>&lt;div class=&quot;rtop&quot;&gt;</li>
<li>&lt;div class=&quot;r4&quot;&gt;&lt;/div&gt;</li>
<li>&lt;div class=&quot;r3&quot;&gt;&lt;/div&gt;</li>
<li>&lt;div class=&quot;r2&quot;&gt;&lt;/div&gt;</li>
<li>&lt;div class=&quot;r1&quot;&gt;&lt;/div&gt;</li>
<li>&lt;/div&gt;</li>
<li>&lt;/div&gt;</li></ol></div>
]]></content:encoded>
			<wfw:commentRss>http://ahlang.com/2006/09/27/css-round-corners/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

