﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-冰之雨-随笔分类-JavaScript</title><link>http://www.blogjava.net/yaoleiyu/category/17810.html</link><description /><language>zh-cn</language><lastBuildDate>Fri, 02 Mar 2007 06:45:50 GMT</lastBuildDate><pubDate>Fri, 02 Mar 2007 06:45:50 GMT</pubDate><ttl>60</ttl><item><title>关于用JavaScript拦截form的submit方法实现</title><link>http://www.blogjava.net/yaoleiyu/archive/2006/12/23/89636.html</link><dc:creator>winder</dc:creator><author>winder</author><pubDate>Sat, 23 Dec 2006 02:37:00 GMT</pubDate><guid>http://www.blogjava.net/yaoleiyu/archive/2006/12/23/89636.html</guid><wfw:comment>http://www.blogjava.net/yaoleiyu/comments/89636.html</wfw:comment><comments>http://www.blogjava.net/yaoleiyu/archive/2006/12/23/89636.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/yaoleiyu/comments/commentRss/89636.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/yaoleiyu/services/trackbacks/89636.html</trackback:ping><description><![CDATA[近期遇到需要用JS脚本统一拦截一下页面中form的submit方法以在页面隐式提交时修改请求URL简单实现如下：
<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #0000ff">var</span><span style="COLOR: #000000"> oldSubmit;<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">var</span><span style="COLOR: #000000"> form </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> document.forms[</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">];<br /><img id="Codehighlighter1_84_263_Open_Image" onclick="this.style.display='none'; Codehighlighter1_84_263_Open_Text.style.display='none'; Codehighlighter1_84_263_Closed_Image.style.display='inline'; Codehighlighter1_84_263_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_84_263_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_84_263_Closed_Text.style.display='none'; Codehighlighter1_84_263_Open_Image.style.display='inline'; Codehighlighter1_84_263_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedBlock.gif" align="top" /></span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">(form </span><span style="COLOR: #000000">!=</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">null</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">&amp;&amp;</span><span style="COLOR: #000000"> form </span><span style="COLOR: #000000">!=</span><span style="COLOR: #000000"> 'undefined')</span><span id="Codehighlighter1_84_263_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.blogjava.net/images/dot.gif" /></span><span id="Codehighlighter1_84_263_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        </span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">备份submit函数</span><span style="COLOR: #008000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="COLOR: #000000">    form.oldSubmit </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> form.submit;<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        </span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">覆盖submit函数以实现拦截</span><span style="COLOR: #008000"><br /><img id="Codehighlighter1_190_260_Open_Image" onclick="this.style.display='none'; Codehighlighter1_190_260_Open_Text.style.display='none'; Codehighlighter1_190_260_Closed_Image.style.display='inline'; Codehighlighter1_190_260_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_190_260_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_190_260_Closed_Text.style.display='none'; Codehighlighter1_190_260_Open_Image.style.display='inline'; Codehighlighter1_190_260_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align="top" /></span><span style="COLOR: #000000">    form.submit </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">function</span><span style="COLOR: #000000"> ()</span><span id="Codehighlighter1_190_260_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.blogjava.net/images/dot.gif" /></span><span id="Codehighlighter1_190_260_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />            </span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">提交前做的操作..</span><span style="COLOR: #008000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="COLOR: #000000">                </span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">掉原函数来提交</span><span style="COLOR: #008000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="COLOR: #000000">        form.oldSubmit();<br /><img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />    }</span></span><span style="COLOR: #000000"> <br /><img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span></span></div><br />上面的代码在页面载入时先执行就会实现拦截，对显示的用submit按钮来提交的可以监控onsubmit事件来实现，这个方法很多没什么太大问题。<img src ="http://www.blogjava.net/yaoleiyu/aggbug/89636.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/yaoleiyu/" target="_blank">winder</a> 2006-12-23 10:37 <a href="http://www.blogjava.net/yaoleiyu/archive/2006/12/23/89636.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>计时跳转页面代码</title><link>http://www.blogjava.net/yaoleiyu/archive/2006/11/28/84062.html</link><dc:creator>winder</dc:creator><author>winder</author><pubDate>Tue, 28 Nov 2006 07:15:00 GMT</pubDate><guid>http://www.blogjava.net/yaoleiyu/archive/2006/11/28/84062.html</guid><wfw:comment>http://www.blogjava.net/yaoleiyu/comments/84062.html</wfw:comment><comments>http://www.blogjava.net/yaoleiyu/archive/2006/11/28/84062.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/yaoleiyu/comments/commentRss/84062.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/yaoleiyu/services/trackbacks/84062.html</trackback:ping><description><![CDATA[
		<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee">
				<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				<span style="COLOR: #0000ff">&lt;!</span>
				<span style="COLOR: #ff00ff">DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #0000ff">&lt;</span>
				<span style="COLOR: #800000">html</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #0000ff">&lt;</span>
				<span style="COLOR: #800000">head</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #0000ff">&lt;</span>
				<span style="COLOR: #800000">meta </span>
				<span style="COLOR: #ff0000">http-equiv</span>
				<span style="COLOR: #0000ff">="Content-Type"</span>
				<span style="COLOR: #ff0000"> content</span>
				<span style="COLOR: #0000ff">="text/html; charset=gb2312"</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #0000ff">&lt;</span>
				<span style="COLOR: #800000">title</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">计时跳转</span>
				<span style="COLOR: #0000ff">&lt;/</span>
				<span style="COLOR: #800000">title</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #0000ff">&lt;/</span>
				<span style="COLOR: #800000">head</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #0000ff">&lt;</span>
				<span style="COLOR: #800000">body </span>
				<span style="COLOR: #ff0000">leftmargin</span>
				<span style="COLOR: #0000ff">="0"</span>
				<span style="COLOR: #ff0000"> topmargin</span>
				<span style="COLOR: #0000ff">="0"</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #0000ff">&lt;</span>
				<span style="COLOR: #800000">table </span>
				<span style="COLOR: #ff0000">border</span>
				<span style="COLOR: #0000ff">="0"</span>
				<span style="COLOR: #ff0000"> align</span>
				<span style="COLOR: #0000ff">="center"</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #0000ff">&lt;</span>
				<span style="COLOR: #800000">tr</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #0000ff">&lt;</span>
				<span style="COLOR: #800000">td</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #0000ff">&lt;</span>
				<span style="COLOR: #800000">br</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #0000ff">&lt;</span>
				<span style="COLOR: #800000">table </span>
				<span style="COLOR: #ff0000">width</span>
				<span style="COLOR: #0000ff">="194"</span>
				<span style="COLOR: #ff0000"> height</span>
				<span style="COLOR: #0000ff">="113"</span>
				<span style="COLOR: #ff0000"> border</span>
				<span style="COLOR: #0000ff">="0"</span>
				<span style="COLOR: #ff0000"> cellpadding</span>
				<span style="COLOR: #0000ff">="0"</span>
				<span style="COLOR: #ff0000"> cellspacing</span>
				<span style="COLOR: #0000ff">="0"</span>
				<span style="COLOR: #ff0000"> </span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />  </span>
				<span style="COLOR: #0000ff">&lt;</span>
				<span style="COLOR: #800000">tr</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    </span>
				<span style="COLOR: #0000ff">&lt;</span>
				<span style="COLOR: #800000">td</span>
				<span style="COLOR: #0000ff">&gt;&lt;</span>
				<span style="COLOR: #800000">a </span>
				<span style="COLOR: #ff0000">href</span>
				<span style="COLOR: #0000ff">="#"</span>
				<span style="COLOR: #0000ff">&gt;&lt;</span>
				<span style="COLOR: #800000">img </span>
				<span style="COLOR: #ff0000">src</span>
				<span style="COLOR: #0000ff">="images/ydzj.jpg"</span>
				<span style="COLOR: #ff0000"> width</span>
				<span style="COLOR: #0000ff">="397"</span>
				<span style="COLOR: #ff0000"> height</span>
				<span style="COLOR: #0000ff">="265"</span>
				<span style="COLOR: #ff0000"> border</span>
				<span style="COLOR: #0000ff">="0"</span>
				<span style="COLOR: #0000ff">&gt;&lt;/</span>
				<span style="COLOR: #800000">a</span>
				<span style="COLOR: #0000ff">&gt;&lt;/</span>
				<span style="COLOR: #800000">td</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />  </span>
				<span style="COLOR: #0000ff">&lt;/</span>
				<span style="COLOR: #800000">tr</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />  </span>
				<span style="COLOR: #0000ff">&lt;</span>
				<span style="COLOR: #800000">tr</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    </span>
				<span style="COLOR: #0000ff">&lt;</span>
				<span style="COLOR: #800000">td </span>
				<span style="COLOR: #ff0000">align</span>
				<span style="COLOR: #0000ff">="center"</span>
				<span style="COLOR: #0000ff">&gt;&lt;</span>
				<span style="COLOR: #800000">div </span>
				<span style="COLOR: #ff0000">id</span>
				<span style="COLOR: #0000ff">="view"</span>
				<span style="COLOR: #0000ff">&gt;&lt;/</span>
				<span style="COLOR: #800000">div</span>
				<span style="COLOR: #0000ff">&gt;&lt;/</span>
				<span style="COLOR: #800000">td</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img id="Codehighlighter1_513_898_Open_Image" onclick="this.style.display='none'; Codehighlighter1_513_898_Open_Text.style.display='none'; Codehighlighter1_513_898_Closed_Image.style.display='inline'; Codehighlighter1_513_898_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" />
						<img id="Codehighlighter1_513_898_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_513_898_Closed_Text.style.display='none'; Codehighlighter1_513_898_Open_Image.style.display='inline'; Codehighlighter1_513_898_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedBlock.gif" align="top" />        </span>
				<span style="COLOR: #0000ff">&lt;</span>
				<span style="COLOR: #800000">script</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span id="Codehighlighter1_513_898_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
						<img src="http://www.blogjava.net/images/dot.gif" />
				</span>
				<span id="Codehighlighter1_513_898_Open_Text">
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">
								<br />
								<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />            </span>
						<span style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">var</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> time </span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> </span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">5000</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">;<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />            </span>
						<span style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">var</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> cc </span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> time</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">/</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">1000</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">;<br /><img id="Codehighlighter1_576_835_Open_Image" onclick="this.style.display='none'; Codehighlighter1_576_835_Open_Text.style.display='none'; Codehighlighter1_576_835_Closed_Image.style.display='inline'; Codehighlighter1_576_835_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_576_835_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_576_835_Closed_Text.style.display='none'; Codehighlighter1_576_835_Open_Image.style.display='inline'; Codehighlighter1_576_835_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />            </span>
						<span style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">function</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> count()</span>
						<span id="Codehighlighter1_576_835_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
								<img src="http://www.blogjava.net/images/dot.gif" />
						</span>
						<span id="Codehighlighter1_576_835_Open_Text">
								<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">{<br /><img id="Codehighlighter1_593_799_Open_Image" onclick="this.style.display='none'; Codehighlighter1_593_799_Open_Text.style.display='none'; Codehighlighter1_593_799_Closed_Image.style.display='inline'; Codehighlighter1_593_799_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_593_799_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_593_799_Closed_Text.style.display='none'; Codehighlighter1_593_799_Open_Image.style.display='inline'; Codehighlighter1_593_799_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />                </span>
								<span style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">if</span>
								<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">(cc </span>
								<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&gt;</span>
								<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> </span>
								<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">-</span>
								<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">1</span>
								<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">)</span>
								<span id="Codehighlighter1_593_799_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
										<img src="http://www.blogjava.net/images/dot.gif" />
								</span>
								<span id="Codehighlighter1_593_799_Open_Text">
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">{<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />                    </span>
										<span style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">var</span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> vv </span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> document.getElementById('view');<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />                    vv.innerHTML </span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> '</span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&lt;</span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">font color</span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">#0066ff</span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> size</span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">2</span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&gt;&lt;</span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">font color</span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">red</span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&gt;</span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">'</span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">+</span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">cc</span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">+</span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">'</span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&lt;/</span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">font</span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&gt;</span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">秒后进入新页面<img src="http://www.blogjava.net/images/dot.gif" /></span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&lt;/</span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">font</span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&gt;</span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">';<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />                    cc</span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">--</span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">;<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />                    setTimeout(</span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">count()</span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">,</span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">1000</span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">);</span>
										<span style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5">//</span>
										<span style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5">1秒延时</span>
										<span style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5">
												<br />
												<img id="Codehighlighter1_804_830_Open_Image" onclick="this.style.display='none'; Codehighlighter1_804_830_Open_Text.style.display='none'; Codehighlighter1_804_830_Closed_Image.style.display='inline'; Codehighlighter1_804_830_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" />
												<img id="Codehighlighter1_804_830_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_804_830_Closed_Text.style.display='none'; Codehighlighter1_804_830_Open_Image.style.display='inline'; Codehighlighter1_804_830_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />
										</span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">                }</span>
								</span>
								<span style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">else</span>
								<span id="Codehighlighter1_804_830_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
										<img src="http://www.blogjava.net/images/dot.gif" />
								</span>
								<span id="Codehighlighter1_804_830_Open_Text">
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">{<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />                    goto();</span>
										<span style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5">//</span>
										<span style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5">进入新页面</span>
										<span style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5">
												<br />
												<img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />
										</span>
										<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">                }</span>
								</span>
								<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">
										<br />
										<img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />            }</span>
						</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">
								<br />
								<img id="Codehighlighter1_855_883_Open_Image" onclick="this.style.display='none'; Codehighlighter1_855_883_Open_Text.style.display='none'; Codehighlighter1_855_883_Closed_Image.style.display='inline'; Codehighlighter1_855_883_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" />
								<img id="Codehighlighter1_855_883_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_855_883_Closed_Text.style.display='none'; Codehighlighter1_855_883_Open_Image.style.display='inline'; Codehighlighter1_855_883_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />            </span>
						<span style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">function</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> goto()</span>
						<span id="Codehighlighter1_855_883_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
								<img src="http://www.blogjava.net/images/dot.gif" />
						</span>
						<span id="Codehighlighter1_855_883_Open_Text">
								<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">{<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />                location.href</span>
								<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</span>
								<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">'#';<br /><img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />            }</span>
						</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">
								<br />
								<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />            count();<br /><img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />        </span>
				</span>
				<span style="COLOR: #0000ff">&lt;/</span>
				<span style="COLOR: #800000">script</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />  </span>
				<span style="COLOR: #0000ff">&lt;/</span>
				<span style="COLOR: #800000">tr</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #0000ff">&lt;/</span>
				<span style="COLOR: #800000">table</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #0000ff">&lt;/</span>
				<span style="COLOR: #800000">td</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #0000ff">&lt;/</span>
				<span style="COLOR: #800000">tr</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #0000ff">&lt;/</span>
				<span style="COLOR: #800000">table</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #0000ff">&lt;/</span>
				<span style="COLOR: #800000">body</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #0000ff">&lt;/</span>
				<span style="COLOR: #800000">html</span>
				<span style="COLOR: #0000ff">&gt;</span>
		</div>
<img src ="http://www.blogjava.net/yaoleiyu/aggbug/84062.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/yaoleiyu/" target="_blank">winder</a> 2006-11-28 15:15 <a href="http://www.blogjava.net/yaoleiyu/archive/2006/11/28/84062.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>