<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[kakapo's nest]]></title> 
<link>http://www.kakapo.cn/blog/index.php</link> 
<description><![CDATA[My Technical Knowledge Management System]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[kakapo's nest]]></copyright>
<item>
<link>http://www.kakapo.cn/blog/read.php?167</link>
<title><![CDATA[标签云介绍]]></title> 
<author>kakapo &lt;kakapowu@gmail.com&gt;</author>
<category><![CDATA[Javascript]]></category>
<pubDate>Fri, 23 Jul 2010 08:42:24 +0000</pubDate> 
<guid>http://www.kakapo.cn/blog/read.php?167</guid> 
<description>
<![CDATA[ 
	一种是flash方式：<br/><a href="http://www.kakapo.cn/blog/attachment.php?fid=14" target="_blank"><img src="http://www.kakapo.cn/blog/attachment.php?fid=14" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/>官网：http://www.roytanck.com/2008/05/19/how-to-repurpose-my-tag-cloud-flash-movie/<br/><br/>目前的官方版本对多字节,unicode的支持不行，比如中文无法显示。<br/><br/>不过效果是很好的，在wordpress是很出名的plugin。<br/><br/>google找了一个破解版本支持了中文，在附件会提供下载<a href="attachment.php?fid=19">点击这里下载文件</a><br/><br/>一种是javascript方式：<br/><a href="http://www.kakapo.cn/blog/attachment.php?fid=15" target="_blank"><img src="http://www.kakapo.cn/blog/attachment.php?fid=15" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/>官网：http://jeroenvanwarmerdam.nl/content/resources/javascript/jscumulus/jscumulus.aspx<br/>官方的版本效果差点，如example :http://jeroenvanwarmerdam.nl/content/resources/javascript/jscumulus/js-cumulus.html<br/><br/>我研究使用了一下，加了一下overflow；<br/><a href="attachment.php?fid=13">点击这里下载文件</a><br/><br/><br/>Tags - <a href="http://www.kakapo.cn/blog/tag.php?tag=tag" rel="tag">tag</a> , <a href="http://www.kakapo.cn/blog/tag.php?tag=%25E6%25A0%2587%25E7%25AD%25BE" rel="tag">标签</a> , <a href="http://www.kakapo.cn/blog/tag.php?tag=%25E4%25BA%2591" rel="tag">云</a>
]]>
</description>
</item><item>
<link>http://www.kakapo.cn/blog/read.php?133</link>
<title><![CDATA[[转]关于javascript控制Windows Media Player ]]></title> 
<author>kakapo &lt;kakapowu@gmail.com&gt;</author>
<category><![CDATA[Javascript]]></category>
<pubDate>Tue, 29 Jan 2008 06:46:45 +0000</pubDate> 
<guid>http://www.kakapo.cn/blog/read.php?133</guid> 
<description>
<![CDATA[ 
	<div class="code"><br/>&lt;object classid=&quot;clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6&quot; id=&quot;wmp&quot; &gt;<br/>&lt;param name=&quot;URL&quot; value=&quot;&quot; /&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //媒体文件地址<br/>&lt;param name=&quot;rate&quot; value=&quot;1&quot; /&gt;<br/>&lt;param name=&quot;balance&quot; value=&quot;0&quot; /&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//声道0全声道,-100左声道,100右声道<br/>&lt;param name=&quot;currentPosition&quot; value=&quot;0&quot; /&gt;<br/>&lt;param name=&quot;playCount&quot; value=&quot;1&quot; /&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//播放次数<br/>&lt;param name=&quot;autoStart&quot; value=&quot;-1&quot; /&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//是否自动播放-1是,0否<br/>&lt;param name=&quot;currentMarker&quot; value=&quot;0&quot; /&gt;<br/>&lt;param name=&quot;invokeURLs&quot; value=&quot;-1&quot; /&gt;<br/>&lt;param name=&quot;volume&quot; value=&quot;50&quot; /&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//音量<br/>&lt;param name=&quot;mute&quot; value=&quot;0&quot; /&gt;&#039;); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//是否静音-1是,0否<br/>&lt;param name=&quot;uiMode&quot; value=&quot;none&quot; /&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //播放器模式full(默认)显示全部控件,none仅视频窗口,mini视频及一些常用控件,invisiblei不显示任何控件及视频窗口<br/>&lt;param name=&quot;stretchToFit&quot; value=&quot;0&quot; /&gt;<br/>&lt;param name=&quot;windowlessVideo&quot; value=&quot;0&quot; /&gt;<br/>&lt;param name=&quot;enabled&quot; value=&quot;-1&quot; /&gt;&#039;);<br/>&lt;param name=&quot;enableContextMenu&quot; value=&quot;-1&quot; /&gt;<br/>&lt;param name=&quot;fullScreen&quot; value=&quot;0&quot; /&gt;&#039;); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//是否全屏<br/>&lt;param name=&quot;enableErrorDialogs&quot; value=&quot;-1&quot; /&gt;//是否允许出错信息提示<br/>&lt;/object&gt;<br/></div><br/>JavaScript操作函数(wmp为播放机ID,注意区分大小写)<br/><br/>wmp.URL="" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //播放媒体地址<br/>wmp.controls.play() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //开始播放<br/>wmp.controls.stop() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //停止播放<br/>wmp.controls.pause() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //暂停播放<br/>wmp.settings.mute=true &#124; false &nbsp; &nbsp;//控制是否静音<br/>wmp.fullScreen=true &#124; false &nbsp; &nbsp; &nbsp; &nbsp; //控制是否全屏<br/><br/>获取播放机状态<br/><br/>wmp.playState &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //播放机状态,共有1－10个状态,具体如下<br/><br/>wmp.playState==1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //停止播放<br/>wmp.playState==2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //暂停播放<br/>wmp.playState==3 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //正常播放<br/>wmp.playState==4 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //向前搜索<br/>wmp.playState==5 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //向后搜索<br/>wmp.playState==6 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //缓冲处理<br/>wmp.playState==7 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //等待反应<br/>wmp.playState==8 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //播放完毕<br/>wmp.playState==9 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //连接媒体<br/>wmp.playState==10 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //准备就绪<br/><br/>wmp.controls.currentPositionString &nbsp; &nbsp; //取得媒体当前位置,以形如 06:01 的时间形式显示<br/>wmp.controls.currentPosition &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//取得媒体当前位置,以形如 300.001 的秒数形式显示,精确到毫秒<br/>wmp.currentMedia.durationString &nbsp; &nbsp; &nbsp; //取得媒体总长度,以形如 06:01 的时间形式显示<br/>wmp.currentMedia.duration &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//取得媒体总长度,以形如 300.001 的秒数形式显示,精确到毫秒<br/><br/>转自 <br/>http://www.cnblogs.com/tt03030576/archive/2007/07/16/819334.html
]]>
</description>
</item><item>
<link>http://www.kakapo.cn/blog/read.php?114</link>
<title><![CDATA[javascript 技巧集 （ZT）]]></title> 
<author>kakapo &lt;kakapowu@gmail.com&gt;</author>
<category><![CDATA[Javascript]]></category>
<pubDate>Thu, 09 Aug 2007 03:43:43 +0000</pubDate> 
<guid>http://www.kakapo.cn/blog/read.php?114</guid> 
<description>
<![CDATA[ 
	事件源对象 <br/>event.srcElement.tagName <br/>event.srcElement.type <br/>捕获释放 <br/>event.srcElement.setCapture(); &nbsp;<br/>event.srcElement.releaseCapture(); &nbsp;<br/>事件按键 <br/>event.keyCode <br/>event.shiftKey <br/>event.altKey <br/>event.ctrlKey <br/>事件返回值 <br/>event.returnValue <br/>鼠标位置 <br/>event.x <br/>event.y <br/>窗体活动元素 <br/>document.activeElement <br/>绑定事件 <br/>document.captureEvents(Event.KEYDOWN); <br/>访问窗体元素 <br/>document.all("txt").focus(); <br/>document.all("txt").select(); <br/>窗体命令 <br/>document.execCommand <br/>窗体COOKIE <br/>document.cookie <br/>菜单事件 <br/>document.oncontextmenu <br/>创建元素 <br/>document.createElement("SPAN"); &nbsp;<br/>根据鼠标获得元素： <br/>document.elementFromPoint(event.x,event.y).tagName=="TD <br/>document.elementFromPoint(event.x,event.y).appendChild(ms) &nbsp;<br/>窗体图片 <br/>document.images[索引] <br/>窗体事件绑定 <br/>document.onmousedown=scrollwindow; <br/>元素 <br/>document.窗体.elements[索引] <br/>对象绑定事件 <br/>document.all.xxx.detachEvent('onclick',a); <br/>插件数目 <br/>navigator.plugins <br/>取变量类型 <br/>typeof($js_libpath) == "undefined" <br/>下拉框 <br/>下拉框.options[索引] <br/>下拉框.options.length <br/>查找对象 <br/>document.getElementsByName("r1"); <br/>document.getElementById(id); <br/>定时 <br/>timer=setInterval('scrollwindow()',delay); <br/>clearInterval(timer); <br/>UNCODE编码 <br/>escape() ,unescape <br/>父对象 <br/>obj.parentElement(dhtml) <br/>obj.parentNode(dom) <br/>交换表的行 <br/>TableID.moveRow(2,1) <br/>替换CSS <br/>document.all.csss.href = "a.css"; <br/>并排显示 <br/>display:inline <br/>隐藏焦点 <br/>hidefocus=true <br/>根据宽度换行 <br/>style="word-break:break-all" <br/>自动刷新 <br/><div class="code"><br/>&lt;meta HTTP-EQUIV=&quot;refresh&quot; CONTENT=&quot;8;URL=http://www.kakapo.cn&quot;&gt; <br/></div><br/>简单邮件 <br/><a &nbsp;href="mailto:aaa@bbb.com?subject=ccc&body=xxxyyy"> &nbsp;<br/>快速转到位置 <br/>obj.scrollIntoView(true) <br/>锚 <br/><a name="first"> <br/><a href="#first">anchors</a> <br/>网页传递参数 <br/>location.search(); <br/>可编辑 <br/>obj.contenteditable=true <br/>执行菜单命令 <br/>obj.execCommand <br/>双字节字符 <br/>/[^&#92;x00-&#92;xff]/ <br/>汉字 <br/>/[&#92;u4e00-&#92;u9fa5]/ <br/>让英文字符串超出表格宽度自动换行 <br/>word-wrap: break-word; word-break: break-all; <br/>透明背景 <br/><div class="code"><br/>&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt; <br/></div><br/>获得style内容 <br/>obj.style.cssText <br/>HTML标签 <br/>document.documentElement.innerHTML <br/>第一个style标签 <br/>document.styleSheets[0] <br/>style标签里的第一个样式 <br/>document.styleSheets[0].rules[0] <br/>防止点击空链接时，页面往往重置到页首端。 <br/><a href="javascript:function()">word</a> <br/>上一网页源 <br/>asp: <br/>request.servervariables("HTTP_REFERER") <br/>javascript: <br/>document.referrer <br/>释放内存 <br/>CollectGarbage(); <br/>禁止右键 <br/>document.oncontextmenu = function() &#123; return false;&#125; <br/>禁止保存 <br/><noscript><iframe src="*.htm"></iframe></noscript> <br/>禁止选取<body oncontextmenu="return false" ondragstart="return false" onselectstart ="return false" onselect="document.selection.empty()" oncopy="document.selection.empty()" onbeforecopy="return false"onmouseup="document.selection.empty()> &nbsp;<br/>禁止粘贴 <br/><input type=text onpaste="return false"> <br/>地址栏图标 <br/><link rel="Shortcut Icon" href="favicon.ico"> <br/>favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下 <br/>收藏栏图标 <br/><link rel="Bookmark" href="favicon.ico"> <br/>查看源码 <br/><input type=button value=查看网页源代码 onclick="window.location = 'view-source:'+ 'http://www.csdn.net/'"> <br/>关闭输入法 <br/><input style="ime-mode:disabled"> <br/>自动全选 <br/><input type=text name=text1 value="123" onfocus="this.select()"> <br/><br/>title换行 <br/>obj.title = "123&#13sdfs&#32" <br/>获得时间所代表的微秒 <br/>var n1 = new Date("2004-10-10".replace(/-/g, "&#92;/")).getTime() <br/>窗口是否关闭 <br/>win.closed <br/>checkbox扁平 <br/><input type=checkbox style="position: absolute; clip:rect(5px 15px 15px 5px)"><br/> <br/>获取选中内容 <br/>document.selection.createRange().duplicate().text <br/> &nbsp;<br/>窗口最大化 <br/><div class="code"><br/>&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt; <br/></div><br/>无关闭按钮IE <br/>window.open("aa.htm", "meizz", "fullscreen=7"); <br/>统一编码/解码 <br/>alert(decodeURIComponent(encodeURIComponent("http://你好.com?as= hehe"))) <br/>encodeURIComponent对":"、"/"、";" 和 "?"也编码 <br/><br/><br/><br/><br/><br/><br/>参考资料<br/><br/>http://www.cnblogs.com/seagate_cn/archive/2005/04/21/142825.html<br/>Tags - <a href="http://www.kakapo.cn/blog/tag.php?tag=javascript" rel="tag">javascript</a> , <a href="http://www.kakapo.cn/blog/tag.php?tag=%25E6%258A%2580%25E5%25B7%25A7" rel="tag">技巧</a>
]]>
</description>
</item><item>
<link>http://www.kakapo.cn/blog/read.php?87</link>
<title><![CDATA[如何将图片复制到剪贴版？]]></title> 
<author>kakapo &lt;kakapowu@gmail.com&gt;</author>
<category><![CDATA[Javascript]]></category>
<pubDate>Wed, 21 Mar 2007 14:36:48 +0000</pubDate> 
<guid>http://www.kakapo.cn/blog/read.php?87</guid> 
<description>
<![CDATA[ 
	<div class="code"><br/><br/>// 复制图片到剪贴版<br/>function CopyImage(img)<br/>&#123;<br/> &nbsp;if (img.tagName != &#039;IMG&#039;) return;<br/> &nbsp;if (typeof img.contentEditable == &#039;undefined&#039;) return;<br/> &nbsp;if (!document.body.createControlRange) return;<br/> &nbsp;var ctrl = document.body.createControlRange();<br/> &nbsp;img.contentEditable = true;<br/> &nbsp;ctrl.addElement(img);<br/> &nbsp;ctrl.execCommand(&#039;Copy&#039;);<br/> &nbsp;img.contentEditable = false;<br/> &nbsp;alert(&#039;复制完成，到QQ对话框里按Ctrl-V就可以啦！&#039;);<br/>&#125;<br/><br/></div><br/>彩字绣网站：<br/>http://www.czxiu.com/index.php?t=%E7%BB%8F%E5%85%B8
]]>
</description>
</item><item>
<link>http://www.kakapo.cn/blog/read.php?77</link>
<title><![CDATA[如何取得radio的值]]></title> 
<author>kakapo &lt;kakapowu@gmail.com&gt;</author>
<category><![CDATA[Javascript]]></category>
<pubDate>Tue, 27 Feb 2007 02:51:02 +0000</pubDate> 
<guid>http://www.kakapo.cn/blog/read.php?77</guid> 
<description>
<![CDATA[ 
	<div class="code"><br/><br/>function getRadioValue(radio)&#123;<br/>&nbsp;&nbsp;var RadioValue=&#039;&#039;;<br/>&nbsp;&nbsp;for(i=0,len=radio.length;i&lt;len;i++)&#123;<br/>&nbsp;&nbsp; &nbsp; &nbsp;if(radio&#91;i&#93;.checked)&#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RadioValue = radio&#91;i&#93;.value<br/>&nbsp;&nbsp; &nbsp; &nbsp;&#125;<br/> &nbsp; &nbsp;&#125;<br/> &nbsp; &nbsp;return RadioValue;<br/>&#125;<br/><br/></div><br/>Tags - <a href="http://www.kakapo.cn/blog/tag.php?tag=radio" rel="tag">radio</a> , <a href="http://www.kakapo.cn/blog/tag.php?tag=input" rel="tag">input</a>
]]>
</description>
</item><item>
<link>http://www.kakapo.cn/blog/read.php?26</link>
<title><![CDATA[用javascript动态创建并提交表单form，表格table]]></title> 
<author>kakapo &lt;kakapowu@gmail.com&gt;</author>
<category><![CDATA[Javascript]]></category>
<pubDate>Mon, 23 Oct 2006 09:34:43 +0000</pubDate> 
<guid>http://www.kakapo.cn/blog/read.php?26</guid> 
<description>
<![CDATA[ 
	通过在html触发动作，提交一个表单。代码如下：<br/><br/><div class="code"><br/><br/>&lt;script&gt;<br/><br/>//helper function to create the form<br/>function getNewSubmitForm()&#123;<br/> &nbsp;var submitForm = document.createElement(&quot;FORM&quot;);<br/> &nbsp;document.body.appendChild(submitForm);<br/> &nbsp;submitForm.method = &quot;POST&quot;;<br/> &nbsp;return submitForm;<br/>&#125;<br/><br/>//helper function to add elements to the form<br/>function createNewFormElement(inputForm, elementName, elementValue)&#123;<br/> &nbsp;var newElement = document.createElement(&quot;&lt;input name=&#039;&quot;+elementName+&quot;&#039; type=&#039;hidden&#039;&gt;&quot;);<br/> &nbsp;inputForm.appendChild(newElement);<br/> &nbsp;newElement.value = elementValue;<br/> &nbsp;return newElement;<br/>&#125;<br/><br/>//function that creates the form, adds some elements<br/>//and then submits it<br/>function createFormAndSubmit()&#123;<br/> &nbsp;var submitForm = getNewSubmitForm();<br/> &nbsp;createNewFormElement(submitForm, &quot;field1&quot;, &quot;somevalue&quot;);<br/> &nbsp;createNewFormElement(submitForm, &quot;field2&quot;, &quot;somevalue&quot;);<br/> &nbsp;submitForm.action= &quot;someURL&quot;;<br/> &nbsp;submitForm.submit();<br/>&#125;<br/>&lt;/script&gt;<br/><br/>&lt;input type=&quot;button&quot; value=&quot;Click to create form and submit&quot; onclick=&quot;createFormAndSubmit()&quot;&gt;<br/><br/></div><br/><br/><br/><br/><br/><br/><br/>动态创建表格<br/><br/><br/><div class="code"><br/>&lt;html&gt;<br/>&lt;head&gt;<br/>&lt;title&gt;Sample code - Traversing an HTML Table with JavaScript and DOM Interfaces&lt;/title&gt;<br/>&lt;script&gt;<br/> &nbsp; &nbsp;function start() &#123;<br/> &nbsp; &nbsp; &nbsp; &nbsp;// get the reference for the body<br/> &nbsp; &nbsp; &nbsp; &nbsp;var mybody = document.getElementsByTagName(&quot;body&quot;)&#91;0&#93;;<br/><br/> &nbsp; &nbsp; &nbsp; &nbsp;// creates a &lt;table&gt; element and a &lt;tbody&gt; element<br/> &nbsp; &nbsp; &nbsp; &nbsp;mytable &nbsp; &nbsp; = document.createElement(&quot;table&quot;);<br/> &nbsp; &nbsp; &nbsp; &nbsp;mytablebody = document.createElement(&quot;tbody&quot;);<br/><br/> &nbsp; &nbsp; &nbsp; &nbsp;// creating all cells<br/> &nbsp; &nbsp; &nbsp; &nbsp;for(var j = 0; j &lt; 2; j++) &#123;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// creates a &lt;tr&gt; element<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;mycurrent_row = document.createElement(&quot;tr&quot;);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for(var i = 0; i &lt; 2; i++) &#123;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// creates a &lt;td&gt; element<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;mycurrent_cell = document.createElement(&quot;td&quot;);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// creates a text node<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;currenttext = document.createTextNode(&quot;cell is row &quot;+j+&quot;, column &quot;+i);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// appends the text node we created into the cell &lt;td&gt;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;mycurrent_cell.appendChild(currenttext);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// appends the cell &lt;td&gt; into the row &lt;tr&gt;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;mycurrent_row.appendChild(mycurrent_cell);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#125;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// appends the row &lt;tr&gt; into &lt;tbody&gt;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;mytablebody.appendChild(mycurrent_row);<br/> &nbsp; &nbsp; &nbsp; &nbsp;&#125;<br/> &nbsp; &nbsp; &nbsp; &nbsp;// appends &lt;tbody&gt; into &lt;table&gt;<br/> &nbsp; &nbsp; &nbsp; &nbsp;mytable.appendChild(mytablebody);<br/> &nbsp; &nbsp; &nbsp; &nbsp;// appends &lt;table&gt; into &lt;body&gt;<br/> &nbsp; &nbsp; &nbsp; &nbsp;mybody.appendChild(mytable);<br/> &nbsp; &nbsp; &nbsp; &nbsp;// sets the border attribute of mytable to 2;<br/> &nbsp; &nbsp; &nbsp; &nbsp;mytable.setAttribute(&quot;border&quot;, &quot;2&quot;);<br/> &nbsp; &nbsp;&#125;<br/>&lt;/script&gt;<br/>&lt;/head&gt;<br/>&lt;body onload=&quot;start()&quot;&gt;<br/>&lt;/body&gt;<br/>&lt;/html&gt;<br/><br/></div><br/>Tags - <a href="http://www.kakapo.cn/blog/tag.php?tag=%25E5%258A%25A8%25E6%2580%2581" rel="tag">动态</a> , <a href="http://www.kakapo.cn/blog/tag.php?tag=form" rel="tag">form</a> , <a href="http://www.kakapo.cn/blog/tag.php?tag=table" rel="tag">table</a>
]]>
</description>
</item>
</channel>
</rss>