<?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>雨豪博客 &#187; 网页设计</title>
	<atom:link href="http://www.wx35.cn/catalog/%e7%bd%91%e9%a1%b5%e8%ae%be%e8%ae%a1/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wx35.cn</link>
	<description>以互联网与电脑科技为主的独立博客</description>
	<lastBuildDate>Sun, 29 Jan 2012 13:11:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Zblog静态日志调用热文排行</title>
		<link>http://www.wx35.cn/archives/454/</link>
		<comments>http://www.wx35.cn/archives/454/#comments</comments>
		<pubDate>Sun, 23 Sep 2007 18:55:57 +0000</pubDate>
		<dc:creator>雨豪</dc:creator>
				<category><![CDATA[网页设计]]></category>

		<guid isPermaLink="false">http://www.wx35.com/blog/archives/454</guid>
		<description><![CDATA[月光博客曾经写过一篇ZBLOG调用热文排行的帖子，然而此代码只能适用于固定目录，如果是使用静态日志就无法使用，具体为体现为URL调用出错，无奈之下我重写了热文代码，下面请看具体修改... ]]></description>
			<content:encoded><![CDATA[<p>  月光博客曾经写过一篇<a href="http://www.williamlong.info/archives/521.html">ZBLOG调用热文排行</a>的帖子，然而此代码只能适用于固定目录，如果是使用静态日志就无法使用，具体为体现为URL调用出错，无奈之下我重写了热文代码，下面请看具体修改。<span id="more-454"></span></p>
<p>修改function目录下c_system_event.asp文件，在最后添加如下代码：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #0000ff;">'*********************************************************
'</span> 目的： 重建排行
<span style="color: #0000ff;">'*********************************************************
Function BlogReBuild_Toplist()
&nbsp;
Dim i
Dim objRS
Dim objStream
Dim objArticle
&nbsp;
Dim strPrevious
Set objRS=objConn.Execute(&quot;SELECT [log_ID],[log_Url],[log_Title] FROM [blog_Article] WHERE [log_Level]&gt;1 ORDER BY log_CommNums*100 + log_TrackBackNums*200 + sqr(log_ViewNums)*10 - (date()-Log_PostTime)*(date()-Log_PostTime) DESC&quot;)
&nbsp;
If (Not objRS.bof) And (Not objRS.eof) Then
For i=1 to ZC_PREVIOUS_COUNT
Set objArticle=New TArticle
If objArticle.LoadInfoByID(objRS(&quot;log_ID&quot;)) Then
strPrevious=strPrevious &amp; &quot;&lt;li&gt;&lt;a href=&quot;&quot;&quot;&amp; objArticle.Url &amp; &quot;&quot;&quot;&gt;&quot; &amp; objArticle.Title &amp; &quot;&lt;/a&gt;&lt;/li&gt;&quot;
End If
Set objArticle=Nothing
objRS.MoveNext
If objRS.eof Then Exit For
Next
End If
objRS.close
&nbsp;
strPrevious=TransferHTML(strPrevious,&quot;[no-asp]&quot;)
&nbsp;
Call SaveToFile(BlogPath &amp; &quot;/include/toplist.asp&quot;,strPrevious,&quot;utf-8&quot;,True)
&nbsp;
BlogReBuild_Toplist=True
&nbsp;
End Function
'</span><span style="color: #339933;">*********************************************************</span></pre></td></tr></table></div>

<p>再次修改c_system_event.asp文件，找到MakeBlogReBuild函数的BlogReBuild_Categorys后面加上一行BlogReBuild_Toplist</p>
<p>将代码加入模板：</p>
<p>修改TEMPLATE\default.html与TEMPLATE\single.html模板，在适当位置加入以下语句：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;function&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;divTopList&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>热文排行<span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>ul<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span><span style="color: #666666; font-style: italic;">#CACHE_INCLUDE_TOPLIST#&gt;
</span><span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>这样热文排行就可以使用了。具体效果见<a href="http://blog.xuguoping.net/">徐果萍博客</a>。</p>
<p><a href="http://www.wx35.cn/upload/200709231508473733.rar">此为修改好的c_system_event.asp文件</a>  只适用ZBLOG 1.7 版</p>
<p>本文章由<a href="http://www.wx35.cn" target="_blank">雨豪博客</a>撰写,采用<a href="http://creativecommons.org/licenses/by/2.5/cn/" target="_blank">CC授权分享</a>,转载时请注明<a href="http://www.wx35.cn/archives/454/" target="_blank">原文链接</a>。
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wx35.cn/archives/454/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Zblog调用分类目录显示的解决方法</title>
		<link>http://www.wx35.cn/archives/392/</link>
		<comments>http://www.wx35.cn/archives/392/#comments</comments>
		<pubDate>Wed, 25 Jul 2007 06:01:36 +0000</pubDate>
		<dc:creator>雨豪</dc:creator>
				<category><![CDATA[网页设计]]></category>

		<guid isPermaLink="false">http://www.wx35.com/blog/archives/392</guid>
		<description><![CDATA[博客改版了，不过也存在很多问题，比较ZBLOG文章首页调用这个问题，我也是翻阅了很多资料，花了整整一个晚上才搞好，现在将全部资料写出来，以帮助需要的朋友们。 首先修改FUNCTION目录下... ]]></description>
			<content:encoded><![CDATA[<p>  博客改版了，不过也存在很多问题，比较ZBLOG文章首页调用这个问题，我也是翻阅了很多资料，花了整整一个晚上才搞好，现在将全部资料写出来，以帮助需要的朋友们。</p>
<p>首先修改FUNCTION目录下c_system_event.asp文件，找到 &#8216;BlogReBuild_Categorys 去掉前面注释(即去掉单引号)，修改完毕后 索引重建，然后用JavaScript调用，具体代码如下：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;script language</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;JavaScript&quot;</span> charset<span style="color: #339933;">=</span><span style="color: #0000ff;">'utf-8'</span> src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.wx35.cn/function/c_html_js.asp?include=category_11&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>其中category_11是分类目录名，修改成你网站的目录ID即可。</p>
<p>还有个问题就是，调用代码后标题前面会有个小圆圈,可以使用 list-style:none  控制一下就没了，Zblog目录调用这样就完成了，详细可以参阅徐果萍首页。</p>
<p><a href="http://www.xuguoping.net">http://www.xuguoping.net</a></p>
<p>本文章由<a href="http://www.wx35.cn" target="_blank">雨豪博客</a>撰写,采用<a href="http://creativecommons.org/licenses/by/2.5/cn/" target="_blank">CC授权分享</a>,转载时请注明<a href="http://www.wx35.cn/archives/392/" target="_blank">原文链接</a>。
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wx35.cn/archives/392/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>[原创]打造个性的站点 zblog站内搜索插件</title>
		<link>http://www.wx35.cn/archives/347/</link>
		<comments>http://www.wx35.cn/archives/347/#comments</comments>
		<pubDate>Sat, 07 Jul 2007 01:10:30 +0000</pubDate>
		<dc:creator>雨豪</dc:creator>
				<category><![CDATA[网页设计]]></category>

		<guid isPermaLink="false">http://www.wx35.com/blog/archives/347</guid>
		<description><![CDATA[1、在自己的网站上新建一个用于显示搜索结果的网页，动态或者静态页面都可以。 2、登录到Google adsense设置adsense，在“产品”那里选择“AdSense for search”。 3、先设置好必要的选项，然后在“... ]]></description>
			<content:encoded><![CDATA[<p>1、在自己的网站上新建一个用于显示搜索结果的网页，动态或者静态页面都可以。<br />
2、登录到Google  adsense设置adsense，在“产品”那里选择“AdSense for  search”。<br />
3、先设置好必要的选项，然后在“更多选项”那一栏，选中“在我的网站上打开搜索结果”并在下面的文本框中输入显示搜索结果的网址，即第一步创建的用于显示搜索结果的网页的URL。<br />
4、在“获取搜索代码”那一栏，将“您的搜索框代码”文本框中生成的代码复制并粘贴到用于显示搜索框的网页的源代码中。<br />
5、将“您的搜索结果代码”文本框中生成的代码复制并粘贴到至用于显示搜索结果的网页的源代码中。</p>
<p>上面是准备工作了，现在正式开始，首先修改search.asp文件，将代码改为如下，其中wx35.cn为你的域名</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">strQuestion<span style="color: #339933;">=</span>TransferHTML<span style="color: #009900;">&#40;</span>Request<span style="color: #339933;">.</span>QueryString<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;domains=wx35.cn&amp;q&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;[nohtml]&quot;</span><span style="color: #009900;">&#41;</span></pre></td></tr></table></div>

<p>接着修改TEMPLATE目录下search.html文件，插入AdSense  for search申请的代码，位置随意，搜索代码和结果代码都要插入，以下是我的示范文件。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;!--</span> SiteSearch Google <span style="color: #339933;">--&gt;</span>
<span style="color: #339933;">&lt;</span>form method<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;get&quot;</span> action<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.wx35.cn/search.asp&quot;</span> target<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;_top&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>table border<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;0&quot;</span> bgcolor<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#F7EFE7&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>tr<span style="color: #339933;">&gt;&lt;</span>td nowrap<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;nowrap&quot;</span> valign<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;top&quot;</span> align<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;left&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;32&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.google.com/&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.google.com/logos/Logo_25wht.gif&quot;</span> border<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;0&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Google&quot;</span> align<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;middle&quot;</span><span style="color: #339933;">&gt;&lt;/</span>img<span style="color: #339933;">&gt;&lt;/</span>a<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>td<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>td nowrap<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;nowrap&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hidden&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;domains&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;wx35.cn&quot;</span><span style="color: #339933;">&gt;&lt;/</span>input<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;sbi&quot;</span> style<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;display: none&quot;</span><span style="color: #339933;">&gt;</span>输入您的搜索字词<span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;q&quot;</span> size<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;31&quot;</span> maxlength<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;255&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;sbi&quot;</span><span style="color: #339933;">&gt;&lt;/</span>input<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;sbb&quot;</span> style<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;display: none&quot;</span><span style="color: #339933;">&gt;</span>提交搜索表单<span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;submit&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;sa&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;搜索&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;sbb&quot;</span><span style="color: #339933;">&gt;&lt;/</span>input<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>td<span style="color: #339933;">&gt;&lt;/</span>tr<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>tr<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>td<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;/</span>td<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>td nowrap<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;nowrap&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>table<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>tr<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>td<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;radio&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;sitesearch&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;ss0&quot;</span><span style="color: #339933;">&gt;&lt;/</span>input<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;ss0&quot;</span> title<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;搜索网络&quot;</span><span style="color: #339933;">&gt;&lt;</span>font size<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;-1&quot;</span> color<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#000000&quot;</span><span style="color: #339933;">&gt;</span>Web<span style="color: #339933;">&lt;/</span>font<span style="color: #339933;">&gt;&lt;/</span>label<span style="color: #339933;">&gt;&lt;/</span>td<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>td<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;radio&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;sitesearch&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;wx35.cn&quot;</span> checked id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;ss1&quot;</span><span style="color: #339933;">&gt;&lt;/</span>input<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;ss1&quot;</span> title<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;搜索 wx35.cn&quot;</span><span style="color: #339933;">&gt;&lt;</span>font size<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;-1&quot;</span> color<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#000000&quot;</span><span style="color: #339933;">&gt;</span>wx35<span style="color: #339933;">.</span>cn<span style="color: #339933;">&lt;/</span>font<span style="color: #339933;">&gt;&lt;/</span>label<span style="color: #339933;">&gt;&lt;/</span>td<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>tr<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>table<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hidden&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;client&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pub-6811388601514482&quot;</span><span style="color: #339933;">&gt;&lt;/</span>input<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hidden&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;forid&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;1&quot;</span><span style="color: #339933;">&gt;&lt;/</span>input<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hidden&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;ie&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;UTF-8&quot;</span><span style="color: #339933;">&gt;&lt;/</span>input<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hidden&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;oe&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;UTF-8&quot;</span><span style="color: #339933;">&gt;&lt;/</span>input<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hidden&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;cof&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;GALT:#008000;GL:1;DIV:#F7EFE7;VLC:663399;AH:center;BGC:F7EFE7;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:11&quot;</span><span style="color: #339933;">&gt;&lt;/</span>input<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hidden&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hl&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;zh_CN&quot;</span><span style="color: #339933;">&gt;&lt;/</span>input<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>td<span style="color: #339933;">&gt;&lt;/</span>tr<span style="color: #339933;">&gt;&lt;/</span>table<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>form<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;!--</span> SiteSearch Google <span style="color: #339933;">--&gt;</span></pre></td></tr></table></div>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">                <span style="color: #339933;">&lt;!--</span> Google Search Result Snippet Begins <span style="color: #339933;">--&gt;</span>
<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;googleSearchUnitIframe&quot;</span><span style="color: #339933;">&gt;&lt;/</span>div<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
   <span style="color: #000000; font-weight: bold;">var</span> googleSearchIframeName <span style="color: #339933;">=</span> <span style="color: #0000ff;">'googleSearchUnitIframe'</span><span style="color: #339933;">;</span>
   <span style="color: #000000; font-weight: bold;">var</span> googleSearchFrameWidth <span style="color: #339933;">=</span> <span style="color: #cc66cc;">750</span><span style="color: #339933;">;</span>
   <span style="color: #000000; font-weight: bold;">var</span> googleSearchFrameborder <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span> <span style="color: #339933;">;</span>
   <span style="color: #000000; font-weight: bold;">var</span> googleSearchDomain <span style="color: #339933;">=</span> <span style="color: #0000ff;">'www.google.cn'</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span>
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/javascript&quot;</span>
         src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.google.com/afsonline/show_afs_search.js&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span>
<span style="color: #339933;">&lt;!--</span> Google Search Result Snippet Ends <span style="color: #339933;">--&gt;</span></pre></td></tr></table></div>

<p>最后在TEMPLATE目录下找到这些文件catalog.html,default.html,single.html,tags.html  ，将其中的</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>form method<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;post&quot;</span> action<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;#ZC_BLOG_HOST#&gt;cmd.asp?act=Search&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;edtSearch&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;edtSearch&quot;</span> size<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;12&quot;</span> <span style="color: #339933;">/&gt;</span>
<span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;submit&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;#ZC_MSG087#&gt;&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;btnPost&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;btnPost&quot;</span> <span style="color: #339933;">/&gt;</span>
<span style="color: #339933;">&lt;/</span>form<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>修改为</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>form method<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;get&quot;</span> action<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.wx35.cn/search.asp&quot;</span> target<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;_top&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hidden&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;domains&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;wx35.cn&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;q&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;sbi&quot;</span> maxlength<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;255&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&quot;</span> size<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;12&quot;</span> <span style="color: #339933;">/&gt;</span>
<span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;submit&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;搜索&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;sa&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;sbb&quot;</span> <span style="color: #339933;">/&gt;</span>
<span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hidden&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;sitesearch&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;wx35.cn&quot;</span> checked id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;ss1&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hidden&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;client&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pub-6811388601514482&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hidden&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;forid&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;1&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hidden&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;ie&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;UTF-8&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hidden&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;oe&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;UTF-8&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hidden&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;cof&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;GALT:#008000;GL:1;DIV:#F7EFE7;VLC:663399;AH:center;BGC:F7EFE7;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:11&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hidden&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hl&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;zh_CN&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>form<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>http://www.wx35.cn/search.asp       是搜索页，修改为你自己的<br />
wx35.cn                                               是搜索域名，修改为你自己的<br />
pub-6811388601514482                        是你的google分配号，修改为你自己的</p>
<p>到这里站内搜索就完成了，鉴于有些朋友修改过源码，实际代码可能与本文不符合，请自行检查代码区域。</p>
<p>本文章由<a href="http://www.wx35.cn" target="_blank">雨豪博客</a>撰写,采用<a href="http://creativecommons.org/licenses/by/2.5/cn/" target="_blank">CC授权分享</a>,转载时请注明<a href="http://www.wx35.cn/archives/347/" target="_blank">原文链接</a>。
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wx35.cn/archives/347/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>[原创]在zblog插入google maps地图 兼容任何博客</title>
		<link>http://www.wx35.cn/archives/346/</link>
		<comments>http://www.wx35.cn/archives/346/#comments</comments>
		<pubDate>Sat, 07 Jul 2007 00:18:56 +0000</pubDate>
		<dc:creator>雨豪</dc:creator>
				<category><![CDATA[网页设计]]></category>

		<guid isPermaLink="false">http://www.wx35.com/blog/archives/346</guid>
		<description><![CDATA[先把googlemaps.js放在script目录下，再修改模板页single.html,插入一段JS代码，如下： 1 &#60;script src=&#34;&#60;#ZC_BLOG_HOST#&#62;script/googlemaps.js&#34; type=&#34;text/javascript&#34;&#62;&#60;/script&#62; 再用管理员帐号... ]]></description>
			<content:encoded><![CDATA[<p>先把googlemaps.js放在script目录下，再修改模板页single.html,插入一段JS代码，如下：<span id="more-346"></span></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;#ZC_BLOG_HOST#&gt;script/googlemaps.js&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>再用管理员帐号登陆后台管理，进入 网站设置 &#8211;UBB设置及相关转换&#8211;自动替换回车符为换行标签(默认启用,除非全用HTML排版可设为False) &#8211;设置为 False</p>
<p>插入google maps直接使用UBB编辑插入源码，如下：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAA_W0tUzIq_fXaNJc8PRFwNhQTv-rer0TjA4s446H0qY1yHGNh8BTYqrqdSrPKZEKXNrYZT2h1W1MMjA&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span>
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
        <span style="color: #666666; font-style: italic;">//&lt;![CDATA[</span>
&nbsp;
        MapPluginInit<span style="color: #009900;">&#40;</span>
                <span style="color: #666666; font-style: italic;">/* Default maps width  */</span>          <span style="color: #cc66cc;">510</span><span style="color: #339933;">,</span>
                <span style="color: #666666; font-style: italic;">/* Default maps height */</span>          <span style="color: #cc66cc;">510</span><span style="color: #339933;">,</span>
                <span style="color: #666666; font-style: italic;">/* Use rel instad of title? */</span>     <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #666666; font-style: italic;">//]]&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span>
<span style="color: #339933;">&lt;</span>a title<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;googlemap&quot;</span> href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://maps.google.com/maps?ll=38.7243451948041,-93.5529024038937&amp; z=16&amp;t=k&quot;</span><span style="color: #339933;">&gt;</span>美国怀特曼空军基地<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>替换ABQIAAAA_W0tUzIq_fXaNJc8PRFwNhQTv-rer0TjA4s446H0qY1yHGNh8BTYqrqdSrPKZEKXNrYZT2h1W1MMjA为你申请的google maps api的KEY</p>
<p>替换38.7243451948041,-93.5529024038937为坐标</p>
<p>美国怀特曼空军基地 为提示标注</p>
<p>以上源码来自WordPress for google maps插件，理论上来说应该兼容任何程序，只需支持UBB编辑即可。</p>
<p>本文章由<a href="http://www.wx35.cn" target="_blank">雨豪博客</a>撰写,采用<a href="http://creativecommons.org/licenses/by/2.5/cn/" target="_blank">CC授权分享</a>,转载时请注明<a href="http://www.wx35.cn/archives/346/" target="_blank">原文链接</a>。
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wx35.cn/archives/346/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>JS实现跳转代码：多域名指向同一空间</title>
		<link>http://www.wx35.cn/archives/123/</link>
		<comments>http://www.wx35.cn/archives/123/#comments</comments>
		<pubDate>Wed, 20 Sep 2006 00:46:56 +0000</pubDate>
		<dc:creator>雨豪</dc:creator>
				<category><![CDATA[网页设计]]></category>

		<guid isPermaLink="false">http://wx35.com/blog/?p=123</guid>
		<description><![CDATA[try {if( self.location == "http://域名一/" ) { top.location.href = "http://域名一/目录"; } else if( self.location == "http://域名二/" ) { top.location.href = "http://域名二/目录"; } else if( self.location == "http://域名三/" ) { top.lo... ]]></description>
			<content:encoded><![CDATA[<p><script>try {if( self.location == "http://域名一/" ) { <br/>top.location.href = "http://域名一/目录"; <br/>} <br/>else if( self.location == "http://域名二/" ) { <br/>top.location.href = "http://域名二/目录"; <br/>} <br/>else if( self.location == "http://域名三/" ) { <br/>top.location.href = "http://域名三/目录"; <br/>} <br/>else if( self.location == "http://域名四/" ) { <br/>top.location.href = "http://域名四/目录"; <br/>} <br/>else {document.write ("错误的访问地址")}} catch(e) {}</script></p>
<p>&lt;script&gt;try {if( self.location == &quot;http://域名一/&quot; ) { <br />top.location.href = &quot;http://域名一/目录&quot;; <br />} <br />else if( self.location == &quot;http://域名二/&quot; ) { <br />top.location.href = &quot;http://域名二/目录&quot;; <br />} <br />else if( self.location == &quot;http://域名三/&quot; ) { <br />top.location.href = &quot;http://域名三/目录&quot;; <br />} <br />else if( self.location == &quot;http://域名四/&quot; ) { <br />top.location.href = &quot;http://域名四/目录&quot;; <br />} <br />else {document.write (&quot;错误的访问地址&quot;)}} catch(e) {}&lt;/script&gt;</p>
<p>本文章由<a href="http://www.wx35.cn" target="_blank">雨豪博客</a>撰写,采用<a href="http://creativecommons.org/licenses/by/2.5/cn/" target="_blank">CC授权分享</a>,转载时请注明<a href="http://www.wx35.cn/archives/123/" target="_blank">原文链接</a>。
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wx35.cn/archives/123/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>让广告代码不再影响你的网页加载速度</title>
		<link>http://www.wx35.cn/archives/122/</link>
		<comments>http://www.wx35.cn/archives/122/#comments</comments>
		<pubDate>Wed, 20 Sep 2006 00:30:59 +0000</pubDate>
		<dc:creator>雨豪</dc:creator>
				<category><![CDATA[网页设计]]></category>

		<guid isPermaLink="false">http://wx35.com/blog/?p=122</guid>
		<description><![CDATA[&#160; 做一些联盟广告时，由于联盟广告的加载慢，整体页面的显示速度也会变慢，如果加入下面的代码就可以有效地解决这个问题。 　　第一步：把这段代码放在你要放广告的网页位置： &#60;... ]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p>做一些联盟广告时，由于联盟广告的加载慢，整体页面的显示速度也会变慢，如果加入下面的代码就可以有效地解决这个问题。</p>
<p>　　第一步：把这段代码放在你要放广告的网页位置：</p>
<p>&lt;span id=&quot;myads&quot;&gt;广告载入中&#8230;&lt;/span&gt;</p>
<p>　　第二步：把这段代码放到页底：</p>
<p>&lt;span id=&quot;span_myads&quot;&gt; <br />这里放广告的JS代码或其他加载速度比较慢的内容都可以. <br />&lt;/span&gt; </p>
<p>&lt;script type=&quot;text/javascript&quot;&gt; <br />myads.innerHTML=span_myads.innerHTML; <br />span_myads.innerHTML=&quot;&quot;; <br />&lt;/script&gt; </p>
<p>&nbsp;</p>
<p>本文章由<a href="http://www.wx35.cn" target="_blank">雨豪博客</a>撰写,采用<a href="http://creativecommons.org/licenses/by/2.5/cn/" target="_blank">CC授权分享</a>,转载时请注明<a href="http://www.wx35.cn/archives/122/" target="_blank">原文链接</a>。
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wx35.cn/archives/122/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>多个绑定多域名的PHP代码</title>
		<link>http://www.wx35.cn/archives/117/</link>
		<comments>http://www.wx35.cn/archives/117/#comments</comments>
		<pubDate>Thu, 14 Sep 2006 18:40:18 +0000</pubDate>
		<dc:creator>雨豪</dc:creator>
				<category><![CDATA[网页设计]]></category>

		<guid isPermaLink="false">http://wx35.com/blog/?p=117</guid>
		<description><![CDATA[&#160; 这是一段很有用的代码，和绑定多域名的ASP代码类似，如果你只有一个PHP空间，而你又想放置多个多个站点，下面这些代码可以帮到你。 　　第一个： if($HTTP_HOST==&#34;www.moon-soft.com&#34;){Hea... ]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p>这是一段很有用的代码，和绑定多域名的ASP代码类似，如果你只有一个PHP空间，而你又想放置多个多个站点，下面这些代码可以帮到你。</p>
<p>　　第一个：</p>
<p>if($HTTP_HOST==&quot;www.moon-soft.com&quot;){<br />Header(&quot;Location: moon.htm&quot;);<br />}<br />elseif($HTTP_HOST==&quot;www.williamlong.info&quot;){<br />Header(&quot;Location: williamlong.htm&quot;);<br />}<br />else{<br />Header(&quot;Location: other.htm&quot;);<br />}</p>
<p>第二个：</p>
<p>if($HTTP_HOST==&quot;www.moon-soft.com&quot;){<br />require &quot;moon.htm&quot;;<br />}<br />elseif($HTTP_HOST==&quot;www.williamlong.info&quot;){<br />require &quot;williamlong.htm&quot;;<br />}<br />else{<br />require &quot;other.htm&quot;;<br />} </p>
<p>本文章由<a href="http://www.wx35.cn" target="_blank">雨豪博客</a>撰写,采用<a href="http://creativecommons.org/licenses/by/2.5/cn/" target="_blank">CC授权分享</a>,转载时请注明<a href="http://www.wx35.cn/archives/117/" target="_blank">原文链接</a>。
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wx35.cn/archives/117/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>多个绑定多域名的ASP代码</title>
		<link>http://www.wx35.cn/archives/116/</link>
		<comments>http://www.wx35.cn/archives/116/#comments</comments>
		<pubDate>Thu, 14 Sep 2006 18:38:50 +0000</pubDate>
		<dc:creator>雨豪</dc:creator>
				<category><![CDATA[网页设计]]></category>

		<guid isPermaLink="false">http://wx35.com/blog/?p=116</guid>
		<description><![CDATA[&#160; 如果只有一个ASP空间，而你又想放置多个多个站点，这些代码可以帮到你。 第一个 &#60;%if Request.ServerVariables(&#34;SERVER_NAME&#34;)=&#34;www.williamlong.info&#34; thenresponse.redirect &#34;williamlong/index.htm&#... ]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p>如果只有一个ASP空间，而你又想放置多个多个站点，这些代码可以帮到你。</p>
<p>第一个 <br />&lt;%<br />if Request.ServerVariables(&quot;SERVER_NAME&quot;)=&quot;www.williamlong.info&quot; then<br />response.redirect &quot;williamlong/index.htm&quot;<br />else<br />response.redirect &quot;index2.htm&quot;<br />end if<br />%&gt;</p>
<p>第二个<br />&lt;%<br />select case request.servervariables(&quot;http_host&quot;)<br />case &quot;www.williamlong.info&quot; &#8217;1<br />Server.Transfer(&quot;v3.htm&quot;)<br />case &quot;www.williamlong.info&quot; &#8217;1<br />Server.Transfer(&quot;v3.htm&quot;)<br />case &quot;www.moon-soft.com&quot; &#8217;2<br />Server.Transfer(&quot;i.htm&quot;)<br />case &quot;www.write100.com&quot; &#8217;3<br />Server.Transfer(&quot;write100.htm&quot;)<br />&#8230;&#8230; 继续添加 &#8230;&#8230;<br />end select<br />%&gt;</p>
<p>第三个<br />&lt;%<br />if instr(Request.ServerVariables(&quot;SERVER_NAME&quot;),&quot;www.williamlong.info&quot;)&gt;0 then<br />response.redirect &quot;index.asp&quot;<br />elseif instr(Request.ServerVariables(&quot;SERVER_NAME&quot;),&quot;www.moon-soft.com&quot;)&gt;0 then<br />response.redirect &quot;x/index.asp&quot;<br />elseif instr(Request.ServerVariables(&quot;SERVER_NAME&quot;),&quot;www.write100.com&quot;)&gt;0 then<br />response.redirect &quot;index3.asp&quot;<br />end if<br />%&gt;</p>
<p>第四个<br />&lt;%<br />if Request.ServerVariables(&quot;SERVER_NAME&quot;)=&quot;www.williamlong.info&quot; then<br />response.redirect &quot;index1.asp&quot;<br />elseif Request.ServerVariables(&quot;SERVER_NAME&quot;)=&quot;www.moon-soft.com&quot; then<br />response.redirect &quot;index2.asp&quot;<br />elseif Request.ServerVariables(&quot;SERVER_NAME&quot;)=&quot;www.write100.com&quot; then<br />response.redirect &quot;index3.asp&quot;<br />end if<br />%&gt; </p>
<p>第五个<br />&lt;%<br />if Request.ServerVariables(&quot;SERVER_NAME&quot;)=&quot;www.williamlong.info&quot; then<br />Server.Transfer(&quot;williamlong.htm&quot;)<br />elseif Request.ServerVariables(&quot;SERVER_NAME&quot;)=&quot;www.moon-soft.com&quot; then<br />Server.Transfer(&quot;moon.htm&quot;)<br />elseif Request.ServerVariables(&quot;SERVER_NAME&quot;)=&quot;www.write100.com&quot; then<br />Server.Transfer(&quot;write100.htm&quot;)<br />else<br />Server.Transfer(&quot;other.htm&quot;)<br />end if<br />%&gt; </p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>本文章由<a href="http://www.wx35.cn" target="_blank">雨豪博客</a>撰写,采用<a href="http://creativecommons.org/licenses/by/2.5/cn/" target="_blank">CC授权分享</a>,转载时请注明<a href="http://www.wx35.cn/archives/116/" target="_blank">原文链接</a>。
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wx35.cn/archives/116/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

