<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>评论：input标签获取焦点时文本框内提示信息清空</title>
	<atom:link href="http://www.gengbing.com/aboutme/show-1492-1.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.gengbing.com/aboutme/show-1492-1.html</link>
	<description>逍遥老鬼最近和魔兽世界一起远征，找我的话请去六区桑德兰服务器，记得阵营是部落的。</description>
	<lastBuildDate>Mon, 08 Mar 2010 09:18:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>来自：逍遥老鬼</title>
		<link>http://www.gengbing.com/aboutme/show-1492-1.html/comment-page-1#comment-3279</link>
		<dc:creator>逍遥老鬼</dc:creator>
		<pubDate>Tue, 06 Jan 2009 02:04:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.gengbing.com/aboutme/?p=1492#comment-3279</guid>
		<description>去看看第二篇关于这个的。</description>
		<content:encoded><![CDATA[<p>去看看第二篇关于这个的。</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：birder</title>
		<link>http://www.gengbing.com/aboutme/show-1492-1.html/comment-page-1#comment-3278</link>
		<dc:creator>birder</dc:creator>
		<pubDate>Tue, 06 Jan 2009 01:31:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.gengbing.com/aboutme/?p=1492#comment-3278</guid>
		<description>多谢老鬼,留个记号</description>
		<content:encoded><![CDATA[<p>多谢老鬼,留个记号</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：逍遥老鬼</title>
		<link>http://www.gengbing.com/aboutme/show-1492-1.html/comment-page-1#comment-3277</link>
		<dc:creator>逍遥老鬼</dc:creator>
		<pubDate>Mon, 05 Jan 2009 23:10:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.gengbing.com/aboutme/?p=1492#comment-3277</guid>
		<description>你可以直接发我qq上面……</description>
		<content:encoded><![CDATA[<p>你可以直接发我qq上面……</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：张经纬</title>
		<link>http://www.gengbing.com/aboutme/show-1492-1.html/comment-page-1#comment-3275</link>
		<dc:creator>张经纬</dc:creator>
		<pubDate>Mon, 05 Jan 2009 14:29:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.gengbing.com/aboutme/?p=1492#comment-3275</guid>
		<description>http://www.zhangjingwei.com/archives/input-check/</description>
		<content:encoded><![CDATA[<p><a href="http://www.zhangjingwei.com/archives/input-check/" rel="nofollow">http://www.zhangjingwei.com/archives/input-check/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：input标签获取焦点是文本框内提示信息清空- 张经纬的博客</title>
		<link>http://www.gengbing.com/aboutme/show-1492-1.html/comment-page-1#comment-3274</link>
		<dc:creator>input标签获取焦点是文本框内提示信息清空- 张经纬的博客</dc:creator>
		<pubDate>Mon, 05 Jan 2009 14:28:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.gengbing.com/aboutme/?p=1492#comment-3274</guid>
		<description>[...] 看到朋友逍遥老鬼说到了这个地方，就顺带着写了一段给他。 [-]?View Code XHTML&lt; !DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt; &lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt; &lt;head&gt; &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html charset=utf-8&quot; /&gt; &lt;title&gt;无标题文档&lt;/title&gt; &lt;script type=&quot;text/javascript&quot;&gt; function addLoadEvent(func){ var oldonload = window.onload if (typeof window.onload != &#039;function&#039;){ window.onload = func }else{ window.onload = function(){ oladonload() func() } } } &#160; function checkText(){ var textId = document.getElementById(&#039;test&#039;) var textDefault = &#039;请输入字符&#039; function cls(){ if (this.value == textDefault){ this.value = &#039;&#039; } } function res(){ if (this.value == &#039;&#039;){ this.value = textDefault } } textId.onfocus = cls textId.onblur = res } addLoadEvent (checkText) &lt;/script&gt; &lt;/head&gt; &#160; &lt;body&gt; &lt;input type=&quot;text&quot; value=&quot;请输入字符&quot; id=&quot;test&quot; /&gt; &lt;/body&gt; &lt;/html&gt; [...]</description>
		<content:encoded><![CDATA[<p>[...] 看到朋友逍遥老鬼说到了这个地方，就顺带着写了一段给他。 [-]?View Code XHTML&lt; !DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt; &lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt; &lt;head&gt; &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html charset=utf-8&quot; /&gt; &lt;title&gt;无标题文档&lt;/title&gt; &lt;script type=&quot;text/javascript&quot;&gt; function addLoadEvent(func){ var oldonload = window.onload if (typeof window.onload != &#8216;function&#8217;){ window.onload = func }else{ window.onload = function(){ oladonload() func() } } } &nbsp; function checkText(){ var textId = document.getElementById(&#8216;test&#8217;) var textDefault = &#8216;请输入字符&#8217; function cls(){ if (this.value == textDefault){ this.value = &#8221; } } function res(){ if (this.value == &#8221;){ this.value = textDefault } } textId.onfocus = cls textId.onblur = res } addLoadEvent (checkText) &lt;/script&gt; &lt;/head&gt; &nbsp; &lt;body&gt; &lt;input type=&quot;text&quot; value=&quot;请输入字符&quot; id=&quot;test&quot; /&gt; &lt;/body&gt; &lt;/html&gt; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：张经纬</title>
		<link>http://www.gengbing.com/aboutme/show-1492-1.html/comment-page-1#comment-3273</link>
		<dc:creator>张经纬</dc:creator>
		<pubDate>Mon, 05 Jan 2009 14:20:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.gengbing.com/aboutme/?p=1492#comment-3273</guid>
		<description>好像还是不行哦。

:(</description>
		<content:encoded><![CDATA[<p>好像还是不行哦。</p>
<p>:(</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：张经纬</title>
		<link>http://www.gengbing.com/aboutme/show-1492-1.html/comment-page-1#comment-3272</link>
		<dc:creator>张经纬</dc:creator>
		<pubDate>Mon, 05 Jan 2009 14:19:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.gengbing.com/aboutme/?p=1492#comment-3272</guid>
		<description>HTML代码在回复内无法显示。我将双引号修改为全角的了。老鬼到时候将下面这段代码的双引号替换一下。

</description>
		<content:encoded><![CDATA[<p>HTML代码在回复内无法显示。我将双引号修改为全角的了。老鬼到时候将下面这段代码的双引号替换一下。</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：张经纬</title>
		<link>http://www.gengbing.com/aboutme/show-1492-1.html/comment-page-1#comment-3271</link>
		<dc:creator>张经纬</dc:creator>
		<pubDate>Mon, 05 Jan 2009 14:18:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.gengbing.com/aboutme/?p=1492#comment-3271</guid>
		<description>&lt;code&gt;

&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p><code></p>
<p></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：张经纬</title>
		<link>http://www.gengbing.com/aboutme/show-1492-1.html/comment-page-1#comment-3270</link>
		<dc:creator>张经纬</dc:creator>
		<pubDate>Mon, 05 Jan 2009 14:18:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.gengbing.com/aboutme/?p=1492#comment-3270</guid>
		<description>好的。代码是这样的
&lt;code&gt;
function addLoadEvent(func){
	var oldonload = window.onload;
	if (typeof window.onload != &#039;function&#039;){
		window.onload = func;
	}else{
		window.onload = function(){
			oladonload();
			func();
		}
	}
}

function checkText(){
	var textId = document.getElementById(&#039;test&#039;);
	var textDefault = &#039;请输入字符&#039;;
	function cls(){
		if (this.value == textDefault){
			this.value = &#039;&#039;;
		}
	}
	function res(){
		if (this.value == &#039;&#039;){
			this.value = textDefault;
		}
	}
	textId.onfocus = cls;
	textId.onblur = res;
}
addLoadEvent (checkText);
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>好的。代码是这样的<br />
<code><br />
function addLoadEvent(func){<br />
	var oldonload = window.onload;<br />
	if (typeof window.onload != 'function'){<br />
		window.onload = func;<br />
	}else{<br />
		window.onload = function(){<br />
			oladonload();<br />
			func();<br />
		}<br />
	}<br />
}</p>
<p>function checkText(){<br />
	var textId = document.getElementById('test');<br />
	var textDefault = '请输入字符';<br />
	function cls(){<br />
		if (this.value == textDefault){<br />
			this.value = '';<br />
		}<br />
	}<br />
	function res(){<br />
		if (this.value == ''){<br />
			this.value = textDefault;<br />
		}<br />
	}<br />
	textId.onfocus = cls;<br />
	textId.onblur = res;<br />
}<br />
addLoadEvent (checkText);<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：逍遥老鬼</title>
		<link>http://www.gengbing.com/aboutme/show-1492-1.html/comment-page-1#comment-3264</link>
		<dc:creator>逍遥老鬼</dc:creator>
		<pubDate>Mon, 05 Jan 2009 01:57:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.gengbing.com/aboutme/?p=1492#comment-3264</guid>
		<description>给一段完整的代码看看，我对js一窍不通……</description>
		<content:encoded><![CDATA[<p>给一段完整的代码看看，我对js一窍不通……</p>
]]></content:encoded>
	</item>
</channel>
</rss>
