<?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; WEB技术</title>
	<atom:link href="http://www.niuhh.com/archives/category/web%e6%8a%80%e6%9c%af/feed" rel="self" type="application/rss+xml" />
	<link>http://www.niuhh.com</link>
	<description>探索发掘IT网络，评论分享WEB精彩!</description>
	<lastBuildDate>Thu, 15 Jul 2010 02:09:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>DZ7.2论坛静态规则的实现（附DZ7.2静态包下载）</title>
		<link>http://www.niuhh.com/archives/162.html</link>
		<comments>http://www.niuhh.com/archives/162.html#comments</comments>
		<pubDate>Fri, 28 May 2010 03:39:39 +0000</pubDate>
		<dc:creator>NiuHH</dc:creator>
				<category><![CDATA[WEB技术]]></category>
		<category><![CDATA[挖掘经验]]></category>
		<category><![CDATA[DZ7.2论坛]]></category>
		<category><![CDATA[静态规则]]></category>

		<guid isPermaLink="false">http://www.niuhh.com/?p=162</guid>
		<description><![CDATA[众所周知，网页静态化的有利于搜索引擎，于是静态化的网站是一种流行的趋势。前段时间本人搞了个论坛，名为室内设计之家。学着搞了个静态规则，感觉还好。在这里与大家分享。discuz7.2论坛静态规则文件是为那些不支持静态化的虚拟空间提供静态化的文件。
DZ7.2静态规则的实现方法：
首先在论坛后台设置里开启静态功能，然后把静态包里的 .htaccess  httpd.ini httpd.parse.errors 上传到安装你论坛程序的目录里即可
DZ7.2静态规则的实现步骤：
第一：.htaccess 文件设置
第二：用记事本打开.htaccess 会发现 （RewriteBase /  ）这代码
如果是论坛放在根目录的话 这里写成 RewriteBase /
如果是放在子目录的话 例如：www.snsjzj.com/BBS
那么 RewriteBase / 这写成 RewriteBase / BBS 就OK啦
说明我也是在DZ 7.2 测试成功的，如有好的方法及建议，希望大家互相交流，互相提高。
DZ7.2论坛静态包文件下载
点击进入下载discuz静态规则文件包
&#187; 转载请注明来源：牛博哄哄 &#187; 《DZ7.2论坛静态规则的实现（附DZ7.2静态包下载）》&#187; 本文链接地址：http://www.niuhh.com/archives/162.html&#187; 订阅本站：http://feed.feedsky.com/niuhh
	标签：DZ7.2论坛, 静态规则

	你可能对以下内容感兴趣
	
	NiuHH.COM祝你更牛!
	

]]></description>
			<content:encoded><![CDATA[<p>众所周知，网页静态化的有利于搜索引擎，于是静态化的网站是一种流行的趋势。前段时间本人搞了个论坛，名为<a href="http://www.snsjzj.com/" target="_blank"><strong>室内设计之家</strong></a>。学着搞了个<span class='wp_keywordlink_affiliate'><a href="http://www.niuhh.com/archives/tag/%e9%9d%99%e6%80%81%e8%a7%84%e5%88%99" title="查看 静态规则 的全部文章" target="_blank">静态规则</a></span>，感觉还好。在这里与大家分享。discuz7.2论坛静态规则文件是为那些不支持静态化的虚拟空间提供静态化的文件。<span id="more-162"></span></p>
<h2>DZ7.2静态规则的实现方法：</h2>
<p>首先在论坛后台设置里开启静态功能，然后把静态包里的 .htaccess  httpd.ini httpd.parse.errors 上传到安装你论坛程序的目录里即可</p>
<h2>DZ7.2静态规则的实现步骤：</h2>
<p>第一：.htaccess 文件设置</p>
<p>第二：用记事本打开.htaccess 会发现 （RewriteBase /  ）这代码<br />
如果是论坛放在根目录的话 这里写成 RewriteBase /</p>
<p>如果是放在子目录的话 例如：www.snsjzj.com/BBS<br />
那么 RewriteBase / 这写成 RewriteBase / BBS 就OK啦</p>
<p>说明我也是在DZ 7.2 测试成功的，如有好的方法及建议，希望大家互相交流，互相提高。</p>
<h2>DZ7.2论坛静态包文件下载</h2>
<p>点击进入下载<a href="http://down.qiannao.com/space/file/cashjay/-4e0a-4f20-5206-4eab/DZ7.2-9759-6001-89c4-5219.rar/.page" target="_blank">discuz静态规则文件包</a></p>
<blockquote><div>&raquo; 转载请注明来源：<a title="牛博哄哄" href="http://www.niuhh.com">牛博哄哄</a> &raquo; <a rel="bookmark" title="DZ7.2论坛静态规则的实现（附DZ7.2静态包下载）" href="http://www.niuhh.com/archives/162.html">《DZ7.2论坛静态规则的实现（附DZ7.2静态包下载）》</a></div><div>&raquo; 本文链接地址：<a rel="bookmark" title="DZ7.2论坛静态规则的实现（附DZ7.2静态包下载）" href="http://www.niuhh.com/archives/162.html">http://www.niuhh.com/archives/162.html</a></div><div>&raquo; 订阅本站：<a title="牛博哄哄" href="http://feed.feedsky.com/niuhh">http://feed.feedsky.com/niuhh</a></div></blockquote>
	标签：<a href="http://www.niuhh.com/archives/tag/dz7-2%e8%ae%ba%e5%9d%9b" title="DZ7.2论坛" rel="tag">DZ7.2论坛</a>, <a href="http://www.niuhh.com/archives/tag/%e9%9d%99%e6%80%81%e8%a7%84%e5%88%99" title="静态规则" rel="tag">静态规则</a><br />

	<h4>你可能对以下内容感兴趣</h4>
	<ul class="st-related-posts">
	<li>NiuHH.COM祝你更牛!</li>
	</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.niuhh.com/archives/162.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>网站提速方法之一:JS调用广告</title>
		<link>http://www.niuhh.com/archives/156.html</link>
		<comments>http://www.niuhh.com/archives/156.html#comments</comments>
		<pubDate>Fri, 14 May 2010 13:49:04 +0000</pubDate>
		<dc:creator>NiuHH</dc:creator>
				<category><![CDATA[WEB技术]]></category>
		<category><![CDATA[挖掘经验]]></category>
		<category><![CDATA[JS]]></category>
		<category><![CDATA[广告]]></category>
		<category><![CDATA[提速]]></category>
		<category><![CDATA[网站]]></category>

		<guid isPermaLink="false">http://www.niuhh.com/?p=156</guid>
		<description><![CDATA[网站提速方法之一:JS调用广告
很多网站为了或长远或短期的发展，都会在自己的网站/博客上投放一些广告，以获得一定的网站收支平衡。但由于广告提供者是网站外部接入的，具有不确定因 素，如广告服务器超负荷，线路故障等导致广告服务器失去响应；这个时候，如果你的网站使用的是JS插入方式的广告，那你的网站打开速度也会慢如蜗牛。    投 放广告的方式很多，最常用的是两种：直接调用外部js和外部iframe。这2种方法如果你是直接调用，那都不能解决自身网站的打开速度。在广告服务器响 应快速的情况下，还感觉不到什么。当广告服务器的响应速度慢于你的服务器打开的速度的时候，你就会收拖累了。    以前，不少人喜欢用 iframe的方式插入广告，这个是可以解决问题。但这种方式的缺点很明显：
1、iframe的高和宽是固定的，如果iframe是被成千上万个 静态页调用，而又需要调整高度和宽度，那你就要重新生成这么多的页面，麻烦；
2、一个iframe就占用服务器的一个进程，如果你的页面有多个 iframe，那么你的网站同时在线人数将受到限制，本来可以同时在线500人，由于调用自身的iframe很多，同时科承受人数将大打折扣。    所 以，我建议，使用js方式调用本站广告数据。具体操作方法如下：
1、首先在需要插入广告的地方写入：
&#60;span id=&#8221;ad_1&#8243;&#62;&#60;/span&#62;
2、 在页面源代码最下方，&#60;/body&#62;之前插入以下替换广告代码：
&#60;SPAN id=&#8221;ad_11&#8243; style=&#8221;visibility:hidden;&#8221;&#62;
&#60;script language=&#8221;JavaScript&#8221; src=&#8221;/js/ad_1.js&#8221;&#62;&#60;/script&#62;
&#60;/SPAN&#62;
&#60;SCRIPT&#62;ad_1.innerHTML=ad_11.innerHTML;ad_11.innerHTML=&#8221;";&#60;/SCRIPT&#62;
3、 在本地/js/ad_1.js路径下的ad_1.js里写入广告代码；这里的广告代码可以自由发挥，可以写诸如JS,IFRAME, 等；Google Adsense也支持此种方式的调用。    说明：其中style=&#8221;visibility:hidden;&#8221;表示下 面的这段代码在执行的时候隐藏，以免影响整站界面。路径/js/ad_1.js李的ad_1.js是网站服务器上的js文件，以后我们需要改变广告了，更 换广告了，直接在ad_1.js里修改广告代码就可以了，而且这种方式的调用，丝毫不会影响网站的整体打开速度，因为我们把广告调用代码放在网页最后面执 行了。    当然，如果你要更改广告的高度和宽度，也可以直接在这样的js里修改。js的语法支持2种方 式：document.write(&#8220;&#8230;AD&#8230;&#8221;);以及document.writeln(&#8220;&#8230;AD&#8230;&#8221;);（分行写入），其中双引号 也可改为单引号；如果用双引号，AD代码的遇到双引号时，需要转义符号\。具体的js语法，大家可以简单的学习下。
&#187; 转载请注明来源：牛博哄哄 &#187; 《网站提速方法之一:JS调用广告》&#187; 本文链接地址：http://www.niuhh.com/archives/156.html&#187; 订阅本站：http://feed.feedsky.com/niuhh
	标签：JS, 广告, 提速, 网站

	你可能对以下内容感兴趣
	
	早就该明确生活目标了 (5)
	博客也快长草了…… (0)
	Google AdSense优化之给Google广告添加背景图片 (0)


]]></description>
			<content:encoded><![CDATA[<p><strong><span class='wp_keywordlink_affiliate'><a href="http://www.niuhh.com/archives/tag/%e7%bd%91%e7%ab%99" title="查看 网站 的全部文章" target="_blank">网站</a></span><span class='wp_keywordlink_affiliate'><a href="http://www.niuhh.com/archives/tag/%e6%8f%90%e9%80%9f" title="查看 提速 的全部文章" target="_blank">提速</a></span>方法之一:<span class='wp_keywordlink_affiliate'><a href="http://www.niuhh.com/archives/tag/js" title="查看 JS 的全部文章" target="_blank">JS</a></span>调用<span class='wp_keywordlink_affiliate'><a href="http://www.niuhh.com/archives/tag/%e5%b9%bf%e5%91%8a" title="查看 广告 的全部文章" target="_blank">广告</a></span></strong></p>
<p>很多<span class='wp_keywordlink_affiliate'><a href="http://www.niuhh.com/archives/tag/%e7%bd%91%e7%ab%99" title="查看 网站 的全部文章" target="_blank">网站</a></span>为了或长远或短期的发展，都会在自己的网站/博客上投放一些<span class='wp_keywordlink_affiliate'><a href="http://www.niuhh.com/archives/tag/%e5%b9%bf%e5%91%8a" title="查看 广告 的全部文章" target="_blank">广告</a></span>，以获得一定的网站收支平衡。但由于广告提供者是网站外部接入的，具有不确定因 素，如广告服务器超负荷，线路故障等导致广告服务器失去响应；这个时候，如果你的网站使用的是JS插入方式的广告，那你的网站打开速度也会慢如蜗牛。    投 放广告的方式很多，最常用的是两种：直接调用外部js和外部iframe。这2种方法如果你是直接调用，那都不能解决自身网站的打开速度。在广告服务器响 应快速的情况下，还感觉不到什么。当广告服务器的响应速度慢于你的服务器打开的速度的时候，你就会收拖累了。    以前，不少人喜欢用 iframe的方式插入广告，这个是可以解决问题。但这种方式的缺点很明显：<span id="more-156"></span><br />
1、iframe的高和宽是固定的，如果iframe是被成千上万个 静态页调用，而又需要调整高度和宽度，那你就要重新生成这么多的页面，麻烦；<br />
2、一个iframe就占用服务器的一个进程，如果你的页面有多个 iframe，那么你的网站同时在线人数将受到限制，本来可以同时在线500人，由于调用自身的iframe很多，同时科承受人数将大打折扣。    所 以，我建议，使用js方式调用本站广告数据。具体操作方法如下：<br />
1、首先在需要插入广告的地方写入：</p>
<div id="yy">&lt;span id=&#8221;ad_1&#8243;&gt;&lt;/span&gt;</div>
<p>2、 在页面源代码最下方，&lt;/body&gt;之前插入以下替换广告代码：</p>
<div id="yy">&lt;SPAN id=&#8221;ad_11&#8243; style=&#8221;visibility:hidden;&#8221;&gt;<br />
&lt;script language=&#8221;JavaScript&#8221; src=&#8221;/js/ad_1.js&#8221;&gt;&lt;/script&gt;<br />
&lt;/SPAN&gt;<br />
&lt;SCRIPT&gt;ad_1.innerHTML=ad_11.innerHTML;ad_11.innerHTML=&#8221;";&lt;/SCRIPT&gt;</div>
<p>3、 在本地/js/ad_1.js路径下的ad_1.js里写入广告代码；这里的广告代码可以自由发挥，可以写诸如JS,IFRAME, 等；Google Adsense也支持此种方式的调用。    说明：其中style=&#8221;visibility:hidden;&#8221;表示下 面的这段代码在执行的时候隐藏，以免影响整站界面。路径/js/ad_1.js李的ad_1.js是网站服务器上的js文件，以后我们需要改变广告了，更 换广告了，直接在ad_1.js里修改广告代码就可以了，而且这种方式的调用，丝毫不会影响网站的整体打开速度，因为我们把广告调用代码放在网页最后面执 行了。    当然，如果你要更改广告的高度和宽度，也可以直接在这样的js里修改。js的语法支持2种方 式：document.write(&#8220;&#8230;AD&#8230;&#8221;);以及document.writeln(&#8220;&#8230;AD&#8230;&#8221;);（分行写入），其中双引号 也可改为单引号；如果用双引号，AD代码的遇到双引号时，需要转义符号\。具体的js语法，大家可以简单的学习下。</p>
<blockquote><div>&raquo; 转载请注明来源：<a title="牛博哄哄" href="http://www.niuhh.com">牛博哄哄</a> &raquo; <a rel="bookmark" title="网站提速方法之一:JS调用广告" href="http://www.niuhh.com/archives/156.html">《网站提速方法之一:JS调用广告》</a></div><div>&raquo; 本文链接地址：<a rel="bookmark" title="网站提速方法之一:JS调用广告" href="http://www.niuhh.com/archives/156.html">http://www.niuhh.com/archives/156.html</a></div><div>&raquo; 订阅本站：<a title="牛博哄哄" href="http://feed.feedsky.com/niuhh">http://feed.feedsky.com/niuhh</a></div></blockquote>
	标签：<a href="http://www.niuhh.com/archives/tag/js" title="JS" rel="tag">JS</a>, <a href="http://www.niuhh.com/archives/tag/%e5%b9%bf%e5%91%8a" title="广告" rel="tag">广告</a>, <a href="http://www.niuhh.com/archives/tag/%e6%8f%90%e9%80%9f" title="提速" rel="tag">提速</a>, <a href="http://www.niuhh.com/archives/tag/%e7%bd%91%e7%ab%99" title="网站" rel="tag">网站</a><br />

	<h4>你可能对以下内容感兴趣</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.niuhh.com/archives/113.html" title="早就该明确生活目标了 (2010年03月9日)">早就该明确生活目标了</a> (5)</li>
	<li><a href="http://www.niuhh.com/archives/127.html" title="博客也快长草了…… (2010年04月10日)">博客也快长草了……</a> (0)</li>
	<li><a href="http://www.niuhh.com/archives/8.html" title="Google AdSense优化之给Google广告添加背景图片 (2010年01月16日)">Google AdSense优化之给Google广告添加背景图片</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.niuhh.com/archives/156.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>解决Warning: Cannot modify header information &#8211; headers already sent by &#8230;&#8230;</title>
		<link>http://www.niuhh.com/archives/138.html</link>
		<comments>http://www.niuhh.com/archives/138.html#comments</comments>
		<pubDate>Thu, 15 Apr 2010 12:58:51 +0000</pubDate>
		<dc:creator>NiuHH</dc:creator>
				<category><![CDATA[WEB技术]]></category>
		<category><![CDATA[挖掘经验]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Warning]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[解决]]></category>

		<guid isPermaLink="false">http://www.niuhh.com/?p=138</guid>
		<description><![CDATA[
前段时间在搞论坛,改模板时遇到过出现&#8221;Warning: Cannot modify header information &#8211; headers already sent by &#8230;&#8230;&#8221;这样的问题.也是很让人不解.PHP还真是奇妙.不过最终还是挖掘到了解决的办法.还是中英文对照,现原文搬过来学习了.
If you got this message: &#8220;Warning: Cannot modify header information &#8211; headers already sent by &#8230;.&#8221;
如果在执行php程序时看到这条警告:&#8221;Warning: Cannot modify header information &#8211; headers already sent by &#8230;.&#8221;
Few notes based on the following user posts:
有以下几种解决方法:
1. Blank lines (空白行):
Make sure no blank line after &#60;?php &#8230; ?&#62; of [...]]]></description>
			<content:encoded><![CDATA[<p><a rel="attachment wp-att-139" href="http://www.niuhh.com/archives/138.html/php"><img class="alignnone size-medium wp-image-139" title="php" src="http://www.niuhh.com/wp-content/uploads/2010/04/php-300x150.jpg" alt="" width="300" height="150" /></a></p>
<p>前段时间在搞论坛,改模板时遇到过出现&#8221;<span class='wp_keywordlink_affiliate'><a href="http://www.niuhh.com/archives/tag/warning" title="查看 Warning 的全部文章" target="_blank">Warning</a></span>: Cannot modify header information &#8211; headers already sent by &#8230;&#8230;&#8221;这样的问题.也是很让人不解.<span class='wp_keywordlink_affiliate'><a href="http://www.niuhh.com/archives/tag/php" title="查看 PHP 的全部文章" target="_blank">PHP</a></span>还真是奇妙.不过最终还是挖掘到了<span class='wp_keywordlink_affiliate'><a href="http://www.niuhh.com/archives/tag/%e8%a7%a3%e5%86%b3" title="查看 解决 的全部文章" target="_blank">解决</a></span>的办法.还是中英文对照,现原文搬过来学习了.<span id="more-138"></span></p>
<p>If you got this message: &#8220;<span class='wp_keywordlink_affiliate'><a href="http://www.niuhh.com/archives/tag/warning" title="查看 Warning 的全部文章" target="_blank">Warning</a></span>: Cannot modify header information &#8211; headers already sent by &#8230;.&#8221;<br />
如果在执行php程序时看到这条警告:&#8221;Warning: Cannot modify header information &#8211; headers already sent by &#8230;.&#8221;</p>
<p>Few notes based on the following user posts:<br />
有以下几种<span class='wp_keywordlink_affiliate'><a href="http://www.niuhh.com/archives/tag/%e8%a7%a3%e5%86%b3" title="查看 解决 的全部文章" target="_blank">解决</a></span>方法:</p>
<p>1. Blank lines (空白行):<br />
Make sure no blank line after &lt;?php &#8230; ?&gt; of the calling php script.<br />
检查有&lt;?php &#8230; ?&gt; 后面没有空白行，特别是include或者require的文件。不少问题是这些空白行导致的。</p>
<p>2. Use exit statement (用<a href="http://www.niuhh.com" target="_self">exit</a>来解决):<br />
Use exit after header statement seems to help some people<br />
<span style="color: #ff0000;">在header后加上exit();<br />
header (&#8220;Location: xxx&#8221;);<br />
exit();</span></p>
<p><span style="color: #ff9900;">3.</span> <span class='wp_keywordlink_affiliate'><a href="http://www.niuhh.com/archives/tag/php" title="查看 PHP 的全部文章" target="_blank">PHP</a></span> has this annoying problem, if your HTML goes before any PHP code or any header modification before redirecting to certain page, it&#8217;ll said &#8220;Warning: Cannot modify header information &#8211; headers already sent by &#8230;.&#8221; Basically anytime you output to browser, the header is set and cannot be modified.   So two ways to get around the problem:</p>
<p>3a. Use Javascript (用Javascript来解决):<br />
&lt;? echo &#8220;&lt;script&gt; self.location(\&#8221;file.php\&#8221;);&lt;/script&gt;&#8221;; ?&gt;<br />
Since it&#8217;s a script, it won&#8217;t modify the header until execution of Javascript.<br />
可以用Javascript来代替header。但是上面的这段<span class='wp_keywordlink_affiliate'><a href="http://www.niuhh.com/archives/tag/%e4%bb%a3%e7%a0%81" title="查看 代码 的全部文章" target="_blank">代码</a></span>我没有执行成功&#8230; 另外需要注意，采用这种方法需要浏览器支持Javascript.</p>
<p>3b. Use output buffering (用输出缓存来解决):<br />
<span style="color: #ff0000;">&lt;?php ob_start(); ?&gt;</span><br />
&#8230; HTML codes &#8230;<br />
&lt;?php<br />
&#8230; PHP codes &#8230;<br />
header (&#8220;Location: &#8230;.&#8221;);<br />
<span style="color: #ff0000;">ob_end_flush();</span><br />
?&gt;<br />
This will save the output buffer on server and not output to browser yet, which means you can modify the header all you want until the ob_end_flush() statement.   This method is cleaner than the Javascript since Javascript method assumes the browser has Javascript turn on.   However, there are overhead to store output buffer on server before output, but with modern hardware I would imagine it won&#8217;t be that big of deal.   Javascript solution would be better if you know for sure your user has Javascript turn on on their browser.</p>
<p>就像上面的代码那样，这种方法在生成页面的时候缓存，这样就允许在输出head之后再输出header了。本站的许愿板就是采用这种方法解决的header问题。</p>
<div><span style="color: #0000ff;">在后台管理或者有时候在论坛，点击一个页面，页顶会出现<br />
Warning: Cannot modify header information &#8211; headers already sent by&#8230;.<br />
这类语句，造成这个原因是因为setcookie语句的问题。</p>
<p>cookie本身在使用上有一些限制，例如：<br />
1.呼叫setcookie的敘述必須放在&lt;html&gt;標籤之前<br />
2.呼叫setcookie之前，不可使用echo<br />
3.直到網頁被重新載入後，cookie才會在程式中出現<br />
4.setcookie函數必須在任何資料輸出至瀏覽器前，就先送出<br />
5.……<br />
基於上面這些限制，所以執行setcookie()函數時，常會碰到&#8221;Undefined index&#8221;、&#8221;Cannot modify header information &#8211; headers already sent by&#8221;…等問題，解決&#8221;Cannot modify header information &#8211; headers already sent by&#8221;這個錯誤的方法是在產生cookie前，先延緩資料輸出至瀏覽器，因此，<span style="color: #ff0000;">您可以在程式的最前方加上ob_start();這個函數</span>。这样就可以解决了。</span></div>
<p>4.set output_buffering = On in php.ini (开启php.ini中的output_buffering )<br />
set output_buffering = On will enable output buffering for all files. But this method may slow down your php output. The performance of this method depends on which Web server you&#8217;re working with, and what kind of scripts you&#8217;re using.<br />
这种方法和3b的方法理论上是一样的。但是这种方法开启了所有php程序的输出缓存，这样做可能影响php执行效率，这取决于服务器的性能和代码的复杂度。</p>
<p> 最后提醒在改代码时,如果使用utf-8编码，一定要去掉UTF-8中的BOM，这都是因为utf-8编码文件含有的bom原因，而php4,5都是不支持bom的。去掉bom，可以用Notepad++打开转换一下。（我就是看了这个才解决问题的）</p>
<p> 以上是从网络中学到的.</p>
<blockquote><div>&raquo; 转载请注明来源：<a title="牛博哄哄" href="http://www.niuhh.com">牛博哄哄</a> &raquo; <a rel="bookmark" title="解决Warning: Cannot modify header information &#8211; headers already sent by &#8230;&#8230;" href="http://www.niuhh.com/archives/138.html">《解决Warning: Cannot modify header information &#8211; headers already sent by &#8230;&#8230;》</a></div><div>&raquo; 本文链接地址：<a rel="bookmark" title="解决Warning: Cannot modify header information &#8211; headers already sent by &#8230;&#8230;" href="http://www.niuhh.com/archives/138.html">http://www.niuhh.com/archives/138.html</a></div><div>&raquo; 订阅本站：<a title="牛博哄哄" href="http://feed.feedsky.com/niuhh">http://feed.feedsky.com/niuhh</a></div></blockquote>
	标签：<a href="http://www.niuhh.com/archives/tag/php" title="PHP" rel="tag">PHP</a>, <a href="http://www.niuhh.com/archives/tag/warning" title="Warning" rel="tag">Warning</a>, <a href="http://www.niuhh.com/archives/tag/%e4%bb%a3%e7%a0%81" title="代码" rel="tag">代码</a>, <a href="http://www.niuhh.com/archives/tag/%e8%a7%a3%e5%86%b3" title="解决" rel="tag">解决</a><br />

	<h4>你可能对以下内容感兴趣</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.niuhh.com/archives/32.html" title="推荐:000webhost 1.5GB免费可绑米PHP空间(见证稳定) (2010年01月21日)">推荐:000webhost 1.5GB免费可绑米PHP空间(见证稳定)</a> (3)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.niuhh.com/archives/138.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>如何让百度收录带www的主域名？(详细)</title>
		<link>http://www.niuhh.com/archives/134.html</link>
		<comments>http://www.niuhh.com/archives/134.html#comments</comments>
		<pubDate>Thu, 15 Apr 2010 12:40:13 +0000</pubDate>
		<dc:creator>NiuHH</dc:creator>
				<category><![CDATA[WEB技术]]></category>
		<category><![CDATA[挖掘经验]]></category>
		<category><![CDATA[301]]></category>
		<category><![CDATA[www]]></category>
		<category><![CDATA[域名]]></category>
		<category><![CDATA[百度]]></category>

		<guid isPermaLink="false">http://www.niuhh.com/?p=134</guid>
		<description><![CDATA[
徘徊在本篇文章题目到底是百度只收录不带www的解决办法还是如何让百度收录带www的主域名.各位朋友,自从那个铁通的破网到期后,加上工作的事情导致好久没来折腾网站了.昨天重新装了个长城宽带,到目前为止感觉还可以,迅雷下载速度基本上可以飙到800kb/s.马马虎虎就这样吧.可能很多朋友要说了,为啥不搞个电信的呢,稳定且速度快,堪称宽带龙头老大.哎,谁叫俺是蜗居在城市中的&#8221;蚁族&#8221;呢.废话不多说,转入本篇文章的主题-如何让百度收录带www的主域名.
NiuHH为什么要写这篇文章呢?还是听我娓娓道来^-^ .话说2个月前,本人搞了个论坛(室内设计之家-www.snsjzj.com)玩.安装了discuz 7.2的程序,搞上模板,凑了几篇文章后,由于第一段所述原因就没有心思打理了.前不久查看收录情况,发现Google等搜索引擎还是收录了www.snsjzj.com这个域名的,而发现百度和搜狗却收录为零,出现这样的情况让我很是不解.后来发现百度和搜狗只收录了不带www的snsjzj.com这个域名.室内设计之家这个论坛我可是把www.snsjzj.com的域名作为主域名的,出现这样的情况NiuHH是不能忍受的.于是乎就在网海中搜索了一下,发现了解决的办法.在这里分享一下权当记录我的网站折腾之旅,若对出现同样情况的朋友有所帮助,将倍感欣慰!
百度只收录不带www域名的解决办法就是301重定向.把不带www的域名用301重定向到带www的,这样搜索引擎会把带www的权重提高.具体的方法是在首页index.php最顶上加上这段代码就行了。
&#60;?php
$theurl = strtolower($_SERVER["HTTP_HOST"]);
if (strpos($theurl, &#8220;www.&#8221;) === false){
$url = http://www.snsjzj.com;
header(&#8220;HTTP/1.1 301 Moved Permanently&#8221;);
header(&#8220;Location:$url&#8221;);
exit();}
?&#62;
注意把那个地址替换成你的网站地址.修改上传完毕后,看看你的不带www的域名是否自动跳转到了带www的主域名上呢.相信不久百度等搜索引擎就会收录带www的主域名了.
&#187; 转载请注明来源：牛博哄哄 &#187; 《如何让百度收录带www的主域名？(详细)》&#187; 本文链接地址：http://www.niuhh.com/archives/134.html&#187; 订阅本站：http://feed.feedsky.com/niuhh
	标签：301, www, 域名, 百度

	你可能对以下内容感兴趣
	
	NiuHH.COM祝你更牛!
	

]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-135" title="WWW" src="http://www.niuhh.com/wp-content/uploads/2010/04/WWW-300x220.png" alt="www" width="300" height="220" /></p>
<p>徘徊在本篇文章题目到底是<strong><span class='wp_keywordlink_affiliate'><a href="http://www.niuhh.com/archives/tag/%e7%99%be%e5%ba%a6" title="查看 百度 的全部文章" target="_blank">百度</a></span>只收录不带<span class='wp_keywordlink_affiliate'><a href="http://www.niuhh.com/archives/tag/www" title="查看 www 的全部文章" target="_blank">www</a></span>的解决办法</strong>还是<strong>如何让百度收录带www的主<span class='wp_keywordlink_affiliate'><a href="http://www.niuhh.com/archives/tag/%e5%9f%9f%e5%90%8d" title="查看 域名 的全部文章" target="_blank">域名</a></span>.</strong>各位朋友,自从那个铁通的破网到期后,加上工作的事情导致好久没来折腾网站了.昨天重新装了个长城宽带,到目前为止感觉还可以,迅雷下载速度基本上可以飙到800kb/s.马马虎虎就这样吧.可能很多朋友要说了,为啥不搞个电信的呢,稳定且速度快,堪称宽带龙头老大.哎,谁叫俺是蜗居在城市中的&#8221;蚁族&#8221;呢.废话不多说,转入本篇文章的主题-如何让百度收录带www的主<span class='wp_keywordlink_affiliate'><a href="http://www.niuhh.com/archives/tag/%e5%9f%9f%e5%90%8d" title="查看 域名 的全部文章" target="_blank">域名</a></span>.<span id="more-134"></span></p>
<p><span class='wp_keywordlink'><a href="http://www.niuhh.com" title="牛博哄哄" target="_blank">NiuHH</a></span>为什么要写这篇文章呢?还是听我娓娓道来^-^ .话说2个月前,本人<a href="http://www.niuhh.com/archives/104.html" target="_blank">搞了个论坛</a>(室内设计之家-<a href="http://www.snsjzj.com" target="_blank">www.snsjzj.com</a>)玩.安装了discuz 7.2的程序,搞上模板,凑了几篇文章后,由于第一段所述原因就没有心思打理了.前不久查看收录情况,发现Google等搜索引擎还是收录了<a href="http://www.snsjzj.com">www.snsjzj.com</a>这个域名的,而发现百度和搜狗却收录为零,出现这样的情况让我很是不解.后来发现百度和搜狗只收录了不带www的snsjzj.com这个域名.室内设计之家这个论坛我可是把<a href="http://www.snsjzj.com">www.snsjzj.com</a>的域名作为主域名的,出现这样的情况NiuHH是不能忍受的.于是乎就在网海中搜索了一下,发现了解决的办法.在这里分享一下权当记录我的网站折腾之旅,若对出现同样情况的朋友有所帮助,将倍感欣慰!<br />
百度只收录不带www域名的解决办法就是<span class='wp_keywordlink_affiliate'><a href="http://www.niuhh.com/archives/tag/301" title="查看 301 的全部文章" target="_blank">301</a></span>重定向.把不带www的域名用<span class='wp_keywordlink_affiliate'><a href="http://www.niuhh.com/archives/tag/301" title="查看 301 的全部文章" target="_blank">301</a></span>重定向到带www的,这样搜索引擎会把带www的权重提高.具体的方法是在首页index.php最顶上加上这段代码就行了。</p>
<blockquote><p>&lt;?php<br />
$theurl = strtolower($_SERVER["HTTP_HOST"]);<br />
if (strpos($theurl, &#8220;www.&#8221;) === false){<br />
$url = <a href="http://www.snsjzj.com">http://www.snsjzj.com</a>;<br />
header(&#8220;HTTP/1.1 301 Moved Permanently&#8221;);<br />
header(&#8220;Location:$url&#8221;);<br />
exit();}<br />
?&gt;</p></blockquote>
<p>注意把那个地址替换成你的网站地址.修改上传完毕后,看看你的不带www的域名是否自动跳转到了带www的主域名上呢.相信不久百度等搜索引擎就会收录带www的主域名了.</p>
<blockquote><div>&raquo; 转载请注明来源：<a title="牛博哄哄" href="http://www.niuhh.com">牛博哄哄</a> &raquo; <a rel="bookmark" title="如何让百度收录带www的主域名？(详细)" href="http://www.niuhh.com/archives/134.html">《如何让百度收录带www的主域名？(详细)》</a></div><div>&raquo; 本文链接地址：<a rel="bookmark" title="如何让百度收录带www的主域名？(详细)" href="http://www.niuhh.com/archives/134.html">http://www.niuhh.com/archives/134.html</a></div><div>&raquo; 订阅本站：<a title="牛博哄哄" href="http://feed.feedsky.com/niuhh">http://feed.feedsky.com/niuhh</a></div></blockquote>
	标签：<a href="http://www.niuhh.com/archives/tag/301" title="301" rel="tag">301</a>, <a href="http://www.niuhh.com/archives/tag/www" title="www" rel="tag">www</a>, <a href="http://www.niuhh.com/archives/tag/%e5%9f%9f%e5%90%8d" title="域名" rel="tag">域名</a>, <a href="http://www.niuhh.com/archives/tag/%e7%99%be%e5%ba%a6" title="百度" rel="tag">百度</a><br />

	<h4>你可能对以下内容感兴趣</h4>
	<ul class="st-related-posts">
	<li>NiuHH.COM祝你更牛!</li>
	</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.niuhh.com/archives/134.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>浅谈几种网页自动跳转代码</title>
		<link>http://www.niuhh.com/archives/87.html</link>
		<comments>http://www.niuhh.com/archives/87.html#comments</comments>
		<pubDate>Sat, 20 Feb 2010 10:44:31 +0000</pubDate>
		<dc:creator>NiuHH</dc:creator>
				<category><![CDATA[WEB技术]]></category>
		<category><![CDATA[挖掘经验]]></category>
		<category><![CDATA[网页自动跳转代码]]></category>
		<category><![CDATA[网页跳转]]></category>

		<guid isPermaLink="false">http://www.niuhh.com/?p=87</guid>
		<description><![CDATA[我们上网时,有时点击一个链接的时候,发现一下子进入了非该链接地址的其他的网站.一下子让人摸不着头脑,不知你有没有出现这种情况.开始的时候,我只知道它是一种跳转,但是不知如何实现的.因为之前只知道域名跳转.经过一番讨教和学习,才明白这是用网页代码实现的.为了方便学习,所以在此收藏了一些网页自动跳转的代码.
网页自动跳转代码貌似有两种类型:不隐藏转向之后的地址和隐藏转向之后的地址.
网页自动跳转代码-不隐藏转向之后的地址
不隐藏转向之后的地址代码一
&#60;html&#62;
&#60;head&#62;
&#60;meta  http-equiv=&#8221;Content-Language&#8221; content=&#8221;zh-cn&#8221;&#62;
&#60;meta  HTTP-EQUIV=&#8221;Content-Type&#8221; CONTENT=&#8221;text/html; charset=gb2312&#8243;&#62;
&#60;title&#62;&#60;/title&#62;
&#60;/head&#62;
&#60;body&#62;
&#60;form  name=loading&#62;
&#60;P align=center&#62;&#60;FONT face=Arial  color=#0066ff size=2&#62;loading&#8230;&#60;/FONT&#62; &#60;INPUT
style=&#8221;PADDING-RIGHT:  0px; PADDING-LEFT: 0px; FONT-WEIGHT: bolder; PADDING-BOTTOM: 0px;  COLOR: #0066ff; BORDER-TOP-style: none; PADDING-TOP: 0px; FONT-FAMILY:  Arial; BORDER-RIGHT-style: none; BORDER-LEFT-style: none;  BACKGROUND-COLOR: white; BORDER-BOTTOM-style: none&#8221;
size=46  name=chart&#62; &#60;BR&#62;&#60;INPUT
style=&#8221;BORDER-RIGHT: medium none;  BORDER-TOP: medium none; BORDER-LEFT: medium none; [...]]]></description>
			<content:encoded><![CDATA[<p>我们上网时,有时点击一个链接的时候,发现一下子进入了非该链接地址的其他的网站.一下子让人摸不着头脑,不知你有没有出现这种情况.开始的时候,我只知道它是一种跳转,但是不知如何实现的.因为之前只知道域名跳转.经过一番讨教和学习,才明白这是用网页代码实现的.为了方便学习,所以在此收藏了一些<strong>网页自动跳转的代码</strong>.<span id="more-87"></span></p>
<p><span class='wp_keywordlink_affiliate'><a href="http://www.niuhh.com/archives/tag/%e7%bd%91%e9%a1%b5%e8%87%aa%e5%8a%a8%e8%b7%b3%e8%bd%ac%e4%bb%a3%e7%a0%81" title="查看 网页自动跳转代码 的全部文章" target="_blank">网页自动跳转代码</a></span>貌似有两种类型:不隐藏转向之后的地址和隐藏转向之后的地址.</p>
<h3><span style="color: #ff00ff;"><span class='wp_keywordlink_affiliate'><a href="http://www.niuhh.com/archives/tag/%e7%bd%91%e9%a1%b5%e8%87%aa%e5%8a%a8%e8%b7%b3%e8%bd%ac%e4%bb%a3%e7%a0%81" title="查看 网页自动跳转代码 的全部文章" target="_blank">网页自动跳转代码</a></span>-不隐藏转向之后的地址</span></h3>
<p><strong>不隐藏转向之后的地址代码一</strong></p>
<blockquote><p>&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;meta  http-equiv=&#8221;Content-Language&#8221; content=&#8221;zh-cn&#8221;&gt;<br />
&lt;meta  HTTP-EQUIV=&#8221;Content-Type&#8221; CONTENT=&#8221;text/html; charset=gb2312&#8243;&gt;<br />
&lt;title&gt;&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;form  name=loading&gt;<br />
&lt;P align=center&gt;&lt;FONT face=Arial  color=#0066ff size=2&gt;loading&#8230;&lt;/FONT&gt; &lt;INPUT<br />
style=&#8221;PADDING-RIGHT:  0px; PADDING-LEFT: 0px; FONT-WEIGHT: bolder; PADDING-BOTTOM: 0px;  COLOR: #0066ff; BORDER-TOP-style: none; PADDING-TOP: 0px; FONT-FAMILY:  Arial; BORDER-RIGHT-style: none; BORDER-LEFT-style: none;  BACKGROUND-COLOR: white; BORDER-BOTTOM-style: none&#8221;<br />
size=46  name=chart&gt; &lt;BR&gt;&lt;INPUT<br />
style=&#8221;BORDER-RIGHT: medium none;  BORDER-TOP: medium none; BORDER-LEFT: medium none; COLOR: #0066ff;  BORDER-BOTTOM: medium none; TEXT-ALIGN: center&#8221;<br />
size=47  name=percent&gt;<br />
&lt;SCRIPT&gt;<br />
var bar=0<br />
var line=&#8221;||&#8221;<br />
var  amount=&#8221;||&#8221;<br />
count()<br />
function count(){<br />
bar=bar+2<br />
amount  =amount + line<br />
document.loading.chart.value=amount<br />
document.loading.percent.value=bar+&#8221;%&#8221;<br />
if (bar&lt;99)<br />
{setTimeout(&#8220;count()&#8221;,100);}<br />
else<br />
{window.location  = &#8220;将这里改成要转入的网址,比如http://www.niuhh.com&#8221;;}<br />
}&lt;/SCRIPT&gt;<br />
&lt;/P&gt;&lt;/form&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p></blockquote>
<p><strong>不隐藏转向之后的地址代码二</strong></p>
<blockquote><p>&lt;html&gt;<br />
&lt;body&gt;<br />
&lt;script  language=&#8221;javascript&#8221;&gt;<br />
&lt;!&#8211;<br />
function goToURL() { //v2.0<br />
for  (var i=0; i&lt; (goToURL.arguments.length &#8211; 1); i+=2) //with arg pairs<br />
eval(goToURL.arguments+&#8221;.location=&#8217;&#8221;+goToURL.arguments[i+1]+&#8221;&#8216;&#8221;);<br />
document.returnvalue  = false;<br />
}<br />
//&#8211;&gt;<br />
&lt;/script&gt;<br />
&lt;body  bgcolor=&#8221;#FFFFFF&#8221; onLoad=&#8221;goToURL(&#8216;parent&#8217;,'将这里改成要转入的网址&#8217;);return  document.returnvalue&#8221;&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p></blockquote>
<blockquote><p>不隐藏转向之后的地址代码三<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;meta  http-equiv=&#8221;Content-Language&#8221; content=&#8221;zh-CN&#8221;&gt;<br />
&lt;meta  HTTP-EQUIV=&#8221;Content-Type&#8221; CONTENT=&#8221;text/html; charset=gb2312&#8243;&gt;<br />
&lt;title&gt;&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;SCRIPT  LANGUAGE=&#8221;javascript&#8221;&gt;<br />
&lt;!&#8211; Start Code<br />
var ver =  navigator.appVersion;<br />
if (ver.indexOf(&#8220;MSIE&#8221;) != -1)<br />
{<br />
window.location.href=&#8221; 将这里改成要转入的网址http://www.niuhh.com&#8221;<br />
}else<br />
window.location.href=&#8221;将这里改成要转入的网址&#8221;<br />
// End  Code &#8211;&gt;<br />
&lt;/SCRIPT&gt;<br />
&lt;/html&gt;</p></blockquote>
<p><strong>不隐藏转向之后的地址代码四</strong></p>
<blockquote><p>&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;meta  http-equiv=&#8221;Content-Language&#8221; content=&#8221;zh-CN&#8221;&gt;<br />
&lt;meta  HTTP-EQUIV=&#8221;Content-Type&#8221; CONTENT=&#8221;text/html; charset=gb2312&#8243;&gt;<br />
&lt;title&gt;&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;meta  http-equiv=&#8221;refresh&#8221; content=&#8221;0.1;url=将这里改成要转入的网址&#8221;&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p></blockquote>
<h3><span style="color: #ff00ff;">网页自动跳转代码-可隐藏转向之后的地址</span></h3>
<blockquote><p>&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;meta  http-equiv=&#8221;Content-Language&#8221; content=&#8221;zh-CN&#8221;&gt;<br />
&lt;meta  HTTP-EQUIV=&#8221;Content-Type&#8221; CONTENT=&#8221;text/html; charset=gb2312&#8243;&gt;<br />
&lt;title&gt;&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;frameset  framespacing=&#8221;0&#8243; border=&#8221;0&#8243; rows=&#8221;0&#8243; frameborder=&#8221;0&#8243;&gt;<br />
&lt;frame  name=&#8221;main&#8221; src=&#8221;将这里改成要转入的网址&#8221; scrolling=&#8221;auto&#8221; noresize&gt;<br />
&lt;/frameset&gt;<br />
&lt;/html&gt;</p></blockquote>
<p>上面这种可隐藏转向之后的地址的方法<a href="http://www.niuhh.com/wp-admin/post-new.php" target="_blank">NiuHH</a>测试了不成功,不知道为什么?</p>
<p>透 明Flash的设置<br />
主要是在 Flash代码段中插入这一语句：&lt;param name=wmode value=transparent&gt;，请看以下实例：</p>
<blockquote><p>&lt;object  classid=&#8221;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&#8243;  codebase=&#8221;http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0&#8243;  width=&#8221;100%&#8221; height=&#8221;100%&#8221;&gt;<br />
&lt;param name=&#8221;movie&#8221;  value=&#8221;../images/hudie.swf&#8221;&gt;<br />
&lt;param name=&#8221;quality&#8221;  value=&#8221;high&#8221;&gt;<br />
&lt;param name=wmode value=transparent&gt;  &lt;!&#8211;这个代码表示背景透明&#8211;!&gt;<br />
&lt;embed src=&#8221;../images/hudie.swf&#8221;  width=&#8221;100%&#8221; height=&#8221;100%&#8221; quality=&#8221;high&#8221;  pluginspage=&#8221;http://www.macromedia.com/go/getflashplayer&#8221;  type=&#8221;application/x-shockwave-flash&#8221;&gt;&lt;/embed&gt;<br />
&lt;/object&gt;</p></blockquote>
<blockquote><p>&lt;/html&gt;</p></blockquote>
<p><strong>html中跳转最全代码</strong><br />
程序代码</p>
<blockquote><p>&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;meta  name=&#8221;GENERATOR&#8221; content=&#8221;Microsoft FrontPage 5.0&#8243;&gt;<br />
&lt;meta  name=&#8221;ProgId&#8221; content=&#8221;FrontPage.Editor.Document&#8221;&gt;<br />
&lt;meta  http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html; charset=gb2312&#8243;&gt;<br />
&lt;title&gt; 正在进入&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;form  name=loading&gt;<br />
&lt;p align=center&gt; &lt;font color=&#8221;#0066ff&#8221;  size=&#8221;2&#8243;&gt;正在进入，请稍等&lt;/font&gt;&lt;font color=&#8221;#0066ff&#8221; size=&#8221;2&#8243;  face=&#8221;Arial&#8221;&gt;&#8230;&lt;/font&gt;<br />
&lt;input type=text name=chart  size=46 style=&#8221;font-family:Arial; font-weight:bolder; color:#0066ff;  background-color:#fef4d9; padding:0px; border-style:none;&#8221;&gt;</p>
<p>&lt;input type=text name=percent size=47 style=&#8221;color:#0066ff;  text-align:center; border-width:medium; border-style:none;&#8221;&gt;<br />
&lt;script&gt;<br />
var bar=0<br />
var line=&#8221;||&#8221;<br />
var amount=&#8221;||&#8221;<br />
count()<br />
function count(){<br />
bar=bar+2<br />
amount =amount + line<br />
document.loading.chart.value=amount<br />
document.loading.percent.value=bar+&#8221;%&#8221;<br />
if (bar&lt;99)<br />
{setTimeout(&#8220;count()&#8221;,100);}<br />
else<br />
{window.location = &#8220;你的URL&#8221;;}<br />
}&lt;/script&gt;<br />
&lt;/p&gt;<br />
&lt;/form&gt;<br />
&lt;p  align=&#8221;center&#8221;&gt; 如果您的浏览器不支持跳转,&lt;a style=&#8221;text-decoration: none&#8221;  href=&#8221;http://blog.gangege.com&#8221;&gt;&lt;font  color=&#8221;#FF0000&#8243;&gt;请点这里&lt;/font&gt;&lt;/a&gt;.&lt;/p&gt;<br />
&lt;/body&gt;</p></blockquote>
<p>推荐使用<strong>不隐藏转向之后的地址代码四</strong>,即html的meta方式<br />
这种方法的好处是可以控制重定向的时间<br />
程序代码&lt;meta http-equiv=&#8217;Refresh&#8217;  content=&#8217;时间(0.1至10为宜);URL=index.html&#8217;&gt; 演示:<a href="http://www.niuhh.com/niuhh.html" target="_blank">点击查看</a></p>
<p><span class='wp_keywordlink'><a href="http://www.niuhh.com" title="牛博哄哄" target="_blank">NiuHH</a></span>发现有的跳转没有建立html网页,却也能跳转.这些网址形式如http://www.niuhh.com/go/niuhh ,不知是怎么实现的,哪位大虾看到本文后,不妨告诉NiuHH,将不胜感激!</p>
<blockquote><div>&raquo; 转载请注明来源：<a title="牛博哄哄" href="http://www.niuhh.com">牛博哄哄</a> &raquo; <a rel="bookmark" title="浅谈几种网页自动跳转代码" href="http://www.niuhh.com/archives/87.html">《浅谈几种网页自动跳转代码》</a></div><div>&raquo; 本文链接地址：<a rel="bookmark" title="浅谈几种网页自动跳转代码" href="http://www.niuhh.com/archives/87.html">http://www.niuhh.com/archives/87.html</a></div><div>&raquo; 订阅本站：<a title="牛博哄哄" href="http://feed.feedsky.com/niuhh">http://feed.feedsky.com/niuhh</a></div></blockquote>
	标签：<a href="http://www.niuhh.com/archives/tag/%e7%bd%91%e9%a1%b5%e8%87%aa%e5%8a%a8%e8%b7%b3%e8%bd%ac%e4%bb%a3%e7%a0%81" title="网页自动跳转代码" rel="tag">网页自动跳转代码</a>, <a href="http://www.niuhh.com/archives/tag/%e7%bd%91%e9%a1%b5%e8%b7%b3%e8%bd%ac" title="网页跳转" rel="tag">网页跳转</a><br />

	<h4>你可能对以下内容感兴趣</h4>
	<ul class="st-related-posts">
	<li>NiuHH.COM祝你更牛!</li>
	</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.niuhh.com/archives/87.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
