<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[后茶园时代]]></title> 
<link>http://www.52myshow.com/blog/index.php</link> 
<description><![CDATA[博客]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[后茶园时代]]></copyright>
<item>
<link>http://www.52myshow.com/blog/read.php?30</link>
<title><![CDATA[在一个DIV里面切换内容]]></title> 
<author>admin &lt;admin@yourname.com&gt;</author>
<category><![CDATA[JavaScript]]></category>
<pubDate>Fri, 7 Aug 2009 08:46:26 +0000</pubDate> 
<guid>http://www.52myshow.com/blog/read.php?30</guid> 
<description>
<![CDATA[ 
	一个Javascript节点操作的例子：在一个DIV里面切换内容<br/><br/>这个用到的其实是DOM节点操作，请看一个“变脸”的例子：<br/><br/><div class="code">&lt;script type=&quot;text/javascript&quot;&gt; <br/>&lt;!-- <br/>function ReplaceContent(id,contentid) { <br/>var container = document.getElementById(id); <br/>var content = document.getElementById(contentid); <br/>container.innerHTML = content.innerHTML; <br/> if (content.style.display == &quot;none&quot;){ &nbsp;&nbsp;<br/>content.style.display == &quot;block&quot;; &nbsp;&nbsp;<br/>}else{ &nbsp;&nbsp;<br/>content.style.display == &quot;none&quot;;&nbsp;&nbsp; &nbsp;&nbsp;<br/>} <br/>} <br/>//--&gt; <br/>&lt;/script&gt;</div><br/><br/><a href="http://www.52myshow.com/rbox/dom_innerhtml.html" target="_blank">演示地址</a><br/><br/><br/>Tags - <a href="tag.php?tag=javascript" rel="tag">javascript</a> , <a href="tag.php?tag=div" rel="tag">div</a>
]]>
</description>
</item>
</channel>
</rss>