﻿<?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-Skynet-随笔分类-javascript</title><link>http://www.blogjava.net/Good-Game/category/23014.html</link><description /><language>zh-cn</language><lastBuildDate>Thu, 24 Apr 2008 07:55:27 GMT</lastBuildDate><pubDate>Thu, 24 Apr 2008 07:55:27 GMT</pubDate><ttl>60</ttl><item><title> 开发 javascript  div 扩展使用</title><link>http://www.blogjava.net/Good-Game/archive/2008/04/23/195185.html</link><dc:creator>G_G</dc:creator><author>G_G</author><pubDate>Wed, 23 Apr 2008 09:41:00 GMT</pubDate><guid>http://www.blogjava.net/Good-Game/archive/2008/04/23/195185.html</guid><wfw:comment>http://www.blogjava.net/Good-Game/comments/195185.html</wfw:comment><comments>http://www.blogjava.net/Good-Game/archive/2008/04/23/195185.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/Good-Game/comments/commentRss/195185.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/Good-Game/services/trackbacks/195185.html</trackback:ping><description><![CDATA[此代码可以直接使用<br /><br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">body</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">a id</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">'pi' href</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">""</span><span style="color: rgb(0, 0, 0);"> value</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">text</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);"> text </span><span style="color: rgb(0, 0, 0);">&lt;/</span><span style="color: rgb(0, 0, 0);">a</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">div id</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">'div1'</span><span style="color: rgb(0, 0, 0);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 0);">&lt;/</span><span style="color: rgb(0, 0, 0);">body</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">script type</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">text/javascript</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);"> <br /><br /></span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);"> showByEvent(ev,divId){<br />        </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">取得各浏览器 event </span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">        ev </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> ev </span><span style="color: rgb(0, 0, 0);">||</span><span style="color: rgb(0, 0, 0);"> window.event;<br />        </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">div</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">        </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> useDiv  </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> document.getElementById(</span><span style="color: rgb(0, 0, 0);">divId</span><span style="color: rgb(0, 0, 0);">);<br />        useDiv.style.position</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">absolute</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br />            </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">( useDiv.style.left</span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 0);">""</span><span style="color: rgb(0, 0, 0);"> )useDiv.style.left </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">50</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br />            </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">( useDiv.style.top</span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 0);">""</span><span style="color: rgb(0, 0, 0);"> )useDiv.style.top </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">10</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br />            </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">( useDiv.style.zIndex</span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 0);">""</span><span style="color: rgb(0, 0, 0);"> )useDiv.style.zIndex </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">1000</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br />            </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">( useDiv.style.padding</span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 0);">""</span><span style="color: rgb(0, 0, 0);"> )useDiv.style.padding </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">0px</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br />            </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">( useDiv.style.backgroundColor</span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 0);">""</span><span style="color: rgb(0, 0, 0);"> )useDiv.style.backgroundColor </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">#FFFFCC</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br />            </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">( useDiv.style.color</span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 0);">""</span><span style="color: rgb(0, 0, 0);"> )useDiv.style.color </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">#201000</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br />            </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">( useDiv.style.fontSize</span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 0);">""</span><span style="color: rgb(0, 0, 0);"> )useDiv.style.fontSize </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">12px</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br />            </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">( useDiv.style.border</span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 0);">""</span><span style="color: rgb(0, 0, 0);"> )useDiv.style.border </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">1px   solid   #284860</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br />        <br />        </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">得到处发事件的源element</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">      </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> actionBean </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">  </span><span style="color: rgb(0, 0, 255);">null</span><span style="color: rgb(0, 0, 0);"> ;<br />        </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">(  ev.srcElement ){<br />            actionBean </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> ev.srcElement <br />        }</span><span style="color: rgb(0, 0, 255);">else</span><span style="color: rgb(0, 0, 0);">{<br />            actionBean </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> ev.target;<br />        }<br />        <br />        </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">处发事件 </span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">        useDiv.onmousemove </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);">(){<br />                useDiv.style.visibility  </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">""</span><span style="color: rgb(0, 0, 0);">;<br />        }<br />        useDiv.onmouseout </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);">(){<br />                useDiv.style.visibility  </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">hidden</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br />            <br />        }<br />        actionBean.onmouseout </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">  </span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);"> mouseOut(ev){<br />                useDiv.style.visibility  </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">hidden</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br />        }<br />        <br />        </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">div 定位</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">        useDiv.style.left </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> actionBean.offsetTop</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">15</span><span style="color: rgb(0, 0, 0);"> ;<br />    useDiv.style.top </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> actionBean.offsetLeft</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">15</span><span style="color: rgb(0, 0, 0);">;<br />    <br />        </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">返回类型为 div 显示的 x , y 和 target 处发源项 和 div</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">        </span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);"> {<br />            y:  actionBean.offsetTop</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">15</span><span style="color: rgb(0, 0, 0);">  ,<br />            x:  actionBean.offsetLeft</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">15</span><span style="color: rgb(0, 0, 0);"> ,<br />            target:actionBean,<br />            div:useDiv<br />        }<br />}<br /><br /><br /><br /></span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">事件添加</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">document.getElementById('pi').onmousemove </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);">(ev){<br />      </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> sbv </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> showByEvent(ev,</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">div1</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br />      </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> bean </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> sbv.target ;<br />    </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> dd </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> sbv.div;<br />    dd.style.visibility  </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">""</span><span style="color: rgb(0, 0, 0);">;<br />    dd.innerHTML </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&lt;a href=http://www.baidu.com&gt;删除</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">bean.value</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&lt;/a&gt;&lt;br&gt;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"><br />                                    </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&lt;a href=http://www.google.com&gt;详细 by Id </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">bean.id</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&lt;/a&gt;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br /><br />};<br /><br /></span><span style="color: rgb(0, 0, 0);">&lt;/</span><span style="color: rgb(0, 0, 0);">script</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span></div><br /><br /><br /><img src ="http://www.blogjava.net/Good-Game/aggbug/195185.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/Good-Game/" target="_blank">G_G</a> 2008-04-23 17:41 <a href="http://www.blogjava.net/Good-Game/archive/2008/04/23/195185.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>javascript 上传文件大小限定</title><link>http://www.blogjava.net/Good-Game/archive/2008/04/15/193181.html</link><dc:creator>G_G</dc:creator><author>G_G</author><pubDate>Tue, 15 Apr 2008 10:07:00 GMT</pubDate><guid>http://www.blogjava.net/Good-Game/archive/2008/04/15/193181.html</guid><wfw:comment>http://www.blogjava.net/Good-Game/comments/193181.html</wfw:comment><comments>http://www.blogjava.net/Good-Game/archive/2008/04/15/193181.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/Good-Game/comments/commentRss/193181.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/Good-Game/services/trackbacks/193181.html</trackback:ping><description><![CDATA[js 上<br /><br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 0);">限制：</span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">input type</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">text</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> size</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">4</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> value</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">10</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> name</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">fileSizeLimit</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> id</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">fileSizeLimit</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">/&gt;</span><span style="color: rgb(0, 0, 0);"> K<br /></span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">input type</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">file</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> name</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">file1</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> id</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">file1</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> size</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">40</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> onchange</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">changeSrc(this)</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">br</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">img src</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">http:</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">blog.xunuo.com/blog/images/icons/23.gif id="fileChecker" alt="test"/&gt;</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">script type</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">text/javascript</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> oFileChecker </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> document.getElementById(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">fileChecker</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br /><br /></span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);"> changeSrc(filePicker)<br />{<br />    oFileChecker.src </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> filePicker.value;<br />}<br /><br />oFileChecker.onreadystatechange </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);"> ()<br />{<br />    </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);"> (oFileChecker.readyState </span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">complete</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">)<br />    {<br />        checkSize();<br />    }<br />}<br /><br /></span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);"> checkSize()<br />{<br />    </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> limit  </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> document.getElementById(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">fileSizeLimit</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">).value </span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">1024</span><span style="color: rgb(0, 0, 0);">;<br /><br />    </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);"> (oFileChecker.fileSize </span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);"> limit)<br />    {<br />        alert(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">too large</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br />    }<br />    </span><span style="color: rgb(0, 0, 255);">else</span><span style="color: rgb(0, 0, 0);"><br />    {<br />        alert(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">ok</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br />    }<br />}<br /></span><span style="color: rgb(0, 0, 0);">&lt;/</span><span style="color: rgb(0, 0, 0);">script</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);">  </span></div><br /><br /><br />IE<br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">html</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);"> <br /></span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">input type</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">file</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> name</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">file1</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> onchange</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">ShowSize(this.value)</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);"> <br /></span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">script language</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">JavaScript</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);"> <br /></span><span style="color: rgb(0, 0, 0);">&lt;!--</span><span style="color: rgb(0, 0, 0);"> <br /></span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);"> ShowSize(files) <br />{ <br />  </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> fso,f; <br />  fso</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);"> ActiveXObject(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Scripting.FileSystemObject</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">); <br />  f</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">fso.GetFile(files); <br />  alert( (f.size</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(0, 0, 0);">1024</span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 0);">1024</span><span style="color: rgb(0, 0, 0);">))</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> Bytes</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">); <br />} <br /></span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">--&gt; </span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">&lt;/</span><span style="color: rgb(0, 0, 0);">script</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);"> <br /></span><span style="color: rgb(0, 0, 0);">&lt;/</span><span style="color: rgb(0, 0, 0);">html</span><span style="color: rgb(0, 0, 0);">&gt;</span></div><br /><img src ="http://www.blogjava.net/Good-Game/aggbug/193181.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/Good-Game/" target="_blank">G_G</a> 2008-04-15 18:07 <a href="http://www.blogjava.net/Good-Game/archive/2008/04/15/193181.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>javascript 鼠标跟随+位置显示</title><link>http://www.blogjava.net/Good-Game/archive/2008/04/15/193087.html</link><dc:creator>G_G</dc:creator><author>G_G</author><pubDate>Tue, 15 Apr 2008 05:41:00 GMT</pubDate><guid>http://www.blogjava.net/Good-Game/archive/2008/04/15/193087.html</guid><wfw:comment>http://www.blogjava.net/Good-Game/comments/193087.html</wfw:comment><comments>http://www.blogjava.net/Good-Game/archive/2008/04/15/193087.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/Good-Game/comments/commentRss/193087.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/Good-Game/services/trackbacks/193087.html</trackback:ping><description><![CDATA[
		<br />
		<b>参考</b> :<font color="#0000ff">http://www.codebit.cn/pub/html/javascript/tip/mouse_position/</font><br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">script type</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">text/javascript</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);"> <br /><br /></span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);"> mousePosition(ev){<br />    <b><font color="#006400">//支持 火狐</font></b><br />    </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">(ev.pageX </span><span style="color: rgb(0, 0, 0);">||</span><span style="color: rgb(0, 0, 0);"> ev.pageY){<br />        </span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);"> {x:ev.pageX, y:ev.pageY};<br />    }<br />    <b><font color="#006400">//支持IE</font></b><br />    </span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);"> {<br />        x:ev.clientX </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> document.body.scrollLeft </span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);"> document.body.clientLeft,<br />        y:ev.clientY </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> document.body.scrollTop </span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);"> document.body.clientTop<br />    };<br />}<br /><br /></span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);"> mouseMove(ev){<br />    ev </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> ev </span><span style="color: rgb(0, 0, 0);">||</span><span style="color: rgb(0, 0, 0);"> window.event;<br />    </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> mousePos </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> mousePosition(ev);<br />        <br />       document.getElementById('div1').innerHTML </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> mousePos.x </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">mousePos.y ;<br />       document.getElementById('div1').style.left </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> mousePos.x</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">10</span><span style="color: rgb(0, 0, 0);">;<br />       document.getElementById('div1').style.top </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> mousePos.y</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">50</span><span style="color: rgb(0, 0, 0);">;<br />}<br /><br /><b>//事件添加</b><br />document.onmousemove </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> mouseMove;<br /><br /><br /></span><span style="color: rgb(0, 0, 0);">&lt;/</span><span style="color: rgb(0, 0, 0);">script</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">body</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">p id</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">'pi'</span><span style="color: rgb(0, 0, 0);">&gt;&lt;/</span><span style="color: rgb(0, 0, 0);">p</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">div id</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">'div1'  style</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">position:absolute;  <br />  left:50;  <br />  top:10;  <br />  z-index:1000;  <br />  padding:0px;  <br />  background-color:#FFFFCC;  <br />  color:#201000;  <br />  font-size:12px;  <br />  border:1px   solid   #284860;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&gt;&lt;/</span><span style="color: rgb(0, 0, 0);">div</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);">   <br /></span><span style="color: rgb(0, 0, 0);">&lt;/</span><span style="color: rgb(0, 0, 0);">body</span><span style="color: rgb(0, 0, 0);">&gt;</span></div><br />直接运行<br /><br /><br /><img src ="http://www.blogjava.net/Good-Game/aggbug/193087.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/Good-Game/" target="_blank">G_G</a> 2008-04-15 13:41 <a href="http://www.blogjava.net/Good-Game/archive/2008/04/15/193087.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>java,javascript 内连取数据</title><link>http://www.blogjava.net/Good-Game/archive/2008/01/09/173895.html</link><dc:creator>G_G</dc:creator><author>G_G</author><pubDate>Wed, 09 Jan 2008 01:46:00 GMT</pubDate><guid>http://www.blogjava.net/Good-Game/archive/2008/01/09/173895.html</guid><wfw:comment>http://www.blogjava.net/Good-Game/comments/173895.html</wfw:comment><comments>http://www.blogjava.net/Good-Game/archive/2008/01/09/173895.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/Good-Game/comments/commentRss/173895.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/Good-Game/services/trackbacks/173895.html</trackback:ping><description><![CDATA[java 内连<br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 0);">            <font color="#008000">//用 java jdk URL </font><br />            URL httpurl </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);"> URL(url);<br />            HttpURLConnection httpConn </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">null</span><span style="color: rgb(0, 0, 0);">;<br />            httpConn </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> (HttpURLConnection) httpurl.openConnection();<br />            httpConn.setRequestMethod(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">POST</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br />            httpConn.setDoOutput(</span><span style="color: rgb(0, 0, 255);">true</span><span style="color: rgb(0, 0, 0);">);<br />            httpConn.setDoInput(</span><span style="color: rgb(0, 0, 255);">true</span><span style="color: rgb(0, 0, 0);">);<br />              <font color="#006400">//</font></span><font color="#008000"><span style="color: rgb(0, 0, 0);"></span></font><span style="color: rgb(0, 0, 0);"><font color="#006400">正式连接</font><br />            httpConn.getOutputStream();<br />              <font color="#008000">/**输入参数<br />              PrintWriter outs = new PrintWriter(httpConn.getOutputStream());<br />            outs.print("&amp;back_url=" + returnurl);<br />            outs.print("&amp;orderid=" + deposit.getOrderId());<br />            outs.print("&amp;bussinessid=" + SZFConstant.B_ID);<br />            outs.print("&amp;digestString="<br />                    + MD5Util.MD5Encode(SZFConstant.B_ID + deposit.getOrderId()<br />                            + SZFConstant.KEY));<br />            outs.flush();<br />            outs.close();<br /><br />               GET 就不要 说 了  url + 参数<br />            */</font><br />            </span><span style="color: rgb(0, 0, 255);">byte</span><span style="color: rgb(0, 0, 0);">[] bb </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">byte</span><span style="color: rgb(0, 0, 0);">[httpConn.getInputStream().available()];<br />            httpConn.getInputStream().read(bb);<br />            <font color="#006400">//取得数据 </font><br />            String str </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);"> String(bb);</span></div><br />javascript 现在这种取法有个名字叫（ajax）(转)<br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">html</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">head</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">link href</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">http://www.cc168.com.cn/css/index.css</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> rel</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">stylesheet</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> type</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">text/css</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">link rel</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">stylesheet</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> href</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">http://www.cc168.com.cn/css/framework.css</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> type</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">text/css</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">script language</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">javascript</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /> <br /> window.onload </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);">()<br /> {<br />  CreateDateSelect();<br /> }<br /><br /> </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> xmlHttp </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">false</span><span style="color: rgb(0, 0, 0);">;<br /> </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> e;<br /> <br /> </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">创建XMLHTTP对象</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);"> getXMLHTTPObj()<br /> {<br />  </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> C </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">null</span><span style="color: rgb(0, 0, 0);">;<br />  </span><span style="color: rgb(0, 0, 255);">try</span><span style="color: rgb(0, 0, 0);"><br />  {<br />     C </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);"> ActiveXObject(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Msxml2.XMLHTTP</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br />  }<br />  </span><span style="color: rgb(0, 0, 255);">catch</span><span style="color: rgb(0, 0, 0);">(e)<br />  {<br />   </span><span style="color: rgb(0, 0, 255);">try</span><span style="color: rgb(0, 0, 0);"><br />   {<br />    C </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);"> ActiveXObject(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Microsoft.XMLHTTP</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br />   }<br />   </span><span style="color: rgb(0, 0, 255);">catch</span><span style="color: rgb(0, 0, 0);">(sc)<br />   {<br />    C </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">null</span><span style="color: rgb(0, 0, 0);">;<br />   }<br />  }<br />  <br />  </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">( </span><span style="color: rgb(0, 0, 0);">!</span><span style="color: rgb(0, 0, 0);">C </span><span style="color: rgb(0, 0, 0);">&amp;&amp;</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">typeof</span><span style="color: rgb(0, 0, 0);"> XMLHttpRequest </span><span style="color: rgb(0, 0, 0);">!=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">undefined</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> )<br />  {<br />   C </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);"> XMLHttpRequest();<br />  }<br />  <br />  </span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);"> C;<br /> }<br /> <br /> </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">调用远程方法</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);"> callServer(e)<br /> { <br />  </span><span style="color: rgb(0, 0, 255);">try</span><span style="color: rgb(0, 0, 0);"><br />  {<br />   </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">( xmlHttp </span><span style="color: rgb(0, 0, 0);">&amp;&amp;</span><span style="color: rgb(0, 0, 0);"> xmlHttp .readyState </span><span style="color: rgb(0, 0, 0);">!=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);"> )<br />   {<br />    xmlHttp.abort();<br />   }<br />   <br />   xmlHttp </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> getXMLHTTPObj();<br />   <br />   </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">( xmlHttp )<br />   {<br />    document.getElementById(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">outgroup</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">).style.display </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">none</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br />    </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">获取查询日期</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">    </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> dateSele </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> e.options[e.selectedIndex].value;<br />    document.getElementById(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">date</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">).innerHTML </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> dateSele </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> 开放式基金净值</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br /><br />    </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">构造查询连接字符串</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">    </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> url </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">https://www.google.com/accounts/ManageAccount</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br />    <br />    </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">打开连接</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">   </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">(navigator.appName </span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 0);"> 'Netscape'){<br />   </span><span style="color: rgb(0, 0, 255);">try</span><span style="color: rgb(0, 0, 0);"> {<br />    netscape.security.PrivilegeManager.enablePrivilege(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">UniversalBrowserRead</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br />   } </span><span style="color: rgb(0, 0, 255);">catch</span><span style="color: rgb(0, 0, 0);"> (e) {<br />       alert(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Permission UniversalBrowserRead denied.</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br />   }}<br />    xmlHttp.open(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">GET</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">, url, </span><span style="color: rgb(0, 0, 255);">true</span><span style="color: rgb(0, 0, 0);">);<br />    </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">设置回调函数</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">    xmlHttp.onreadystatechange </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> updatePage;<br />    </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">发送请求</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">    xmlHttp.send(</span><span style="color: rgb(0, 0, 255);">null</span><span style="color: rgb(0, 0, 0);">);<br />   }<br />   </span><span style="color: rgb(0, 0, 255);">else</span><span style="color: rgb(0, 0, 0);"><br />   {<br />    document.getElementById(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">flag</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">).innerHTML </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">XMLHTTP对象创建失败</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br />   }<br />  }<br />  </span><span style="color: rgb(0, 0, 255);">catch</span><span style="color: rgb(0, 0, 0);"> (e)<br />  {<br />   document.getElementById(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">flag</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">).innerHTML </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">查询错误:</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> e;<br />  }<br /> }<br /> <br /> </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">回调处理函数</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);"> updatePage()<br /> {<br />  </span><span style="color: rgb(0, 0, 255);">try</span><span style="color: rgb(0, 0, 0);"> {<br />   </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);"> (xmlHttp.readyState </span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">)<br />   {<br />    document.getElementById(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">flag</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">).innerHTML </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">正在加载连接对象<img src="http://www.blogjava.net/images/dot.gif" /><img src="http://www.blogjava.net/images/dot.gif" /></span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br />   }<br /><br />   </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);"> (xmlHttp.readyState </span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">2</span><span style="color: rgb(0, 0, 0);">)<br />   {<br />    document.getElementById(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">flag</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">).innerHTML </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">连接对象加载完毕。</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br />   }<br /><br />   </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);"> (xmlHttp.readyState </span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">3</span><span style="color: rgb(0, 0, 0);">)<br />   {<br />    document.getElementById(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">flag</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">).innerHTML </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">数据获取中<img src="http://www.blogjava.net/images/dot.gif" /><img src="http://www.blogjava.net/images/dot.gif" /></span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br />   }<br /><br />   </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);"> (xmlHttp.readyState </span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">4</span><span style="color: rgb(0, 0, 0);">)<br />   {<br />    </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> response </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> xmlHttp.responseText;<br />    document.getElementById(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">out</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">).innerHTML </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> response;<br />    document.getElementById(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">outgroup</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">).style.display </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">""</span><span style="color: rgb(0, 0, 0);">;<br />   }<br />  }<br />  </span><span style="color: rgb(0, 0, 255);">catch</span><span style="color: rgb(0, 0, 0);"> (e)<br />  {<br />      document.getElementById(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">flag</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">).innerHTML </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">回调处理错误:</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> e;<br />  }<br /> }<br /><br /> </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">创建日期选择下拉框</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);"> CreateDateSelect()<br /> {<br /><br />  </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> html </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> [];<br />         <br />  </span><span style="color: rgb(0, 0, 255);">for</span><span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> iYear</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">2005</span><span style="color: rgb(0, 0, 0);">; iYear</span><span style="color: rgb(0, 0, 0);">&lt;=</span><span style="color: rgb(0, 0, 0);">2006</span><span style="color: rgb(0, 0, 0);">; iYear </span><span style="color: rgb(0, 0, 0);">++</span><span style="color: rgb(0, 0, 0);">)<br />  {<br />   </span><span style="color: rgb(0, 0, 255);">for</span><span style="color: rgb(0, 0, 0);">( </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> iMonth</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">; iMonth</span><span style="color: rgb(0, 0, 0);">&lt;=</span><span style="color: rgb(0, 0, 0);">12</span><span style="color: rgb(0, 0, 0);">; iMonth </span><span style="color: rgb(0, 0, 0);">++</span><span style="color: rgb(0, 0, 0);"> )<br />   {<br />    </span><span style="color: rgb(0, 0, 255);">for</span><span style="color: rgb(0, 0, 0);">( </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> iDay</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">; iDay</span><span style="color: rgb(0, 0, 0);">&lt;=</span><span style="color: rgb(0, 0, 0);">31</span><span style="color: rgb(0, 0, 0);">; iDay </span><span style="color: rgb(0, 0, 0);">++</span><span style="color: rgb(0, 0, 0);"> )<br />    { <br />    html[html.length] </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&lt;option value=\</span><span style="color: rgb(0, 0, 0);">""</span><span style="color: rgb(0, 0, 0);">  + iYear + </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">\</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> + iMonth + </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">\</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> + iDay + </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">\</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> iYear </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">年</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> iMonth </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">月</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> iDay </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">日</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&lt;/option&gt;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br />    }<br />   }<br />  }<br />      <br />  document.getElementById(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">dateSele</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">).innerHTML </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&lt;select name=\</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">dateSele\</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> id=\</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">dateSele\</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> onchange=\</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">callServer(</span><span style="color: rgb(0, 0, 255);">this</span><span style="color: rgb(0, 0, 0);">);\</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> html.join(</span><span style="color: rgb(0, 0, 0);">""</span><span style="color: rgb(0, 0, 0);">) </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&lt;/select&gt;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br /> } <br /> </span><span style="color: rgb(0, 0, 0);">&lt;/</span><span style="color: rgb(0, 0, 0);">script</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 0);"><br /></span></div><br /><img src ="http://www.blogjava.net/Good-Game/aggbug/173895.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/Good-Game/" target="_blank">G_G</a> 2008-01-09 09:46 <a href="http://www.blogjava.net/Good-Game/archive/2008/01/09/173895.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>javascript cookie(转)</title><link>http://www.blogjava.net/Good-Game/archive/2007/11/28/163747.html</link><dc:creator>G_G</dc:creator><author>G_G</author><pubDate>Wed, 28 Nov 2007 09:13:00 GMT</pubDate><guid>http://www.blogjava.net/Good-Game/archive/2007/11/28/163747.html</guid><wfw:comment>http://www.blogjava.net/Good-Game/comments/163747.html</wfw:comment><comments>http://www.blogjava.net/Good-Game/archive/2007/11/28/163747.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/Good-Game/comments/commentRss/163747.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/Good-Game/services/trackbacks/163747.html</trackback:ping><description><![CDATA[引用<br /><font color="#0000ff">http://blog.joycode.com/joe/archive/2005/09/06/63068.aspx<br />http://www.itlearner.com/article/2006/3325.shtml</font><br /><br />使用方法：<b><font color="#ffa500">js</font></b><br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 0);"><br /><br /></span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">获得Cookie解码后的值</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);"> GetCookieVal(offset){<br />    </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> endstr </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> document.cookie.indexOf (</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">, offset);<br />    </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);"> (endstr </span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">)<br />    endstr </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> document.cookie.length;<br />    </span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);"> unescape(document.cookie.substring(offset, endstr));<br />}<br /><br /></span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">设定Cookie值</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);"> SetCookie(name, value){<br />    </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> expdate </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);"> Date();<br />    </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> argv </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> SetCookie.arguments;<br />    </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> argc </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> SetCookie.arguments.length;<br />    </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> expires </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> (argc </span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">2</span><span style="color: rgb(0, 0, 0);">) </span><span style="color: rgb(0, 0, 0);">?</span><span style="color: rgb(0, 0, 0);"> argv[</span><span style="color: rgb(0, 0, 0);">2</span><span style="color: rgb(0, 0, 0);">] : </span><span style="color: rgb(0, 0, 255);">null</span><span style="color: rgb(0, 0, 0);">;<br />    </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> path </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> (argc </span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">3</span><span style="color: rgb(0, 0, 0);">) </span><span style="color: rgb(0, 0, 0);">?</span><span style="color: rgb(0, 0, 0);"> argv[</span><span style="color: rgb(0, 0, 0);">3</span><span style="color: rgb(0, 0, 0);">] : </span><span style="color: rgb(0, 0, 255);">null</span><span style="color: rgb(0, 0, 0);">;<br />    </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> domain </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> (argc </span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">4</span><span style="color: rgb(0, 0, 0);">) </span><span style="color: rgb(0, 0, 0);">?</span><span style="color: rgb(0, 0, 0);"> argv[</span><span style="color: rgb(0, 0, 0);">4</span><span style="color: rgb(0, 0, 0);">] : </span><span style="color: rgb(0, 0, 255);">null</span><span style="color: rgb(0, 0, 0);">;<br />    </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> secure </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> (argc </span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">5</span><span style="color: rgb(0, 0, 0);">) </span><span style="color: rgb(0, 0, 0);">?</span><span style="color: rgb(0, 0, 0);"> argv[</span><span style="color: rgb(0, 0, 0);">5</span><span style="color: rgb(0, 0, 0);">] : </span><span style="color: rgb(0, 0, 255);">false</span><span style="color: rgb(0, 0, 0);">;<br />    </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">(expires</span><span style="color: rgb(0, 0, 0);">!=</span><span style="color: rgb(0, 0, 255);">null</span><span style="color: rgb(0, 0, 0);">) expdate.setTime(expdate.getTime() </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> ( expires </span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">1000</span><span style="color: rgb(0, 0, 0);"> ));<br />    document.cookie </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> name </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> escape (value) </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">((expires </span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">null</span><span style="color: rgb(0, 0, 0);">) </span><span style="color: rgb(0, 0, 0);">?</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">""</span><span style="color: rgb(0, 0, 0);"> : (</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">; expires=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> expdate.toGMTString()))<br />    </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">((path </span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">null</span><span style="color: rgb(0, 0, 0);">) </span><span style="color: rgb(0, 0, 0);">?</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">""</span><span style="color: rgb(0, 0, 0);"> : (</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">; path=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> path)) </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">((domain </span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">null</span><span style="color: rgb(0, 0, 0);">) </span><span style="color: rgb(0, 0, 0);">?</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">""</span><span style="color: rgb(0, 0, 0);"> : (</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">; domain=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> domain))<br />    </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">((secure </span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">true</span><span style="color: rgb(0, 0, 0);">) </span><span style="color: rgb(0, 0, 0);">?</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">; secure</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> : </span><span style="color: rgb(0, 0, 0);">""</span><span style="color: rgb(0, 0, 0);">);<br />}<br /><br /></span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">删除Cookie</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);"> DelCookie(name){<br />    </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> exp </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);"> Date();<br />    exp.setTime (exp.getTime() </span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">);<br />    </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> cval </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> GetCookie (name);<br />    document.cookie </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> name </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> cval </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">; expires=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> exp.toGMTString();<br />}<br /><br /></span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">获得Cookie的原始值</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);"> GetCookie(name){<br />    </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> arg </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> name </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br />    </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> alen </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> arg.length;<br />    </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> clen </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> document.cookie.length;<br />    </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> i </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">;<br />    </span><span style="color: rgb(0, 0, 255);">while</span><span style="color: rgb(0, 0, 0);"> (i </span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);"> clen)<br />    {<br />        </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> j </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> i </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> alen;<br />        </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);"> (document.cookie.substring(i, j) </span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 0);"> arg)<br />        </span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);"> GetCookieVal (j);<br />        i </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> document.cookie.indexOf(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">, i) </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">;<br />        </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);"> (i </span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">) </span><span style="color: rgb(0, 0, 255);">break</span><span style="color: rgb(0, 0, 0);">;<br />    }<br />    </span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">null</span><span style="color: rgb(0, 0, 0);">;<br />}<br /></span></div><br />jsunit<br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 255);">&lt;!</span><span style="color: rgb(255, 0, 255);">DOCTYPE html <br />  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" <br />  "http://www.w3.org/TR/html4/loose.dtd"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">html</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">head</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">meta </span><span style="color: rgb(255, 0, 0);">http-equiv</span><span style="color: rgb(0, 0, 255);">="Content-Type"</span><span style="color: rgb(255, 0, 0);"> content</span><span style="color: rgb(0, 0, 255);">="text/html; charset=BIG5"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">title</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">x</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">title</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">script </span><span style="color: rgb(255, 0, 0);">type</span><span style="color: rgb(0, 0, 255);">="text/javascript"</span><span style="color: rgb(255, 0, 0);"> src</span><span style="color: rgb(0, 0, 255);">="test.js"</span><span style="color: rgb(0, 0, 255);">&gt;&lt;/</span><span style="color: rgb(128, 0, 0);">script</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">script </span><span style="color: rgb(255, 0, 0);">type</span><span style="color: rgb(0, 0, 255);">="text/javascript"</span><span style="color: rgb(255, 0, 0);"> src</span><span style="color: rgb(0, 0, 255);">="lib/jsUnitCore.js"</span><span style="color: rgb(0, 0, 255);">&gt;&lt;/</span><span style="color: rgb(128, 0, 0);">script</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">script </span><span style="color: rgb(255, 0, 0);">type</span><span style="color: rgb(0, 0, 255);">="text/javascript"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"><br />    <br />    <br />    </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">function</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> testValidArgs() { </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">//</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);"> 测试的函式要以test名称作为开头</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);"><br /></span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">        SetCookie('li','gg');<br />        assertEquals(</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">cookie get err</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">, 'gg', GetCookie('li') );<br />        assertEquals(</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">cookie getVal err</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">, 'li</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">gg', GetCookieVal('li') );<br />        <br />        <br />        DelCookie(</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">li</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">);<br />        assertEquals(</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">cookie </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">del err "</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">,</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">null</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">, GetCookie('li') );<br />        <br />        <br />    }<br /><br />    <br />    <br /></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">script</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">head</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">body</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">body</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">html</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span></div><b><font color="#ffa500"><br />运行 Jsunit-&gt; testRunner.html 通过测试<br /><br /></font></b><br /><img src ="http://www.blogjava.net/Good-Game/aggbug/163747.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/Good-Game/" target="_blank">G_G</a> 2007-11-28 17:13 <a href="http://www.blogjava.net/Good-Game/archive/2007/11/28/163747.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>ajax 的 输入选择  （同google&amp;读数据库） </title><link>http://www.blogjava.net/Good-Game/archive/2007/07/25/132345.html</link><dc:creator>G_G</dc:creator><author>G_G</author><pubDate>Wed, 25 Jul 2007 09:05:00 GMT</pubDate><guid>http://www.blogjava.net/Good-Game/archive/2007/07/25/132345.html</guid><wfw:comment>http://www.blogjava.net/Good-Game/comments/132345.html</wfw:comment><comments>http://www.blogjava.net/Good-Game/archive/2007/07/25/132345.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.blogjava.net/Good-Game/comments/commentRss/132345.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/Good-Game/services/trackbacks/132345.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 问题：		用户在 WEB 中输入 机车 人员 等项 页面会根据当前字符给出选择提示解决：scriptaculous javascript工具包的 Autocompleter.Local 与图对应代码：Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->...&nbsp;&nbsp;<a href='http://www.blogjava.net/Good-Game/archive/2007/07/25/132345.html'>阅读全文</a><img src ="http://www.blogjava.net/Good-Game/aggbug/132345.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/Good-Game/" target="_blank">G_G</a> 2007-07-25 17:05 <a href="http://www.blogjava.net/Good-Game/archive/2007/07/25/132345.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>WEB xml 画图 (javascript包装)用到 prototype.js  wz_jsgraphics.js </title><link>http://www.blogjava.net/Good-Game/archive/2007/07/11/129594.html</link><dc:creator>G_G</dc:creator><author>G_G</author><pubDate>Wed, 11 Jul 2007 05:31:00 GMT</pubDate><guid>http://www.blogjava.net/Good-Game/archive/2007/07/11/129594.html</guid><wfw:comment>http://www.blogjava.net/Good-Game/comments/129594.html</wfw:comment><comments>http://www.blogjava.net/Good-Game/archive/2007/07/11/129594.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/Good-Game/comments/commentRss/129594.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/Good-Game/services/trackbacks/129594.html</trackback:ping><description><![CDATA[
		<font color="#ff0000">
				<b>问题: </b>
		</font>画页面 或 报表 的 图象问题<br /><font color="#0000ff"><b>解决：</b></font>用 通过xml画图  画笔wz_jsgraphics.js  <br />                      xml数据取得 prototype.js<br />                            画动作 Xmlgraphics.js （自己包装）<br />    下载：<font color="#006400"><font color="#008000">http://www.blogjava.net/Files/Good-Game/Mywz_jsgraphics.rar</font> </font> 请放在 服务器上(tomcat) 并改                          testLine.html页面上的 load( ul ) =&gt;&gt; <font color="#ff0000"> ul （ xml 的取得地方 ） <br /><b>            请注意 ： IE 5 支持不好 请用 火狐 或 IE6<br /><font color="#7fffd4">图片 ：</font><br /></b><img src="http://www.blogjava.net/images/blogjava_net/Good-Game/24020/t_wz_.bmp" height="200" width="150" /><br /><br /></font>EG:<br />   这展现了 画线 画图  到 画字的简单过程<br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">grabhics</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /><br />    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">line </span><span style="color: rgb(255, 0, 0);">x1</span><span style="color: rgb(0, 0, 255);">='0' </span><span style="color: rgb(255, 0, 0);">y1</span><span style="color: rgb(0, 0, 255);">='0' </span><span style="color: rgb(255, 0, 0);">x2</span><span style="color: rgb(0, 0, 255);">='40' </span><span style="color: rgb(255, 0, 0);">y2</span><span style="color: rgb(0, 0, 255);">='0' </span><span style="color: rgb(255, 0, 0);">color</span><span style="color: rgb(0, 0, 255);">='green'  </span><span style="color: rgb(255, 0, 0);">stroke</span><span style="color: rgb(0, 0, 255);">='4' </span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">line </span><span style="color: rgb(255, 0, 0);">id</span><span style="color: rgb(0, 0, 255);">='l1' </span><span style="color: rgb(255, 0, 0);">x1</span><span style="color: rgb(0, 0, 255);">='0' </span><span style="color: rgb(255, 0, 0);">y1</span><span style="color: rgb(0, 0, 255);">='0' </span><span style="color: rgb(255, 0, 0);">x2</span><span style="color: rgb(0, 0, 255);">='0' </span><span style="color: rgb(255, 0, 0);">y2</span><span style="color: rgb(0, 0, 255);">='200' </span><span style="color: rgb(255, 0, 0);">color</span><span style="color: rgb(0, 0, 255);">='darkblue'  </span><span style="color: rgb(255, 0, 0);">stroke</span><span style="color: rgb(0, 0, 255);">='8' </span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br />    <br />    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">rect </span><span style="color: rgb(255, 0, 0);">x</span><span style="color: rgb(0, 0, 255);">='20' </span><span style="color: rgb(255, 0, 0);">y</span><span style="color: rgb(0, 0, 255);">='20' </span><span style="color: rgb(255, 0, 0);">w</span><span style="color: rgb(0, 0, 255);">='40' </span><span style="color: rgb(255, 0, 0);">h</span><span style="color: rgb(0, 0, 255);">='70' </span><span style="color: rgb(255, 0, 0);">color</span><span style="color: rgb(0, 0, 255);">='hotpink'  </span><span style="color: rgb(255, 0, 0);">stroke</span><span style="color: rgb(0, 0, 255);">='4' </span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">rect </span><span style="color: rgb(255, 0, 0);">id</span><span style="color: rgb(0, 0, 255);">='r1' </span><span style="color: rgb(255, 0, 0);">x</span><span style="color: rgb(0, 0, 255);">='100' </span><span style="color: rgb(255, 0, 0);">y</span><span style="color: rgb(0, 0, 255);">='60' </span><span style="color: rgb(255, 0, 0);">w</span><span style="color: rgb(0, 0, 255);">='20' </span><span style="color: rgb(255, 0, 0);">h</span><span style="color: rgb(0, 0, 255);">='200' </span><span style="color: rgb(255, 0, 0);">color</span><span style="color: rgb(0, 0, 255);">='greenyellow'  </span><span style="color: rgb(255, 0, 0);">stroke</span><span style="color: rgb(0, 0, 255);">='8' </span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br />    <br />    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">fillRect </span><span style="color: rgb(255, 0, 0);">x</span><span style="color: rgb(0, 0, 255);">='50' </span><span style="color: rgb(255, 0, 0);">y</span><span style="color: rgb(0, 0, 255);">='60' </span><span style="color: rgb(255, 0, 0);">w</span><span style="color: rgb(0, 0, 255);">='40' </span><span style="color: rgb(255, 0, 0);">h</span><span style="color: rgb(0, 0, 255);">='70' </span><span style="color: rgb(255, 0, 0);">color</span><span style="color: rgb(0, 0, 255);">='darkolivegreen'  </span><span style="color: rgb(255, 0, 0);">stroke</span><span style="color: rgb(0, 0, 255);">='2' </span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">fillRect </span><span style="color: rgb(255, 0, 0);">id</span><span style="color: rgb(0, 0, 255);">='fr1' </span><span style="color: rgb(255, 0, 0);">x</span><span style="color: rgb(0, 0, 255);">='150' </span><span style="color: rgb(255, 0, 0);">y</span><span style="color: rgb(0, 0, 255);">='250' </span><span style="color: rgb(255, 0, 0);">w</span><span style="color: rgb(0, 0, 255);">='20' </span><span style="color: rgb(255, 0, 0);">h</span><span style="color: rgb(0, 0, 255);">='45' </span><span style="color: rgb(255, 0, 0);">color</span><span style="color: rgb(0, 0, 255);">='darkturquoise'  </span><span style="color: rgb(255, 0, 0);">stroke</span><span style="color: rgb(0, 0, 255);">='1' </span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br />    <br />    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">ellipse </span><span style="color: rgb(255, 0, 0);">x</span><span style="color: rgb(0, 0, 255);">='0' </span><span style="color: rgb(255, 0, 0);">y</span><span style="color: rgb(0, 0, 255);">='100' </span><span style="color: rgb(255, 0, 0);">w</span><span style="color: rgb(0, 0, 255);">='50' </span><span style="color: rgb(255, 0, 0);">h</span><span style="color: rgb(0, 0, 255);">='100' </span><span style="color: rgb(255, 0, 0);">color</span><span style="color: rgb(0, 0, 255);">='darkolivegreen'  </span><span style="color: rgb(255, 0, 0);">stroke</span><span style="color: rgb(0, 0, 255);">='5' </span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">ellipse </span><span style="color: rgb(255, 0, 0);">id</span><span style="color: rgb(0, 0, 255);">='e1' </span><span style="color: rgb(255, 0, 0);">x</span><span style="color: rgb(0, 0, 255);">='250' </span><span style="color: rgb(255, 0, 0);">y</span><span style="color: rgb(0, 0, 255);">='0' </span><span style="color: rgb(255, 0, 0);">w</span><span style="color: rgb(0, 0, 255);">='34' </span><span style="color: rgb(255, 0, 0);">h</span><span style="color: rgb(0, 0, 255);">='46' </span><span style="color: rgb(255, 0, 0);">color</span><span style="color: rgb(0, 0, 255);">='darkturquoise'  </span><span style="color: rgb(255, 0, 0);">stroke</span><span style="color: rgb(0, 0, 255);">='7' </span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br />    <br />    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">fillEllipse </span><span style="color: rgb(255, 0, 0);">x</span><span style="color: rgb(0, 0, 255);">='0' </span><span style="color: rgb(255, 0, 0);">y</span><span style="color: rgb(0, 0, 255);">='150' </span><span style="color: rgb(255, 0, 0);">w</span><span style="color: rgb(0, 0, 255);">='150' </span><span style="color: rgb(255, 0, 0);">h</span><span style="color: rgb(0, 0, 255);">='70' </span><span style="color: rgb(255, 0, 0);">color</span><span style="color: rgb(0, 0, 255);">='darkolivegreen'  </span><span style="color: rgb(255, 0, 0);">stroke</span><span style="color: rgb(0, 0, 255);">='5' </span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">fillEllipse </span><span style="color: rgb(255, 0, 0);">id</span><span style="color: rgb(0, 0, 255);">='fe1' </span><span style="color: rgb(255, 0, 0);">x</span><span style="color: rgb(0, 0, 255);">='250' </span><span style="color: rgb(255, 0, 0);">y</span><span style="color: rgb(0, 0, 255);">='20' </span><span style="color: rgb(255, 0, 0);">w</span><span style="color: rgb(0, 0, 255);">='84' </span><span style="color: rgb(255, 0, 0);">h</span><span style="color: rgb(0, 0, 255);">='48' </span><span style="color: rgb(255, 0, 0);">color</span><span style="color: rgb(0, 0, 255);">='gray'  </span><span style="color: rgb(255, 0, 0);">stroke</span><span style="color: rgb(0, 0, 255);">='7' </span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br />    <br />    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">fillArc </span><span style="color: rgb(255, 0, 0);">x</span><span style="color: rgb(0, 0, 255);">='32' </span><span style="color: rgb(255, 0, 0);">y</span><span style="color: rgb(0, 0, 255);">='124' </span><span style="color: rgb(255, 0, 0);">w</span><span style="color: rgb(0, 0, 255);">='130' </span><span style="color: rgb(255, 0, 0);">h</span><span style="color: rgb(0, 0, 255);">='170' </span><span style="color: rgb(255, 0, 0);">start</span><span style="color: rgb(0, 0, 255);">='0' </span><span style="color: rgb(255, 0, 0);">end</span><span style="color: rgb(0, 0, 255);">='190' </span><span style="color: rgb(255, 0, 0);">color</span><span style="color: rgb(0, 0, 255);">='red'  </span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">fillArc </span><span style="color: rgb(255, 0, 0);">id</span><span style="color: rgb(0, 0, 255);">='fa1' </span><span style="color: rgb(255, 0, 0);">x</span><span style="color: rgb(0, 0, 255);">='200' </span><span style="color: rgb(255, 0, 0);">y</span><span style="color: rgb(0, 0, 255);">='300' </span><span style="color: rgb(255, 0, 0);">w</span><span style="color: rgb(0, 0, 255);">='40' </span><span style="color: rgb(255, 0, 0);">h</span><span style="color: rgb(0, 0, 255);">='20' </span><span style="color: rgb(255, 0, 0);">start</span><span style="color: rgb(0, 0, 255);">='0' </span><span style="color: rgb(255, 0, 0);">end</span><span style="color: rgb(0, 0, 255);">='300' </span><span style="color: rgb(255, 0, 0);">color</span><span style="color: rgb(0, 0, 255);">='red'  </span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br /><br />    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">polygon </span><span style="color: rgb(255, 0, 0);">xs</span><span style="color: rgb(0, 0, 255);">='32,80,23,7,64' </span><span style="color: rgb(255, 0, 0);">ys</span><span style="color: rgb(0, 0, 255);">='124,2,42,24,6' </span><span style="color: rgb(255, 0, 0);">color</span><span style="color: rgb(0, 0, 255);">='darkolivegreen'  </span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">polygon </span><span style="color: rgb(255, 0, 0);">id</span><span style="color: rgb(0, 0, 255);">='pp1' </span><span style="color: rgb(255, 0, 0);">xs</span><span style="color: rgb(0, 0, 255);">='32,4,2' </span><span style="color: rgb(255, 0, 0);">ys</span><span style="color: rgb(0, 0, 255);">='124,3,51' </span><span style="color: rgb(255, 0, 0);">color</span><span style="color: rgb(0, 0, 255);">='darkolivegreen'  </span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br /><br /><br />    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">fillPolygon </span><span style="color: rgb(255, 0, 0);">xs</span><span style="color: rgb(0, 0, 255);">='10,85,93,60' </span><span style="color: rgb(255, 0, 0);">ys</span><span style="color: rgb(0, 0, 255);">='50,10,105,87' </span><span style="color: rgb(255, 0, 0);">color</span><span style="color: rgb(0, 0, 255);">='00aaaa'  </span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">fillPolygon </span><span style="color: rgb(255, 0, 0);">id</span><span style="color: rgb(0, 0, 255);">='adfh'  </span><span style="color: rgb(255, 0, 0);">xs</span><span style="color: rgb(0, 0, 255);">='80,126,-30,-60' </span><span style="color: rgb(255, 0, 0);">ys</span><span style="color: rgb(0, 0, 255);">='0,130,40,100' </span><span style="color: rgb(255, 0, 0);">color</span><span style="color: rgb(0, 0, 255);">='00aaaa'  </span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br /><br />    <br />    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">image </span><span style="color: rgb(255, 0, 0);">x</span><span style="color: rgb(0, 0, 255);">='200' </span><span style="color: rgb(255, 0, 0);">y</span><span style="color: rgb(0, 0, 255);">='300' </span><span style="color: rgb(255, 0, 0);">w</span><span style="color: rgb(0, 0, 255);">='50' </span><span style="color: rgb(255, 0, 0);">h</span><span style="color: rgb(0, 0, 255);">='50' </span><span style="color: rgb(255, 0, 0);">url</span><span style="color: rgb(0, 0, 255);">='../image/test.bmp' </span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">image </span><span style="color: rgb(255, 0, 0);">id</span><span style="color: rgb(0, 0, 255);">='ima' </span><span style="color: rgb(255, 0, 0);">x</span><span style="color: rgb(0, 0, 255);">='300' </span><span style="color: rgb(255, 0, 0);">y</span><span style="color: rgb(0, 0, 255);">='300' </span><span style="color: rgb(255, 0, 0);">w</span><span style="color: rgb(0, 0, 255);">='50' </span><span style="color: rgb(255, 0, 0);">h</span><span style="color: rgb(0, 0, 255);">='50' </span><span style="color: rgb(255, 0, 0);">url</span><span style="color: rgb(0, 0, 255);">='../image/test.bmp' </span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br /><br />    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">string  </span><span style="color: rgb(255, 0, 0);">font</span><span style="color: rgb(0, 0, 255);">='arial'  </span><span style="color: rgb(255, 0, 0);">size</span><span style="color: rgb(0, 0, 255);">='15' </span><span style="color: rgb(255, 0, 0);">style</span><span style="color: rgb(0, 0, 255);">='Font.ITALIC_BOLD' </span><span style="color: rgb(255, 0, 0);">str</span><span style="color: rgb(0, 0, 255);">='刘凯毅' </span><span style="color: rgb(255, 0, 0);">x</span><span style="color: rgb(0, 0, 255);">='300' </span><span style="color: rgb(255, 0, 0);">y</span><span style="color: rgb(0, 0, 255);">='400' </span><span style="color: rgb(255, 0, 0);">color</span><span style="color: rgb(0, 0, 255);">='red' </span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">string </span><span style="color: rgb(255, 0, 0);">id</span><span style="color: rgb(0, 0, 255);">='strr'  </span><span style="color: rgb(255, 0, 0);">font</span><span style="color: rgb(0, 0, 255);">='arial'  </span><span style="color: rgb(255, 0, 0);">size</span><span style="color: rgb(0, 0, 255);">='20' </span><span style="color: rgb(255, 0, 0);">style</span><span style="color: rgb(0, 0, 255);">='Font.ITALIC_BOLD' </span><span style="color: rgb(255, 0, 0);">str</span><span style="color: rgb(0, 0, 255);">='万岁' </span><span style="color: rgb(255, 0, 0);">x</span><span style="color: rgb(0, 0, 255);">='310' </span><span style="color: rgb(255, 0, 0);">y</span><span style="color: rgb(0, 0, 255);">='420'  </span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br /><br /><br /></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">grabhics</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span></div><br /><br />简单页面 ： 给出 div 的 id （位置 和 xml 的出处 就可以了）load() 方法<br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 255);">&lt;!</span><span style="color: rgb(255, 0, 255);">DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//ZH-CN" "http://www.w3.org/TR/html4/strict.dtd"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">html</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">head</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />        </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">meta </span><span style="color: rgb(255, 0, 0);">http-equiv</span><span style="color: rgb(0, 0, 255);">="Content-Type"</span><span style="color: rgb(255, 0, 0);"> content</span><span style="color: rgb(0, 0, 255);">="text/html; charset=UTF-8"</span><span style="color: rgb(255, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br />        </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">script </span><span style="color: rgb(255, 0, 0);">language</span><span style="color: rgb(0, 0, 255);">="JavaScript"</span><span style="color: rgb(255, 0, 0);"> src</span><span style="color: rgb(0, 0, 255);">='../lib/prototype/wz_jsgraphics.js' </span><span style="color: rgb(0, 0, 255);">&gt;&lt;/</span><span style="color: rgb(128, 0, 0);">script</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />        </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">script </span><span style="color: rgb(255, 0, 0);">language</span><span style="color: rgb(0, 0, 255);">="JavaScript"</span><span style="color: rgb(255, 0, 0);"> src</span><span style="color: rgb(0, 0, 255);">="../lib/prototype/prototype.js"</span><span style="color: rgb(0, 0, 255);">&gt;&lt;/</span><span style="color: rgb(128, 0, 0);">script</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />        </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">script </span><span style="color: rgb(255, 0, 0);">language</span><span style="color: rgb(0, 0, 255);">="JavaScript"</span><span style="color: rgb(255, 0, 0);"> src</span><span style="color: rgb(0, 0, 255);">="../js/test.js"</span><span style="color: rgb(255, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">&gt;&lt;/</span><span style="color: rgb(128, 0, 0);">script</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />        </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">script </span><span style="color: rgb(255, 0, 0);">language</span><span style="color: rgb(0, 0, 255);">="JavaScript"</span><span style="color: rgb(255, 0, 0);"> src</span><span style="color: rgb(0, 0, 255);">="../js/Xmlgraphics.js"</span><span style="color: rgb(255, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">&gt;&lt;/</span><span style="color: rgb(128, 0, 0);">script</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />        <br />    </span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">head</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />    <br /> </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">body </span><span style="color: rgb(255, 0, 0);">onload</span><span style="color: rgb(0, 0, 255);">='load( </span><span style="color: rgb(255, 0, 0);">"http://127.0.0.1:8000/Mywz_jsgraphics/xml/graphics.xml" )'</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">     <br />   </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">div </span><span style="color: rgb(255, 0, 0);">id</span><span style="color: rgb(0, 0, 255);">="myCanvas"</span><span style="color: rgb(255, 0, 0);"> style</span><span style="color: rgb(0, 0, 255);">="position:relative;height:250px;width:100%;"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">input </span><span style="color: rgb(255, 0, 0);">type</span><span style="color: rgb(0, 0, 255);">='button' </span><span style="color: rgb(255, 0, 0);">onclick</span><span style="color: rgb(0, 0, 255);">='tt()' </span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">div</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"> <br /> </span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">body</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">html</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /><br /></span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">script</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"><br />    </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">function</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> tt(){<br />        </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">var</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> uu </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> 'strr'<br />         </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">var</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> g2 </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> getGdom(uu) ;<br />        getValue(uu).clear();<br />  <br />    }<br />    <br /></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">script</span><span style="color: rgb(0, 0, 255);">&gt;</span></div><br /><br /><img src ="http://www.blogjava.net/Good-Game/aggbug/129594.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/Good-Game/" target="_blank">G_G</a> 2007-07-11 13:31 <a href="http://www.blogjava.net/Good-Game/archive/2007/07/11/129594.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>WEB 图画 -- wz_jsgraphics 笔记</title><link>http://www.blogjava.net/Good-Game/archive/2007/07/05/128239.html</link><dc:creator>G_G</dc:creator><author>G_G</author><pubDate>Thu, 05 Jul 2007 01:32:00 GMT</pubDate><guid>http://www.blogjava.net/Good-Game/archive/2007/07/05/128239.html</guid><wfw:comment>http://www.blogjava.net/Good-Game/comments/128239.html</wfw:comment><comments>http://www.blogjava.net/Good-Game/archive/2007/07/05/128239.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/Good-Game/comments/commentRss/128239.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/Good-Game/services/trackbacks/128239.html</trackback:ping><description><![CDATA[1. 开始<br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><img id="Code_Closed_Image_093130" onclick="this.style.display='none'; Code_Closed_Text_093130.style.display='none'; Code_Open_Image_093130.style.display='inline'; Code_Open_Text_093130.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedBlock.gif" align="top" height="16" width="11" /><img id="Code_Open_Image_093130" style="display: none;" onclick="this.style.display='none'; Code_Open_Text_093130.style.display='none'; Code_Closed_Image_093130.style.display='inline'; Code_Closed_Text_093130.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" height="16" width="11" /><span id="Code_Closed_Text_093130" style="border: 1px solid rgb(128, 128, 128); background-color: rgb(255, 255, 255);"></span><span id="Code_Open_Text_093130" style="display: none;"><br /><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 255);">&lt;!</span><span style="color: rgb(255, 0, 255);">DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">html </span><span style="color: rgb(255, 0, 0);">xmlns</span><span style="color: rgb(0, 0, 255);">="http://www.w3.org/1999/xhtml"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">head</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">meta </span><span style="color: rgb(255, 0, 0);">http-equiv</span><span style="color: rgb(0, 0, 255);">="Content-Type"</span><span style="color: rgb(255, 0, 0);"> content</span><span style="color: rgb(0, 0, 255);">="text/html; charset=utf-8"</span><span style="color: rgb(255, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">title</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">TEST</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">title</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">script </span><span style="color: rgb(255, 0, 0);">type</span><span style="color: rgb(0, 0, 255);">="text/javascript"</span><span style="color: rgb(255, 0, 0);"> src</span><span style="color: rgb(0, 0, 255);">="wz_jsgraphics.js"</span><span style="color: rgb(0, 0, 255);">&gt;&lt;/</span><span style="color: rgb(128, 0, 0);">script</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">head</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">body</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />   </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">div </span><span style="color: rgb(255, 0, 0);">id</span><span style="color: rgb(0, 0, 255);">="myCanvas"</span><span style="color: rgb(255, 0, 0);"> style</span><span style="color: rgb(0, 0, 255);">="position:relative;height:250px;width:100%;"</span><span style="color: rgb(0, 0, 255);">&gt;&lt;/</span><span style="color: rgb(128, 0, 0);">div</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"> <br /> </span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">body</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">html</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /><br /></span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">script </span><span style="color: rgb(255, 0, 0);">type</span><span style="color: rgb(0, 0, 255);">="text/javascript"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"><br /></span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">&lt;!--</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"><br /><br /></span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">var</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> jg </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">new</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> jsGraphics(</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">myCanvas</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">);<br /><br />jg.setColor(</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">#00aaaa</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">);<br />jg.fillArc(</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">100</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">,</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">200</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">,</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">200</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">,</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">150</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">,</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">0</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">,</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">20</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">);<br /><br />jg.paint();<br /><br /><br /></span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">//</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">--&gt;</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">script</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"> </span></span></div><br /><img src ="http://www.blogjava.net/Good-Game/aggbug/128239.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/Good-Game/" target="_blank">G_G</a> 2007-07-05 09:32 <a href="http://www.blogjava.net/Good-Game/archive/2007/07/05/128239.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title> select集连+xml+选择提交 (Ajax局部刷新) </title><link>http://www.blogjava.net/Good-Game/archive/2007/07/02/127441.html</link><dc:creator>G_G</dc:creator><author>G_G</author><pubDate>Mon, 02 Jul 2007 02:22:00 GMT</pubDate><guid>http://www.blogjava.net/Good-Game/archive/2007/07/02/127441.html</guid><wfw:comment>http://www.blogjava.net/Good-Game/comments/127441.html</wfw:comment><comments>http://www.blogjava.net/Good-Game/archive/2007/07/02/127441.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.blogjava.net/Good-Game/comments/commentRss/127441.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/Good-Game/services/trackbacks/127441.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->				1 &lt;rows&gt;&lt;row id='1703' name='武昌南机务段    ' /&gt;&lt;row id='1701' name='襄樊北机务段    ' /&gt;...&nbsp;&nbsp;<a href='http://www.blogjava.net/Good-Game/archive/2007/07/02/127441.html'>阅读全文</a><img src ="http://www.blogjava.net/Good-Game/aggbug/127441.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/Good-Game/" target="_blank">G_G</a> 2007-07-02 10:22 <a href="http://www.blogjava.net/Good-Game/archive/2007/07/02/127441.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>页面嵌入在线聊天 (prototype)</title><link>http://www.blogjava.net/Good-Game/archive/2007/06/13/123791.html</link><dc:creator>G_G</dc:creator><author>G_G</author><pubDate>Wed, 13 Jun 2007 02:22:00 GMT</pubDate><guid>http://www.blogjava.net/Good-Game/archive/2007/06/13/123791.html</guid><wfw:comment>http://www.blogjava.net/Good-Game/comments/123791.html</wfw:comment><comments>http://www.blogjava.net/Good-Game/archive/2007/06/13/123791.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.blogjava.net/Good-Game/comments/commentRss/123791.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/Good-Game/services/trackbacks/123791.html</trackback:ping><description><![CDATA[
		<strong>
				<font color="#ff0000">问题 :</font>
		</strong> 提供给B/S 结构一个实时的运行展现<br /><strong><font color="#0000ff">解决:</font></strong>   prototype 的 Ajax.PeriodicalUpdater 更新<br />            prototype 的    Ajax.Request 语句提交<br />            action 语句的组织展现<br /><a href="/Files/Good-Game/take.rar"><br />http://www.blogjava.net/Files/Good-Game/take.rar</a><br />    没有lib 大家可以就加 struct 相关 lib 就可以了<br /><br /><strong><font color="#006400">说明:</font></strong> <br />      <br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><span style="color: rgb(0, 0, 0);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: rgb(0, 0, 255);">&lt;!</span><span style="color: rgb(255, 0, 255);">DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">html</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />  </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">head</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />          </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">SCRIPT </span><span style="color: rgb(255, 0, 0);">language</span><span style="color: rgb(0, 0, 255);">="Javascript"</span><span style="color: rgb(255, 0, 0);"> src</span><span style="color: rgb(0, 0, 255);">="prototype1.5.0.js"</span><span style="color: rgb(0, 0, 255);">&gt;&lt;/</span><span style="color: rgb(128, 0, 0);">SCRIPT</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />  </span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">head</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><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: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">body </span><span style="color: rgb(255, 0, 0);">onload</span><span style="color: rgb(0, 0, 255);">="Said()"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"> <br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />      </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">INPUT </span><span style="color: rgb(255, 0, 0);">id</span><span style="color: rgb(0, 0, 255);">='name1' </span><span style="color: rgb(255, 0, 0);">type</span><span style="color: rgb(0, 0, 255);">="text"</span><span style="color: rgb(255, 0, 0);"> size</span><span style="color: rgb(0, 0, 255);">="10"</span><span style="color: rgb(255, 0, 0);"> value</span><span style="color: rgb(0, 0, 255);">="请输入名字"</span><span style="color: rgb(255, 0, 0);"> onfocus</span><span style="color: rgb(0, 0, 255);">="if($('name1').value=='请输入名字') $('name1').innerText='' "</span><span style="color: rgb(255, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />      </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">INPUT </span><span style="color: rgb(255, 0, 0);">id</span><span style="color: rgb(0, 0, 255);">='text1' </span><span style="color: rgb(255, 0, 0);">type</span><span style="color: rgb(0, 0, 255);">="text"</span><span style="color: rgb(255, 0, 0);"> onkeydown</span><span style="color: rgb(0, 0, 255);">="if(event.keyCode==13){event.keyCode=0; onb();}"</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />      </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">INPUT </span><span style="color: rgb(255, 0, 0);">id</span><span style="color: rgb(0, 0, 255);">='button1' </span><span style="color: rgb(255, 0, 0);">type</span><span style="color: rgb(0, 0, 255);">="button"</span><span style="color: rgb(255, 0, 0);"> value</span><span style="color: rgb(0, 0, 255);">="test"</span><span style="color: rgb(255, 0, 0);"> onclick</span><span style="color: rgb(0, 0, 255);">='onb()' </span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />  </span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">body</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />  </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">div </span><span style="color: rgb(255, 0, 0);">id</span><span style="color: rgb(0, 0, 255);">='div1'</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">html</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /><img id="Codehighlighter1_549_1348_Open_Image" onclick="this.style.display='none'; Codehighlighter1_549_1348_Open_Text.style.display='none'; Codehighlighter1_549_1348_Closed_Image.style.display='inline'; Codehighlighter1_549_1348_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_549_1348_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_549_1348_Closed_Text.style.display='none'; Codehighlighter1_549_1348_Open_Image.style.display='inline'; Codehighlighter1_549_1348_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedBlock.gif" align="top" /></span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">script </span><span style="color: rgb(255, 0, 0);">type</span><span style="color: rgb(0, 0, 255);">="text/javascript"</span><span style="color: rgb(255, 0, 0);">  </span><span style="color: rgb(0, 0, 255);">&gt;</span><span id="Codehighlighter1_549_1348_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="http://www.blogjava.net/images/dot.gif" /></span><span id="Codehighlighter1_549_1348_Open_Text"><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />     <font color="#008000">  <font style="background-color: rgb(255, 255, 255);"> //语句异步提交给服务器 Ajax.Request</font></font><br /><img id="Codehighlighter1_566_1005_Open_Image" onclick="this.style.display='none'; Codehighlighter1_566_1005_Open_Text.style.display='none'; Codehighlighter1_566_1005_Closed_Image.style.display='inline'; Codehighlighter1_566_1005_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_566_1005_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_566_1005_Closed_Text.style.display='none'; Codehighlighter1_566_1005_Open_Image.style.display='inline'; Codehighlighter1_566_1005_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />    </span><span style="color: rgb(0, 0, 255); background-color: rgb(245, 245, 245);">function</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);"> onb()</span><span id="Codehighlighter1_566_1005_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="http://www.blogjava.net/images/dot.gif" /></span><span id="Codehighlighter1_566_1005_Open_Text"><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);">{                                          <br /><img id="Codehighlighter1_624_668_Open_Image" onclick="this.style.display='none'; Codehighlighter1_624_668_Open_Text.style.display='none'; Codehighlighter1_624_668_Closed_Image.style.display='inline'; Codehighlighter1_624_668_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_624_668_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_624_668_Closed_Text.style.display='none'; Codehighlighter1_624_668_Open_Image.style.display='inline'; Codehighlighter1_624_668_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />      </span><span style="color: rgb(0, 0, 255); background-color: rgb(245, 245, 245);">if</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);">($('name1').value</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);">==</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);">'请输入名字' </span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);">||</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);"> $('name1').value</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);">==</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);">'')</span><span id="Codehighlighter1_624_668_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="http://www.blogjava.net/images/dot.gif" /></span><span id="Codehighlighter1_624_668_Open_Text"><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);">{<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />          window.alert('请输入名字');<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />          </span><span style="color: rgb(0, 0, 255); background-color: rgb(245, 245, 245);">return</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);"> <br /><img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />      }</span></span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />      <br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />      </span><span style="color: rgb(0, 0, 255); background-color: rgb(245, 245, 245);">var</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);"> url </span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);">=</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);"> 'http:</span><span style="color: rgb(0, 128, 0); background-color: rgb(245, 245, 245);">//</span><span style="color: rgb(0, 128, 0); background-color: rgb(245, 245, 245);">192.168.1.130:7000/xxs/mySaid.do?name='+$F('name1')+'&amp;take='+$F('text1');                </span><span style="color: rgb(0, 128, 0); background-color: rgb(245, 245, 245);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);">      </span><span style="color: rgb(0, 0, 255); background-color: rgb(245, 245, 245);">new</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);"> Ajax.Request(<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        url,<br /><img id="Codehighlighter1_818_885_Open_Image" onclick="this.style.display='none'; Codehighlighter1_818_885_Open_Text.style.display='none'; Codehighlighter1_818_885_Closed_Image.style.display='inline'; Codehighlighter1_818_885_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_818_885_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_818_885_Closed_Text.style.display='none'; Codehighlighter1_818_885_Open_Image.style.display='inline'; Codehighlighter1_818_885_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />        </span><span id="Codehighlighter1_818_885_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="http://www.blogjava.net/images/dot.gif" /></span><span id="Codehighlighter1_818_885_Open_Text"><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);">{<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />            method: 'get',<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />            onComplete: action              <br /><img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />        }</span></span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);">);<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        <br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        $('name1').readOnly </span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);">=</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);"> </span><span style="color: rgb(0, 0, 255); background-color: rgb(245, 245, 245);">true</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        $('name1').style.background </span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);">=</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);"> 'lightblue'<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        $('text1').innerText</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);">=</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);">'' <br /><img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />    }</span></span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />       <font color="#008000">//局部刷新 并提取 语句<br /></font><img id="Codehighlighter1_1025_1247_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1025_1247_Open_Text.style.display='none'; Codehighlighter1_1025_1247_Closed_Image.style.display='inline'; Codehighlighter1_1025_1247_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_1025_1247_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_1025_1247_Closed_Text.style.display='none'; Codehighlighter1_1025_1247_Open_Image.style.display='inline'; Codehighlighter1_1025_1247_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />    </span><span style="color: rgb(0, 0, 255); background-color: rgb(245, 245, 245);">function</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);"> Said()</span><span id="Codehighlighter1_1025_1247_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="http://www.blogjava.net/images/dot.gif" /></span><span id="Codehighlighter1_1025_1247_Open_Text"><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);">{<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        </span><span style="color: rgb(0, 0, 255); background-color: rgb(245, 245, 245);">var</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);"> url </span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);">=</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);"> 'http:</span><span style="color: rgb(0, 128, 0); background-color: rgb(245, 245, 245);">//</span><span style="color: rgb(0, 128, 0); background-color: rgb(245, 245, 245);">192.168.1.130:7000/xxs/mySaid.do';  </span><span style="color: rgb(0, 128, 0); background-color: rgb(245, 245, 245);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);">        </span><span style="color: rgb(0, 0, 255); background-color: rgb(245, 245, 245);">new</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);"> Ajax.PeriodicalUpdater(<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />            'div1',<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />            url,<br /><img id="Codehighlighter1_1136_1239_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1136_1239_Open_Text.style.display='none'; Codehighlighter1_1136_1239_Closed_Image.style.display='inline'; Codehighlighter1_1136_1239_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_1136_1239_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_1136_1239_Closed_Text.style.display='none'; Codehighlighter1_1136_1239_Open_Image.style.display='inline'; Codehighlighter1_1136_1239_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />            </span><span id="Codehighlighter1_1136_1239_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="http://www.blogjava.net/images/dot.gif" /></span><span id="Codehighlighter1_1136_1239_Open_Text"><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);">{<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />                method: 'get',<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />                onComplete: SumSaid,<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />                evalScripts: </span><span style="color: rgb(0, 0, 255); background-color: rgb(245, 245, 245);">true</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);">,<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />                frequency: </span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);">1</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);">,<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />                decay: </span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);">1</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />            }</span></span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        );<br /><img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />    }</span></span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />     <strong><font color="#008000">  //展现<br /></font></strong><img id="Codehighlighter1_1274_1319_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1274_1319_Open_Text.style.display='none'; Codehighlighter1_1274_1319_Closed_Image.style.display='inline'; Codehighlighter1_1274_1319_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_1274_1319_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_1274_1319_Closed_Text.style.display='none'; Codehighlighter1_1274_1319_Open_Image.style.display='inline'; Codehighlighter1_1274_1319_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />    </span><span style="color: rgb(0, 0, 255); background-color: rgb(245, 245, 245);">function</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);"> SumSaid(req)</span><span id="Codehighlighter1_1274_1319_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="http://www.blogjava.net/images/dot.gif" /></span><span id="Codehighlighter1_1274_1319_Open_Text"><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);">{<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        $('div1').innerHTML </span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);">=</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);"> req.responseText;<br /><img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />    }</span></span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" /><br /><img id="Codehighlighter1_1343_1346_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1343_1346_Open_Text.style.display='none'; Codehighlighter1_1343_1346_Closed_Image.style.display='inline'; Codehighlighter1_1343_1346_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_1343_1346_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_1343_1346_Closed_Text.style.display='none'; Codehighlighter1_1343_1346_Open_Image.style.display='inline'; Codehighlighter1_1343_1346_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />    </span><span style="color: rgb(0, 0, 255); background-color: rgb(245, 245, 245);">function</span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);"> action(req)</span><span id="Codehighlighter1_1343_1346_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="http://www.blogjava.net/images/dot.gif" /></span><span id="Codehighlighter1_1343_1346_Open_Text"><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);">{<br /><img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />    }</span></span><span style="color: rgb(0, 0, 0); background-color: rgb(245, 245, 245);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />    </span></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">script</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    </span></div><br />Action <br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><span style="color: rgb(0, 0, 0);">   <font color="#0000ff">private </font>static int SIZE = 30 ;<br />    <font color="#0000ff"> private </font>List list = new ArrayList();<br /><br />     </span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);"> ActionForward execute(<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        ActionMapping mapping,<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        ActionForm form,<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        HttpServletRequest request,<br /><img id="Codehighlighter1_137_522_Open_Image" onclick="this.style.display='none'; Codehighlighter1_137_522_Open_Text.style.display='none'; Codehighlighter1_137_522_Closed_Image.style.display='inline'; Codehighlighter1_137_522_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_137_522_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_137_522_Closed_Text.style.display='none'; Codehighlighter1_137_522_Open_Image.style.display='inline'; Codehighlighter1_137_522_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedBlock.gif" align="top" />        HttpServletResponse response) </span><span id="Codehighlighter1_137_522_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="http://www.blogjava.net/images/dot.gif" /></span><span id="Codehighlighter1_137_522_Open_Text"><span style="color: rgb(0, 0, 0);">{<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        String take </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> request.getParameter(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">take</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">) ;<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        String name </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> request.getParameter(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">name</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">) ;<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        response.addHeader(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Cache-Control</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">no-cache</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">); <br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        <br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        request.setAttribute(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">said</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">,DueiLie(name,take));<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" /><br /><img id="Codehighlighter1_363_454_Open_Image" onclick="this.style.display='none'; Codehighlighter1_363_454_Open_Text.style.display='none'; Codehighlighter1_363_454_Closed_Image.style.display='inline'; Codehighlighter1_363_454_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_363_454_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_363_454_Closed_Text.style.display='none'; Codehighlighter1_363_454_Open_Image.style.display='inline'; Codehighlighter1_363_454_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />        </span><span style="color: rgb(0, 0, 255);">try</span><span style="color: rgb(0, 0, 0);"> </span><span id="Codehighlighter1_363_454_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="http://www.blogjava.net/images/dot.gif" /></span><span id="Codehighlighter1_363_454_Open_Text"><span style="color: rgb(0, 0, 0);">{<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />            request.setCharacterEncoding(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">gb2312</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />            response.setCharacterEncoding(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">gb2312</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br /><img id="Codehighlighter1_476_480_Open_Image" onclick="this.style.display='none'; Codehighlighter1_476_480_Open_Text.style.display='none'; Codehighlighter1_476_480_Closed_Image.style.display='inline'; Codehighlighter1_476_480_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_476_480_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_476_480_Closed_Text.style.display='none'; Codehighlighter1_476_480_Open_Image.style.display='inline'; Codehighlighter1_476_480_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />        }</span></span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">catch</span><span style="color: rgb(0, 0, 0);"> (Exception e) </span><span id="Codehighlighter1_476_480_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="http://www.blogjava.net/images/dot.gif" /></span><span id="Codehighlighter1_476_480_Open_Text"><span style="color: rgb(0, 0, 0);">{<br /><img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />        }</span></span><span style="color: rgb(0, 0, 0);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" /><br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        </span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);"> mapping.findForward(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">list</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br /><img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />    }</span></span><span style="color: rgb(0, 0, 0);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />      <br />    <font color="#006400">    //语句的组织</font><br /><img id="Codehighlighter1_573_1038_Open_Image" onclick="this.style.display='none'; Codehighlighter1_573_1038_Open_Text.style.display='none'; Codehighlighter1_573_1038_Closed_Image.style.display='inline'; Codehighlighter1_573_1038_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_573_1038_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_573_1038_Closed_Text.style.display='none'; Codehighlighter1_573_1038_Open_Image.style.display='inline'; Codehighlighter1_573_1038_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedBlock.gif" align="top" />    </span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);"> String DueiLie(String name,String take)</span><span id="Codehighlighter1_573_1038_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="http://www.blogjava.net/images/dot.gif" /></span><span id="Codehighlighter1_573_1038_Open_Text"><span style="color: rgb(0, 0, 0);">{<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        <br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        StringBuffer strb  </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);"> StringBuffer();<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">(name</span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 255);">null</span><span style="color: rgb(0, 0, 0);">||</span><span style="color: rgb(0, 0, 0);">take</span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 255);">null</span><span style="color: rgb(0, 0, 0);">);<br /><img id="Codehighlighter1_657_865_Open_Image" onclick="this.style.display='none'; Codehighlighter1_657_865_Open_Text.style.display='none'; Codehighlighter1_657_865_Closed_Image.style.display='inline'; Codehighlighter1_657_865_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_657_865_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_657_865_Closed_Text.style.display='none'; Codehighlighter1_657_865_Open_Image.style.display='inline'; Codehighlighter1_657_865_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />        </span><span style="color: rgb(0, 0, 255);">else</span><span id="Codehighlighter1_657_865_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="http://www.blogjava.net/images/dot.gif" /></span><span id="Codehighlighter1_657_865_Open_Text"><span style="color: rgb(0, 0, 0);">{<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />            strb.append( name ).append(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> : </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">).append(take).append(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&lt;/br&gt;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">) ;<br /><img id="Codehighlighter1_751_818_Open_Image" onclick="this.style.display='none'; Codehighlighter1_751_818_Open_Text.style.display='none'; Codehighlighter1_751_818_Closed_Image.style.display='inline'; Codehighlighter1_751_818_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_751_818_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_751_818_Closed_Text.style.display='none'; Codehighlighter1_751_818_Open_Image.style.display='inline'; Codehighlighter1_751_818_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />            </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">(list.size()</span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 0);">SIZE)</span><span id="Codehighlighter1_751_818_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="http://www.blogjava.net/images/dot.gif" /></span><span id="Codehighlighter1_751_818_Open_Text"><span style="color: rgb(0, 0, 0);">{<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />                list.remove(list.get(</span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">));<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />                list.add(strb.toString() );<br /><img id="Codehighlighter1_823_861_Open_Image" onclick="this.style.display='none'; Codehighlighter1_823_861_Open_Text.style.display='none'; Codehighlighter1_823_861_Closed_Image.style.display='inline'; Codehighlighter1_823_861_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_823_861_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_823_861_Closed_Text.style.display='none'; Codehighlighter1_823_861_Open_Image.style.display='inline'; Codehighlighter1_823_861_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />            }</span></span><span style="color: rgb(0, 0, 255);">else</span><span id="Codehighlighter1_823_861_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="http://www.blogjava.net/images/dot.gif" /></span><span id="Codehighlighter1_823_861_Open_Text"><span style="color: rgb(0, 0, 0);">{<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />                list.add( strb.toString() );<br /><img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />            }</span></span><span style="color: rgb(0, 0, 0);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />        }</span></span><span style="color: rgb(0, 0, 0);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        StringBuffer takes </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);"> StringBuffer();<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        Iterator it </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> list.iterator();<br /><img id="Codehighlighter1_964_1008_Open_Image" onclick="this.style.display='none'; Codehighlighter1_964_1008_Open_Text.style.display='none'; Codehighlighter1_964_1008_Closed_Image.style.display='inline'; Codehighlighter1_964_1008_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_964_1008_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_964_1008_Closed_Text.style.display='none'; Codehighlighter1_964_1008_Open_Image.style.display='inline'; Codehighlighter1_964_1008_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />        </span><span style="color: rgb(0, 0, 255);">while</span><span style="color: rgb(0, 0, 0);">(it.hasNext())</span><span id="Codehighlighter1_964_1008_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="http://www.blogjava.net/images/dot.gif" /></span><span id="Codehighlighter1_964_1008_Open_Text"><span style="color: rgb(0, 0, 0);">{<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />            takes.insert( </span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">,(String)it.next() );<br /><img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />        }</span></span><span style="color: rgb(0, 0, 0);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        </span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);"> takes.toString();<br /><img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />    }</span></span></div><br />jsp ( list ) 中文处理 jsp 就一句话 <br />&lt;%= new String(((String)request.getAttribute("said")).getBytes("iso8859-1"),"GBK") %&gt;<br /><br /><strong><font color="#008000">心得:别人做到了 我也能做到<br />         要学的东西很多 多看书 多留意 多保护好身体 <img src="http://www.blogjava.net/Emoticons/emmoon.gif" border="0" height="19" width="19" /></font></strong><img src ="http://www.blogjava.net/Good-Game/aggbug/123791.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/Good-Game/" target="_blank">G_G</a> 2007-06-13 10:22 <a href="http://www.blogjava.net/Good-Game/archive/2007/06/13/123791.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>HTML 中 select 选择 </title><link>http://www.blogjava.net/Good-Game/archive/2007/06/12/123640.html</link><dc:creator>G_G</dc:creator><author>G_G</author><pubDate>Tue, 12 Jun 2007 08:29:00 GMT</pubDate><guid>http://www.blogjava.net/Good-Game/archive/2007/06/12/123640.html</guid><wfw:comment>http://www.blogjava.net/Good-Game/comments/123640.html</wfw:comment><comments>http://www.blogjava.net/Good-Game/archive/2007/06/12/123640.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/Good-Game/comments/commentRss/123640.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/Good-Game/services/trackbacks/123640.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 id="Codehighlighter1_33_309_Open_Image" onclick="this.style.display='none'; Codehighlighter1_33_309_Open_Text.style.display='none'; Codehighlighter1_33_309_Closed_Image.style.display='inline'; Codehighlighter1_33_309_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" />
				<img id="Codehighlighter1_33_309_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_33_309_Closed_Text.style.display='none'; Codehighlighter1_33_309_Open_Image.style.display='inline'; Codehighlighter1_33_309_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedBlock.gif" align="top" />
				<span style="COLOR: #000000">    </span>
				<span style="COLOR: #0000ff">function</span>
				<span style="COLOR: #000000"> selectValue(select,val)</span>
				<span id="Codehighlighter1_33_309_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_33_309_Open_Text">
						<span style="COLOR: #000000">{<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        </span>
						<span style="COLOR: #0000ff">var</span>
						<span style="COLOR: #000000"> opt </span>
						<span style="COLOR: #000000">=</span>
						<span style="COLOR: #000000"> select.options ;<br /><img id="Codehighlighter1_97_192_Open_Image" onclick="this.style.display='none'; Codehighlighter1_97_192_Open_Text.style.display='none'; Codehighlighter1_97_192_Closed_Image.style.display='inline'; Codehighlighter1_97_192_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_97_192_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_97_192_Closed_Text.style.display='none'; Codehighlighter1_97_192_Open_Image.style.display='inline'; Codehighlighter1_97_192_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />                </span>
						<span style="COLOR: #0000ff">for</span>
						<span style="COLOR: #000000">(</span>
						<span style="COLOR: #0000ff">var</span>
						<span style="COLOR: #000000"> i</span>
						<span style="COLOR: #000000">=</span>
						<span style="COLOR: #000000">0</span>
						<span style="COLOR: #000000">;i</span>
						<span style="COLOR: #000000">&lt;</span>
						<span style="COLOR: #000000">opt.length;i</span>
						<span style="COLOR: #000000">++</span>
						<span style="COLOR: #000000">)</span>
						<span id="Codehighlighter1_97_192_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_97_192_Open_Text">
								<span style="COLOR: #000000">{<br /><img id="Codehighlighter1_141_188_Open_Image" onclick="this.style.display='none'; Codehighlighter1_141_188_Open_Text.style.display='none'; Codehighlighter1_141_188_Closed_Image.style.display='inline'; Codehighlighter1_141_188_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_141_188_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_141_188_Closed_Text.style.display='none'; Codehighlighter1_141_188_Open_Image.style.display='inline'; Codehighlighter1_141_188_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />            </span>
								<span style="COLOR: #0000ff">if</span>
								<span style="COLOR: #000000">( opt[i].firstChild.nodeValue </span>
								<span style="COLOR: #000000">==</span>
								<span style="COLOR: #000000"> val)</span>
								<span id="Codehighlighter1_141_188_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_141_188_Open_Text">
										<span style="COLOR: #000000">{<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />                opt[i].selected </span>
										<span style="COLOR: #000000">=</span>
										<span style="COLOR: #000000"> </span>
										<span style="COLOR: #0000ff">true</span>
										<span style="COLOR: #000000">;<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />                </span>
										<span style="COLOR: #0000ff">return</span>
										<span style="COLOR: #000000"> ; <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/ExpandedSubBlockEnd.gif" align="top" />        }</span>
						</span>
						<span style="COLOR: #000000">
								<br />
								<img id="Codehighlighter1_225_305_Open_Image" onclick="this.style.display='none'; Codehighlighter1_225_305_Open_Text.style.display='none'; Codehighlighter1_225_305_Closed_Image.style.display='inline'; Codehighlighter1_225_305_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" />
								<img id="Codehighlighter1_225_305_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_225_305_Closed_Text.style.display='none'; Codehighlighter1_225_305_Open_Image.style.display='inline'; Codehighlighter1_225_305_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />        </span>
						<span style="COLOR: #0000ff">for</span>
						<span style="COLOR: #000000">(</span>
						<span style="COLOR: #0000ff">var</span>
						<span style="COLOR: #000000"> i</span>
						<span style="COLOR: #000000">=</span>
						<span style="COLOR: #000000">0</span>
						<span style="COLOR: #000000">;i</span>
						<span style="COLOR: #000000">&lt;</span>
						<span style="COLOR: #000000">opt.length;i</span>
						<span style="COLOR: #000000">++</span>
						<span style="COLOR: #000000">)</span>
						<span id="Codehighlighter1_225_305_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_225_305_Open_Text">
								<span style="COLOR: #000000">{<br /><img id="Codehighlighter1_254_301_Open_Image" onclick="this.style.display='none'; Codehighlighter1_254_301_Open_Text.style.display='none'; Codehighlighter1_254_301_Closed_Image.style.display='inline'; Codehighlighter1_254_301_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_254_301_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_254_301_Closed_Text.style.display='none'; Codehighlighter1_254_301_Open_Image.style.display='inline'; Codehighlighter1_254_301_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />            </span>
								<span style="COLOR: #0000ff">if</span>
								<span style="COLOR: #000000">( opt[i].value </span>
								<span style="COLOR: #000000">==</span>
								<span style="COLOR: #000000"> val)</span>
								<span id="Codehighlighter1_254_301_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_254_301_Open_Text">
										<span style="COLOR: #000000">{<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />                opt[i].selected </span>
										<span style="COLOR: #000000">=</span>
										<span style="COLOR: #000000"> </span>
										<span style="COLOR: #0000ff">true</span>
										<span style="COLOR: #000000">;<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />                </span>
										<span style="COLOR: #0000ff">return</span>
										<span style="COLOR: #000000"> ; <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/ExpandedSubBlockEnd.gif" align="top" />        }</span>
						</span>
						<span style="COLOR: #000000">
								<br />
								<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />
								<br />
								<img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />    }</span>
				</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    </span>
		</div>
<img src ="http://www.blogjava.net/Good-Game/aggbug/123640.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/Good-Game/" target="_blank">G_G</a> 2007-06-12 16:29 <a href="http://www.blogjava.net/Good-Game/archive/2007/06/12/123640.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>用javascript 建 tree</title><link>http://www.blogjava.net/Good-Game/archive/2007/06/06/122318.html</link><dc:creator>G_G</dc:creator><author>G_G</author><pubDate>Wed, 06 Jun 2007 03:01:00 GMT</pubDate><guid>http://www.blogjava.net/Good-Game/archive/2007/06/06/122318.html</guid><wfw:comment>http://www.blogjava.net/Good-Game/comments/122318.html</wfw:comment><comments>http://www.blogjava.net/Good-Game/archive/2007/06/06/122318.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.blogjava.net/Good-Game/comments/commentRss/122318.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/Good-Game/services/trackbacks/122318.html</trackback:ping><description><![CDATA[
		<font color="#ff0000">
				<b>问题：</b>
		</font>总是用别人的框架写树以为很难，其实。。。<br /><font color="#0000ff"><b>解决：</b></font>以 if event.srcElement.id=="foldheader1" 得到选项<br />         var srcIndex = event.srcElement.sourceIndex<br />          再 var nested = document.all[srcIndex+1] 取出选择的下一个 ( +1 )<br />                nested.style.display=' ？？ ' 就可以了<br />                并注意结构是<br />                                &lt;选项/&gt;   <br />                                    &lt;url&gt;  <font color="#008000"><font color="#006400">//srcIndex+1 下个 可见不可见 就是 &lt;url&gt;</font></font><br />                                        &lt;li&gt;...&lt;/li&gt;<br />                                       &lt;li&gt;...&lt;/li&gt;<br />                                          ....<br />                            &lt;/url&gt;<br /><br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">HEAD</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /><br />    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">SCRIPT </span><span style="color: rgb(255, 0, 0);">language</span><span style="color: rgb(0, 0, 255);">=JavaScript1.2</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"><br />    </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">function</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> change(){<br />       </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">if</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">(</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">!</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">document.all)<br />          </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">return</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"><br />       </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">if</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> (event.srcElement.id</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">==</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">foldheader1</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">) {<br />          </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">var</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> srcIndex </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> event.srcElement.sourceIndex<br />          <br />          </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">var</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> nested </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> document.all[srcIndex</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">+</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">1</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">]<br /><br />          </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">if</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> (nested.style.display</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">==</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">none</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">) {<br />             nested.style.display</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">''<br />          }<br />          </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">else</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"> {<br />             nested.style.display</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">none</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">"</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"><br />          }<br />       }<br />    }<br />    </span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">SCRIPT</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /><br />    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">STYLE</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="background-color: rgb(245, 245, 245); color: rgb(128, 0, 0);"><br />        #foldheader1 </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">{      <font color="#006400">&lt;!-- 图的加入--&gt;</font></span><span style="background-color: rgb(245, 245, 245); color: rgb(255, 0, 0);"><br />            CURSOR</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">:</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);"> hand</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">;</span><span style="background-color: rgb(245, 245, 245); color: rgb(255, 0, 0);"> LIST-STYLE</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">:</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);"> url(../rlzy/images/imbrex.gif) <br />        </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">}</span><span style="background-color: rgb(245, 245, 245); color: rgb(128, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">STYLE</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">HEAD</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">BODY </span><span style="color: rgb(255, 0, 0);">leftMargin</span><span style="color: rgb(0, 0, 255);">=0 </span><span style="color: rgb(255, 0, 0);">rightMargin</span><span style="color: rgb(0, 0, 255);">=0 </span><span style="color: rgb(255, 0, 0);">onload</span><span style="color: rgb(0, 0, 255);">="window.status='';"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />  </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">font </span><span style="color: rgb(255, 0, 0);">size</span><span style="color: rgb(0, 0, 255);">="-1"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 0);">&lt;!--</span><span style="color: rgb(0, 128, 0);"> DIV id=Layer7 style="HEIGHT: 127px; LEFT: -1px; POSITION: absolute; TOP: 34px; WIDTH: 47px; Z-INDEX: 1"&gt;&lt;/DIV</span><span style="color: rgb(0, 128, 0);">--&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">DIV </span><span style="color: rgb(255, 0, 0);">id</span><span style="color: rgb(0, 0, 255);">="Layer2"</span><span style="color: rgb(255, 0, 0);"> style</span><span style="color: rgb(0, 0, 255);">="HEIGHT: 134px; LEFT: 2px; POSITION: absolute; TOP: 30px; WIDTH: 193px; Z-INDEX: 3"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />  </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">UL </span><span style="color: rgb(255, 0, 0);">style</span><span style="color: rgb(0, 0, 255);">="MARGIN-LEFT: 20px"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"> <br />        <br />        <br />        <br />        </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">li</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />          </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">a </span><span style="color: rgb(255, 0, 0);">href</span><span style="color: rgb(0, 0, 255);">="#"</span><span style="color: rgb(255, 0, 0);"> onClick</span><span style="color: rgb(0, 0, 255);">="change()"</span><span style="color: rgb(255, 0, 0);"> id</span><span style="color: rgb(0, 0, 255);">="foldheader1"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">乘务员基本档案</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">a</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />          </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">ul </span><span style="color: rgb(255, 0, 0);">id</span><span style="color: rgb(0, 0, 255);">=foldinglist </span><span style="color: rgb(255, 0, 0);">style</span><span style="color: rgb(0, 0, 255);">="''"</span><span style="color: rgb(255, 0, 0);"> style</span><span style="color: rgb(0, 0, 255);">="MARGIN-LEFT: 10px"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />            </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">li</span><span style="color: rgb(0, 0, 255);">&gt;&lt;</span><span style="color: rgb(128, 0, 0);">a </span><span style="color: rgb(255, 0, 0);">href</span><span style="color: rgb(0, 0, 255);">="/rlzy/jcyy/basePersonnelList.do?do=byCorp"</span><span style="color: rgb(255, 0, 0);"> target</span><span style="color: rgb(0, 0, 255);">="content"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">人员基本档案1</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">a</span><span style="color: rgb(0, 0, 255);">&gt;&lt;/</span><span style="color: rgb(128, 0, 0);">li</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />            </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">li</span><span style="color: rgb(0, 0, 255);">&gt;&lt;</span><span style="color: rgb(128, 0, 0);">a </span><span style="color: rgb(255, 0, 0);">href</span><span style="color: rgb(0, 0, 255);">=""</span><span style="color: rgb(255, 0, 0);"> target</span><span style="color: rgb(0, 0, 255);">="content"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">人员基本档案2</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">a</span><span style="color: rgb(0, 0, 255);">&gt;&lt;/</span><span style="color: rgb(128, 0, 0);">li</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />          </span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">ul</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />        </span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">li</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />        <br />      </span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">UL</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">DIV</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">        <br />  </span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">font</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">BODY</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">html</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span></div><br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">FRAMESET </span><span style="color: rgb(255, 0, 0);">rows</span><span style="color: rgb(0, 0, 255);">="84,*"</span><span style="color: rgb(255, 0, 0);"> cols</span><span style="color: rgb(0, 0, 255);">="*"</span><span style="color: rgb(255, 0, 0);"> frameborder</span><span style="color: rgb(0, 0, 255);">="no"</span><span style="color: rgb(255, 0, 0);"> framespacing</span><span style="color: rgb(0, 0, 255);">="0"</span><span style="color: rgb(255, 0, 0);"> border</span><span style="color: rgb(0, 0, 255);">="0"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />  </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">FRAME </span><span style="color: rgb(255, 0, 0);">src</span><span style="color: rgb(0, 0, 255);">="header.html"</span><span style="color: rgb(255, 0, 0);"> name</span><span style="color: rgb(0, 0, 255);">="header"</span><span style="color: rgb(255, 0, 0);"> scrolling</span><span style="color: rgb(0, 0, 255);">="no"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />  </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">FRAMESET </span><span style="color: rgb(255, 0, 0);">cols</span><span style="color: rgb(0, 0, 255);">="125,*"</span><span style="color: rgb(255, 0, 0);"> frameborder</span><span style="color: rgb(0, 0, 255);">="no"</span><span style="color: rgb(255, 0, 0);"> framespacing</span><span style="color: rgb(0, 0, 255);">="0"</span><span style="color: rgb(255, 0, 0);"> border</span><span style="color: rgb(0, 0, 255);">="0"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">FRAME </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="treefrm"</span><span style="color: rgb(255, 0, 0);"> src</span><span style="color: rgb(0, 0, 255);">="dir2.jsp?code=0"</span><span style="color: rgb(255, 0, 0);"> scrolling</span><span style="color: rgb(0, 0, 255);">="no"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">FRAME </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="content"</span><span style="color: rgb(255, 0, 0);"> src</span><span style="color: rgb(0, 0, 255);">="welcome.jsp"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />  </span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">FRAMESET</span><span style="color: rgb(0, 0, 255);">&gt;</span></div><br /><br /><font color="#006400"><b>心得：其实很简单，只是你不知道</b></font><br /><br /><img src ="http://www.blogjava.net/Good-Game/aggbug/122318.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/Good-Game/" target="_blank">G_G</a> 2007-06-06 11:01 <a href="http://www.blogjava.net/Good-Game/archive/2007/06/06/122318.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title> ajax 对 struct 异步提交 标签的解决办法</title><link>http://www.blogjava.net/Good-Game/archive/2007/05/25/120062.html</link><dc:creator>G_G</dc:creator><author>G_G</author><pubDate>Fri, 25 May 2007 10:44:00 GMT</pubDate><guid>http://www.blogjava.net/Good-Game/archive/2007/05/25/120062.html</guid><wfw:comment>http://www.blogjava.net/Good-Game/comments/120062.html</wfw:comment><comments>http://www.blogjava.net/Good-Game/archive/2007/05/25/120062.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/Good-Game/comments/commentRss/120062.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/Good-Game/services/trackbacks/120062.html</trackback:ping><description><![CDATA[
		<strong>
				<font color="#ff0000">问题:</font>
		</strong>  struct 标签没有直接与ajax 数据兼容互换方法<br /><font color="#ff0000"><font color="#0000ff"><strong>解决: </strong></font></font><font color="#000000">先用struct 动态得到数据 ,再利用javascrpit 的 function(<font style="background-color: rgb(127, 255, 212);">this</font>) 把值提取 交给 ajax<br /><br />需要提交的 struct link 项<br /></font><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">div2</span><span style="color: rgb(0, 0, 255);">&gt;<br />         &lt;html:link    onclick='return action(this)'                          <font color="#008000">//javascript 提交  参数为 自己标签 <br /></font>                               action=""                                                       <font color="#008000">//屏蔽 struct 提交 但 用 struct 得到 动态值<br /></font>                               paramName="tom"<br />                               paramProperty="personid"<br />                              paramId="personnelId"&gt;<br />                             编辑&lt;/html:link&gt;<br /></span><span style="color: rgb(0, 0, 0);">   <span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">div2/</span><span style="color: rgb(0, 0, 255);">&gt;<br /><br /></span><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">div1/</span><span style="color: rgb(0, 0, 255);">&gt;</span></div><br />js 控制<br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><span style="color: rgb(0, 0, 0);"><br /><img id="Codehighlighter1_120_524_Open_Image" onclick="this.style.display='none'; Codehighlighter1_120_524_Open_Text.style.display='none'; Codehighlighter1_120_524_Closed_Image.style.display='inline'; Codehighlighter1_120_524_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_120_524_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_120_524_Closed_Text.style.display='none'; Codehighlighter1_120_524_Open_Image.style.display='inline'; Codehighlighter1_120_524_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedBlock.gif" align="top" />            </span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);"> action(obj)</span><span id="Codehighlighter1_120_524_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="http://www.blogjava.net/images/dot.gif" /></span><span id="Codehighlighter1_120_524_Open_Text"><span style="color: rgb(0, 0, 0);">{<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />                </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> str </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> obj.getAttribute('href');                  <br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />                </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> id </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> str.substring( str.lastIndexOf('</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">')</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">, str.length );         <font color="#008000">// 取得 href 中的 的值 (由 struct 得到的 动态值 )<br /></font><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />                   </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> pars </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> '</span><span style="color: rgb(0, 0, 255);">do</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">edit</span><span style="color: rgb(0, 0, 0);">&amp;</span><span style="color: rgb(0, 0, 0);">personnelId</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">'</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">id;<br /><img id="Codehighlighter1_345_377_Open_Image" onclick="this.style.display='none'; Codehighlighter1_345_377_Open_Text.style.display='none'; Codehighlighter1_345_377_Closed_Image.style.display='inline'; Codehighlighter1_345_377_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_345_377_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_345_377_Closed_Text.style.display='none'; Codehighlighter1_345_377_Open_Image.style.display='inline'; Codehighlighter1_345_377_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />                </span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);"> Ajax.Updater('div1','</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">rlzy</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">jcyy</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">basePersonnelList.</span><span style="color: rgb(0, 0, 255);">do</span><span style="color: rgb(0, 0, 0);">?</span><span style="color: rgb(0, 0, 0);">',</span><span id="Codehighlighter1_345_377_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="http://www.blogjava.net/images/dot.gif" /></span><span id="Codehighlighter1_345_377_Open_Text"><span style="color: rgb(0, 0, 0);">{parameters:pars,valScripts:</span><span style="color: rgb(0, 0, 255);">true</span><span style="color: rgb(0, 0, 0);">}</span></span><span style="color: rgb(0, 0, 0);">); <font color="#008000">//由 prototype 的 ajax 异步提交<br /></font><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />                Element.hide(document.getElementById(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">div2</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">));<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />                Element.show(document.getElementById(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">div1</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">));<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />                <br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />                </span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">false</span><span style="color: rgb(0, 0, 0);">;<br /><img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />            }</span></span><span style="color: rgb(0, 0, 0);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><br /><img id="Codehighlighter1_547_654_Open_Image" onclick="this.style.display='none'; Codehighlighter1_547_654_Open_Text.style.display='none'; Codehighlighter1_547_654_Closed_Image.style.display='inline'; Codehighlighter1_547_654_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_547_654_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_547_654_Closed_Text.style.display='none'; Codehighlighter1_547_654_Open_Image.style.display='inline'; Codehighlighter1_547_654_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedBlock.gif" align="top" />            </span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);"> action2()</span><span id="Codehighlighter1_547_654_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="http://www.blogjava.net/images/dot.gif" /></span><span id="Codehighlighter1_547_654_Open_Text"><span style="color: rgb(0, 0, 0);">{<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />                Element.hide(document.getElementById(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">div1</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">));<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />                Element.show(document.getElementById(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">div2</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">));<br /><img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />            }</span></span><span style="color: rgb(0, 0, 0);"><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: rgb(0, 0, 0);">&lt;/</span><span style="color: rgb(0, 0, 0);">SCRIPT</span><span style="color: rgb(0, 0, 0);">&gt;</span></div><span style="color: rgb(0, 0, 0);"><br />rlzy</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">jcyy</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">basePersonnelList.</span><span style="color: rgb(0, 0, 255);">do  的页面  就局部加入 页面 div1 了</span><br /><font color="#ffa500">&lt;INPUT type='button' value="test" onclick="action2();"/&gt;<br /><br /></font><font color="#008000">感想:  javascript 万能胶水</font><img src ="http://www.blogjava.net/Good-Game/aggbug/120062.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/Good-Game/" target="_blank">G_G</a> 2007-05-25 18:44 <a href="http://www.blogjava.net/Good-Game/archive/2007/05/25/120062.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>XMLDOM 详细说明和网上有关资源 + 动态javascript建表</title><link>http://www.blogjava.net/Good-Game/archive/2007/05/18/118426.html</link><dc:creator>G_G</dc:creator><author>G_G</author><pubDate>Fri, 18 May 2007 09:33:00 GMT</pubDate><guid>http://www.blogjava.net/Good-Game/archive/2007/05/18/118426.html</guid><wfw:comment>http://www.blogjava.net/Good-Game/comments/118426.html</wfw:comment><comments>http://www.blogjava.net/Good-Game/archive/2007/05/18/118426.html#Feedback</comments><slash:comments>5</slash:comments><wfw:commentRss>http://www.blogjava.net/Good-Game/comments/commentRss/118426.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/Good-Game/services/trackbacks/118426.html</trackback:ping><description><![CDATA[
		<font color="#ff0000">
				<strong>问题:</strong>
				<span style="color: rgb(0, 0, 0);">对javascript Dom 解读 xml  的问题<br /></span>
		</font>
		<strong>
				<font color="#0000ff">解决:</font>
		</strong>网页中 javascript 学习<br /><br /><font color="#000080"><strong>过程 js</strong></font><br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img id="Codehighlighter1_22_128_Open_Image" onclick="this.style.display='none'; Codehighlighter1_22_128_Open_Text.style.display='none'; Codehighlighter1_22_128_Closed_Image.style.display='inline'; Codehighlighter1_22_128_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_22_128_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_22_128_Closed_Text.style.display='none'; Codehighlighter1_22_128_Open_Image.style.display='inline'; Codehighlighter1_22_128_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedBlock.gif" align="top" /><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);"> searchSales()</span><span id="Codehighlighter1_22_128_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="http://www.blogjava.net/images/dot.gif" /></span><span id="Codehighlighter1_22_128_Open_Text"><span style="color: rgb(0, 0, 0);">{<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />    </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> url </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">MyXml.xml</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;          <font color="#008000"> // url 不限制 可以为 jsp  *.do  只要 out.print()出来的 是 xml 格式<br /></font><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />    </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> myAjax </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);"> Ajax.Request(<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />              url,<br /><img id="Codehighlighter1_87_124_Open_Image" onclick="this.style.display='none'; Codehighlighter1_87_124_Open_Text.style.display='none'; Codehighlighter1_87_124_Closed_Image.style.display='inline'; Codehighlighter1_87_124_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_87_124_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_87_124_Closed_Text.style.display='none'; Codehighlighter1_87_124_Open_Image.style.display='inline'; Codehighlighter1_87_124_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />    </span><span id="Codehighlighter1_87_124_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="http://www.blogjava.net/images/dot.gif" /></span><span id="Codehighlighter1_87_124_Open_Text"><span style="color: rgb(0, 0, 0);">{<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />    method: 'get',<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />    onComplete: action           <font color="#008000">   // 成功得到 requ 的挂载方法<br /></font><img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />    }</span></span><span style="color: rgb(0, 0, 0);">);<br /><img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span></span><span style="color: rgb(0, 0, 0);"><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: rgb(0, 0, 255);">function</span> <span style="color: rgb(0, 0, 0);"> action(request)<br /><img id="Codehighlighter1_154_489_Open_Image" onclick="this.style.display='none'; Codehighlighter1_154_489_Open_Text.style.display='none'; Codehighlighter1_154_489_Closed_Image.style.display='inline'; Codehighlighter1_154_489_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_154_489_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_154_489_Closed_Text.style.display='none'; Codehighlighter1_154_489_Open_Image.style.display='inline'; Codehighlighter1_154_489_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedBlock.gif" align="top" /></span><span id="Codehighlighter1_154_489_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="http://www.blogjava.net/images/dot.gif" /></span><span id="Codehighlighter1_154_489_Open_Text"><span style="color: rgb(0, 0, 0);">{<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />    </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> dom </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> request.responseXML;  <font color="#008000">  //返回 javascript Dom 解读对象 <br /></font></span><span style="color: rgb(0, 0, 0);"><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />    <br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />    </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> list </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> dom.getElementsByTagName('Weapon'); <br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />                               <font color="#008000"> //返回标签名&lt;Weapon&gt;  集合项可用.item(i) 得出  </font><span style="color: rgb(0, 0, 0);"><font color="#008000">.firstChild.nodeValue得值<br /></font></span><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" /> <br /><img id="Codehighlighter1_364_484_Open_Image" onclick="this.style.display='none'; Codehighlighter1_364_484_Open_Text.style.display='none'; Codehighlighter1_364_484_Closed_Image.style.display='inline'; Codehighlighter1_364_484_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_364_484_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_364_484_Closed_Text.style.display='none'; Codehighlighter1_364_484_Open_Image.style.display='inline'; Codehighlighter1_364_484_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />    </span><span style="color: rgb(0, 0, 255);">for</span><span style="color: rgb(0, 0, 0);">( </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> i </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">; i </span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);"> list.length; i</span><span style="color: rgb(0, 0, 0);">++</span><span style="color: rgb(0, 0, 0);"> ) </span><span id="Codehighlighter1_364_484_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="http://www.blogjava.net/images/dot.gif" /></span><span id="Codehighlighter1_364_484_Open_Text"><span style="color: rgb(0, 0, 0);">{<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> nli </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> list.item(i);<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> W </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> nli.getElementsByTagName( 'W' );<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />        window.alert(W.item(</span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">).firstChild.nodeValue);<br /><img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />    }</span></span><span style="color: rgb(0, 0, 0);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />     <br /><img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span></span></div><br />HTML 页面<br /><br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">HEAD</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">head</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">script </span><span style="color: rgb(255, 0, 0);">src</span><span style="color: rgb(0, 0, 255);">="prototype1.5.0.js"</span><span style="color: rgb(0, 0, 255);">&gt;&lt;/</span><span style="color: rgb(128, 0, 0);">script</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">script </span><span style="color: rgb(255, 0, 0);">src</span><span style="color: rgb(0, 0, 255);">="xml.js"</span><span style="color: rgb(0, 0, 255);">&gt;&lt;/</span><span style="color: rgb(128, 0, 0);">script</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">head</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">input </span><span style="color: rgb(255, 0, 0);">id</span><span style="color: rgb(0, 0, 255);">='test' </span><span style="color: rgb(255, 0, 0);">type</span><span style="color: rgb(0, 0, 255);">="submit"</span><span style="color: rgb(255, 0, 0);"> value</span><span style="color: rgb(0, 0, 255);">="test"</span><span style="color: rgb(255, 0, 0);"> onclick</span><span style="color: rgb(0, 0, 255);">="searchSales();"</span><span style="color: rgb(255, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">HTML</span><span style="color: rgb(0, 0, 255);">&gt;</span></div><br />XML <br /><br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><span style="color: rgb(0, 0, 255);">&lt;?</span><span style="color: rgb(255, 0, 255);">xml version="1.0" encoding="utf-8" </span><span style="color: rgb(0, 0, 255);">?&gt;</span><span style="color: rgb(0, 0, 0);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">Login</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><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: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">Weapon </span><span style="color: rgb(255, 0, 0);">id</span><span style="color: rgb(0, 0, 255);">="1"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">W </span><span style="color: rgb(255, 0, 0);">Text</span><span style="color: rgb(0, 0, 255);">="光束剑"</span><span style="color: rgb(255, 0, 0);"> Value</span><span style="color: rgb(0, 0, 255);">="0"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">W</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">W </span><span style="color: rgb(255, 0, 0);">Text</span><span style="color: rgb(0, 0, 255);">="光束配刀"</span><span style="color: rgb(255, 0, 0);"> Value</span><span style="color: rgb(0, 0, 255);">="1"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">2</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">W</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    </span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">Weapon</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><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: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">Weapon </span><span style="color: rgb(255, 0, 0);">id</span><span style="color: rgb(0, 0, 255);">="2"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">W </span><span style="color: rgb(255, 0, 0);">Text</span><span style="color: rgb(0, 0, 255);">="光束剑"</span><span style="color: rgb(255, 0, 0);"> Value</span><span style="color: rgb(0, 0, 255);">="0"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">3</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">W</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">W </span><span style="color: rgb(255, 0, 0);">Text</span><span style="color: rgb(0, 0, 255);">="光束配刀"</span><span style="color: rgb(255, 0, 0);"> Value</span><span style="color: rgb(0, 0, 255);">="1"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">4</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">W</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    </span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">Weapon</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><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: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">Weapon </span><span style="color: rgb(255, 0, 0);">id</span><span style="color: rgb(0, 0, 255);">="3"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">W </span><span style="color: rgb(255, 0, 0);">Text</span><span style="color: rgb(0, 0, 255);">="光束剑"</span><span style="color: rgb(255, 0, 0);"> Value</span><span style="color: rgb(0, 0, 255);">="0"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">5</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">W</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">W </span><span style="color: rgb(255, 0, 0);">Text</span><span style="color: rgb(0, 0, 255);">="光束配刀"</span><span style="color: rgb(255, 0, 0);"> Value</span><span style="color: rgb(0, 0, 255);">="1"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">6</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">W</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    </span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">Weapon</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">Login</span><span style="color: rgb(0, 0, 255);">&gt;</span></div><br /><font color="#008000"><strong>心得: 调试了很久当时对javascript 的不熟悉,但我没有放弃 去网上查,问同事 最后成功<br />                <font color="#0000ff"> --------------------- 坚持就是胜利</font><font color="#0000ff"> ------------------</font></strong></font><img src ="http://www.blogjava.net/Good-Game/aggbug/118426.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/Good-Game/" target="_blank">G_G</a> 2007-05-18 17:33 <a href="http://www.blogjava.net/Good-Game/archive/2007/05/18/118426.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>html 简单 div 拖动</title><link>http://www.blogjava.net/Good-Game/archive/2007/05/08/115904.html</link><dc:creator>G_G</dc:creator><author>G_G</author><pubDate>Tue, 08 May 2007 04:28:00 GMT</pubDate><guid>http://www.blogjava.net/Good-Game/archive/2007/05/08/115904.html</guid><wfw:comment>http://www.blogjava.net/Good-Game/comments/115904.html</wfw:comment><comments>http://www.blogjava.net/Good-Game/archive/2007/05/08/115904.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://www.blogjava.net/Good-Game/comments/commentRss/115904.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/Good-Game/services/trackbacks/115904.html</trackback:ping><description><![CDATA[
		<font color="#ff0000">问题: </font> 兴趣<br /><font color="#0000ff">解决:   <font color="#000000">div的 onclike ( this )  得到选择 <br />            由 window.event 得到 鼠标 x y <br />            由 this.style.top/left 改变<font color="#0000ff"><font color="#000000"></font></font> div 位置 </font><br /></font><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 0);"><br />        </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> x,y; <br />        </span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);"> mousedown(obj)<br />        {<br />            obj.onmousemove </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> mousemove;<br />            obj.onmouseup </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> mouseup;<br />            <br />            oEvent </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> window.event </span><span style="color: rgb(0, 0, 0);">?</span><span style="color: rgb(0, 0, 0);"> window.event : event;<br />            x </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> oEvent.clientX;<br />            y </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> oEvent.clientY;<br />        }<br />        </span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);"> mousemove()<br />        {<br />            oEvent </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> window.event </span><span style="color: rgb(0, 0, 0);">?</span><span style="color: rgb(0, 0, 0);"> window.event : event;<br />            </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> _top </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> oEvent.clientY </span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);"> y </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> parseInt(</span><span style="color: rgb(0, 0, 255);">this</span><span style="color: rgb(0, 0, 0);">.style.top) </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">px</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">; // </span><span style="color: rgb(0, 0, 0);">oEvent.clientY </span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);"> y  为div 上 移动的位置 再反映到</span><span style="color: rgb(0, 0, 0);">                                                                                //parseInt(</span><font color="#009900"><span style="color: rgb(0, 0, 255);">this</span><span style="color: rgb(0, 0, 0);">.style.top) </span></font><br /><span style="color: rgb(0, 0, 0);">            </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> _left </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> oEvent.clientX </span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);"> x </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> parseInt(</span><span style="color: rgb(0, 0, 255);">this</span><span style="color: rgb(0, 0, 0);">.style.left) </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">px</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br />            </span><span style="color: rgb(0, 0, 255);">this</span><span style="color: rgb(0, 0, 0);">.style.top </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> _top;<br />            </span><span style="color: rgb(0, 0, 255);">this</span><span style="color: rgb(0, 0, 0);">.style.left </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> _left;<br />            x </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">  oEvent.clientX;<br />            y </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">  oEvent.clientY<br />        }<br />        </span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);"> mouseup()<br />        {<br />            </span><span style="color: rgb(0, 0, 255);">this</span><span style="color: rgb(0, 0, 0);">.onmousemove </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">null</span><span style="color: rgb(0, 0, 0);">;<br />            </span><span style="color: rgb(0, 0, 255);">this</span><span style="color: rgb(0, 0, 0);">.onmouseup </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">null</span><span style="color: rgb(0, 0, 0);">;<br />        }<br /></span></div><br /><font color="#008000">心得: 兴趣决定一切 </font><img src ="http://www.blogjava.net/Good-Game/aggbug/115904.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/Good-Game/" target="_blank">G_G</a> 2007-05-08 12:28 <a href="http://www.blogjava.net/Good-Game/archive/2007/05/08/115904.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>