锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久男人的天堂,久久一日本道色综合久久,亚洲成人影院少妇http://www.aygfsteel.com/Good-Game/category/23014.htmlzh-cnThu, 24 Apr 2008 07:55:27 GMTThu, 24 Apr 2008 07:55:27 GMT60 寮鍙?javascript div 鎵╁睍浣跨敤http://www.aygfsteel.com/Good-Game/archive/2008/04/23/195185.htmlG_GG_GWed, 23 Apr 2008 09:41:00 GMThttp://www.aygfsteel.com/Good-Game/archive/2008/04/23/195185.htmlhttp://www.aygfsteel.com/Good-Game/comments/195185.htmlhttp://www.aygfsteel.com/Good-Game/archive/2008/04/23/195185.html#Feedback0http://www.aygfsteel.com/Good-Game/comments/commentRss/195185.htmlhttp://www.aygfsteel.com/Good-Game/services/trackbacks/195185.html

<body>
<a聽id='pi'聽href=""聽value="text">聽text聽</a>
<div聽id='div1'/>
</body>
<script聽type="text/javascript">

function聽showByEvent(ev,divId){
聽聽聽聽聽聽聽聽
//鍙栧緱鍚勬祻瑙堝櫒聽event聽
聽聽聽聽聽聽聽聽ev聽=聽ev聽||聽window.event;
聽聽聽聽聽聽聽聽
//div
聽聽聽聽聽聽聽聽var聽useDiv聽聽=聽document.getElementById(divId);
聽聽聽聽聽聽聽聽useDiv.style.position
="absolute";
聽聽聽聽聽聽聽聽聽聽聽聽
if(聽useDiv.style.left==""聽)useDiv.style.left聽="50";
聽聽聽聽聽聽聽聽聽聽聽聽
if(聽useDiv.style.top==""聽)useDiv.style.top聽="10";
聽聽聽聽聽聽聽聽聽聽聽聽
if(聽useDiv.style.zIndex==""聽)useDiv.style.zIndex聽="1000";
聽聽聽聽聽聽聽聽聽聽聽聽
if(聽useDiv.style.padding==""聽)useDiv.style.padding聽="0px";
聽聽聽聽聽聽聽聽聽聽聽聽
if(聽useDiv.style.backgroundColor==""聽)useDiv.style.backgroundColor聽="#FFFFCC";
聽聽聽聽聽聽聽聽聽聽聽聽
if(聽useDiv.style.color==""聽)useDiv.style.color聽="#201000";
聽聽聽聽聽聽聽聽聽聽聽聽
if(聽useDiv.style.fontSize==""聽)useDiv.style.fontSize聽="12px";
聽聽聽聽聽聽聽聽聽聽聽聽
if(聽useDiv.style.border==""聽)useDiv.style.border聽="1px聽聽聽solid聽聽聽#284860";
聽聽聽聽聽聽聽聽
聽聽聽聽聽聽聽聽
//寰楀埌澶勫彂浜嬩歡鐨勬簮element
聽聽聽聽聽聽var聽actionBean聽=聽聽null聽;
聽聽聽聽聽聽聽聽
if(聽聽ev.srcElement聽){
聽聽聽聽聽聽聽聽聽聽聽聽actionBean聽
=聽ev.srcElement聽
聽聽聽聽聽聽聽聽}
else{
聽聽聽聽聽聽聽聽聽聽聽聽actionBean聽
=聽ev.target;
聽聽聽聽聽聽聽聽}
聽聽聽聽聽聽聽聽
聽聽聽聽聽聽聽聽
//澶勫彂浜嬩歡聽
聽聽聽聽聽聽聽聽useDiv.onmousemove聽=function(){
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽useDiv.style.visibility聽聽
="";
聽聽聽聽聽聽聽聽}
聽聽聽聽聽聽聽聽useDiv.onmouseout聽
=function(){
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽useDiv.style.visibility聽聽
="hidden";
聽聽聽聽聽聽聽聽聽聽聽聽
聽聽聽聽聽聽聽聽}
聽聽聽聽聽聽聽聽actionBean.onmouseout聽
=聽聽function聽mouseOut(ev){
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽useDiv.style.visibility聽聽
="hidden";
聽聽聽聽聽聽聽聽}
聽聽聽聽聽聽聽聽
聽聽聽聽聽聽聽聽
//div聽瀹氫綅
聽聽聽聽聽聽聽聽useDiv.style.left聽=聽actionBean.offsetTop+15聽;
聽聽聽聽useDiv.style.top聽
=聽actionBean.offsetLeft+15;
聽聽聽聽
聽聽聽聽聽聽聽聽
//榪斿洖綾誨瀷涓郝燿iv聽鏄劇ず鐨劼爔聽,聽y聽鍜屄爐arget聽澶勫彂婧愰」聽鍜屄燿iv
聽聽聽聽聽聽聽聽return聽{
聽聽聽聽聽聽聽聽聽聽聽聽y:聽聽actionBean.offsetTop
+15聽聽,
聽聽聽聽聽聽聽聽聽聽聽聽x:聽聽actionBean.offsetLeft
+15聽,
聽聽聽聽聽聽聽聽聽聽聽聽target:actionBean,
聽聽聽聽聽聽聽聽聽聽聽聽div:useDiv
聽聽聽聽聽聽聽聽}
}



//浜嬩歡娣誨姞
document.getElementById('pi').onmousemove聽=function(ev){
聽聽聽聽聽聽
var聽sbv聽=聽showByEvent(ev,"div1");
聽聽聽聽聽聽
var聽bean聽=聽sbv.target聽;
聽聽聽聽
var聽dd聽=聽sbv.div;
聽聽聽聽dd.style.visibility聽聽
="";
聽聽聽聽dd.innerHTML聽
="<a聽href=http://www.baidu.com>鍒犻櫎"+bean.value+"</a><br>"+
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
"<a聽href=http://www.google.com>璇︾粏聽by聽Id聽"+bean.id+"</a>";

};

</script>





G_G 2008-04-23 17:41 鍙戣〃璇勮
]]>
javascript 涓婁紶鏂囦歡澶у皬闄愬畾http://www.aygfsteel.com/Good-Game/archive/2008/04/15/193181.htmlG_GG_GTue, 15 Apr 2008 10:07:00 GMThttp://www.aygfsteel.com/Good-Game/archive/2008/04/15/193181.htmlhttp://www.aygfsteel.com/Good-Game/comments/193181.htmlhttp://www.aygfsteel.com/Good-Game/archive/2008/04/15/193181.html#Feedback0http://www.aygfsteel.com/Good-Game/comments/commentRss/193181.htmlhttp://www.aygfsteel.com/Good-Game/services/trackbacks/193181.html
闄愬埗錛?/span><input聽type="text"聽size="4"聽value="10"聽name="fileSizeLimit"聽id="fileSizeLimit"/>聽K
<input聽type="file"聽name="file1"聽id="file1"聽size="40"聽onchange="changeSrc(this)"/>
<br>
<img聽src=http://blog.xunuo.com/blog/images/icons/23.gif聽id="fileChecker"聽alt="test"/>

<script聽type="text/javascript">
var聽oFileChecker聽=聽document.getElementById("fileChecker");

function聽changeSrc(filePicker)
{
聽聽聽聽oFileChecker.src聽
=聽filePicker.value;
}

oFileChecker.onreadystatechange聽
=function聽()
{
聽聽聽聽
if聽(oFileChecker.readyState聽=="complete")
聽聽聽聽{
聽聽聽聽聽聽聽聽checkSize();
聽聽聽聽}
}

function聽checkSize()
{
聽聽聽聽
var聽limit聽聽=聽document.getElementById("fileSizeLimit").value聽*1024;

聽聽聽聽
if聽(oFileChecker.fileSize聽>聽limit)
聽聽聽聽{
聽聽聽聽聽聽聽聽alert(
"too聽large");
聽聽聽聽}
聽聽聽聽
else
聽聽聽聽{
聽聽聽聽聽聽聽聽alert(
"ok");
聽聽聽聽}
}
</script>聽聽



IE
<html>
<input聽type="file"聽name="file1"聽onchange="ShowSize(this.value)">
<script聽language="JavaScript">
<!--
function聽ShowSize(files)聽
{聽
聽聽
var聽fso,f;聽
聽聽fso
=new聽ActiveXObject("Scripting.FileSystemObject");聽
聽聽f
=fso.GetFile(files);聽
聽聽alert(聽(f.size
/(1024*1024))+"聽Bytes");聽
}聽
//-->聽
</script>
</html>



G_G 2008-04-15 18:07 鍙戣〃璇勮
]]>
javascript 榧犳爣璺熼殢+浣嶇疆鏄劇ずhttp://www.aygfsteel.com/Good-Game/archive/2008/04/15/193087.htmlG_GG_GTue, 15 Apr 2008 05:41:00 GMThttp://www.aygfsteel.com/Good-Game/archive/2008/04/15/193087.htmlhttp://www.aygfsteel.com/Good-Game/comments/193087.htmlhttp://www.aygfsteel.com/Good-Game/archive/2008/04/15/193087.html#Feedback0http://www.aygfsteel.com/Good-Game/comments/commentRss/193087.htmlhttp://www.aygfsteel.com/Good-Game/services/trackbacks/193087.html 鍙傝?/b> :http://www.codebit.cn/pub/html/javascript/tip/mouse_position/
<script聽type="text/javascript">

function聽mousePosition(ev){
聽聽聽 //鏀寔 鐏嫄
聽聽聽聽
if(ev.pageX聽||聽ev.pageY){
聽聽聽聽聽聽聽聽
return聽{x:ev.pageX,聽y:ev.pageY};
聽聽聽聽}
聽聽聽 //鏀寔IE
聽聽聽聽
return聽{
聽聽聽聽聽聽聽聽x:ev.clientX聽
+聽document.body.scrollLeft聽-聽document.body.clientLeft,
聽聽聽聽聽聽聽聽y:ev.clientY聽
+聽document.body.scrollTop聽-聽document.body.clientTop
聽聽聽聽};
}

function聽mouseMove(ev){
聽聽聽聽ev聽
=聽ev聽||聽window.event;
聽聽聽聽
var聽mousePos聽=聽mousePosition(ev);
聽聽聽聽聽聽聽聽
聽聽聽聽聽聽 document.getElementById('div1').innerHTML聽
=聽mousePos.x聽+":"+mousePos.y聽;
聽聽聽聽聽聽聽document.getElementById('div1').style.left聽
=聽mousePos.x+10;
聽聽聽聽聽聽聽document.getElementById('div1').style.top聽
=聽mousePos.y+50;
}

//浜嬩歡娣誨姞
document.onmousemove聽
=聽mouseMove;


</script>
<body>
聽聽聽聽
<p聽id='pi'></p>
聽聽聽聽
<div聽id='div1'聽聽style="position:absolute;聽聽
聽聽left:50;聽聽
聽聽top:10;聽聽
聽聽z-index:1000;聽聽
聽聽padding:0px;聽聽
聽聽background-color:#FFFFCC;聽聽
聽聽color:#201000;聽聽
聽聽font-size:12px;聽聽
聽聽border:1px聽聽聽solid聽聽聽#284860;
"></div>聽聽聽
</body>

鐩存帴榪愯




G_G 2008-04-15 13:41 鍙戣〃璇勮
]]>
java,javascript 鍐呰繛鍙栨暟鎹?/title><link>http://www.aygfsteel.com/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.aygfsteel.com/Good-Game/archive/2008/01/09/173895.html</guid><wfw:comment>http://www.aygfsteel.com/Good-Game/comments/173895.html</wfw:comment><comments>http://www.aygfsteel.com/Good-Game/archive/2008/01/09/173895.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/Good-Game/comments/commentRss/173895.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/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">姝e紡榪炴帴</font><br />聽聽聽聽聽聽聽聽聽聽聽聽httpConn.getOutputStream();<br />聽聽聽 聽聽 聽聽聽聽 <font color="#008000">/**杈撳叆鍙傛暟<br />聽聽聽 聽聽 聽聽 聽 PrintWriter outs = new PrintWriter(httpConn.getOutputStream());<br />聽聽聽 聽聽聽 聽聽聽 outs.print("&back_url=" + returnurl);<br />聽聽聽 聽聽聽 聽聽聽 outs.print("&orderid=" + deposit.getOrderId());<br />聽聽聽 聽聽聽 聽聽聽 outs.print("&bussinessid=" + SZFConstant.B_ID);<br />聽聽聽 聽聽聽 聽聽聽 outs.print("&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);"><</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 /></span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">head</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);">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);">></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);">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);">/></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);">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);">></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);">&&</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);">&&</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);">姝e湪鍔犺澆榪炴帴瀵硅薄<img src="http://www.aygfsteel.com/images/dot.gif" /><img src="http://www.aygfsteel.com/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.aygfsteel.com/images/dot.gif" /><img src="http://www.aygfsteel.com/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);"><=</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);"><=</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);"><=</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);"><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);">></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);"></option></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);"><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);">></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);"></select></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);"></</span><span style="color: rgb(0, 0, 0);">script</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);"><br /></span></div><br /><img src ="http://www.aygfsteel.com/Good-Game/aggbug/173895.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/Good-Game/" target="_blank">G_G</a> 2008-01-09 09:46 <a href="http://www.aygfsteel.com/Good-Game/archive/2008/01/09/173895.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>javascript cookie(杞?http://www.aygfsteel.com/Good-Game/archive/2007/11/28/163747.htmlG_GG_GWed, 28 Nov 2007 09:13:00 GMThttp://www.aygfsteel.com/Good-Game/archive/2007/11/28/163747.htmlhttp://www.aygfsteel.com/Good-Game/comments/163747.htmlhttp://www.aygfsteel.com/Good-Game/archive/2007/11/28/163747.html#Feedback0http://www.aygfsteel.com/Good-Game/comments/commentRss/163747.htmlhttp://www.aygfsteel.com/Good-Game/services/trackbacks/163747.htmlhttp://blog.joycode.com/joe/archive/2005/09/06/63068.aspx
http://www.itlearner.com/article/2006/3325.shtml


浣跨敤鏂規硶錛?b>js



//鑾峰緱Cookie瑙g爜鍚庣殑鍊?/span>
function聽GetCookieVal(offset){
聽聽聽聽
var聽endstr聽=聽document.cookie.indexOf聽(";",聽offset);
聽聽聽聽
if聽(endstr聽==-1)
聽聽聽聽endstr聽
=聽document.cookie.length;
聽聽聽聽
return聽unescape(document.cookie.substring(offset,聽endstr));
}

//璁懼畾Cookie鍊?/span>
function聽SetCookie(name,聽value){
聽聽聽聽
var聽expdate聽=new聽Date();
聽聽聽聽
var聽argv聽=聽SetCookie.arguments;
聽聽聽聽
var聽argc聽=聽SetCookie.arguments.length;
聽聽聽聽
var聽expires聽=聽(argc聽>2)聽?聽argv[2]聽:聽null;
聽聽聽聽
var聽path聽=聽(argc聽>3)聽?聽argv[3]聽:聽null;
聽聽聽聽
var聽domain聽=聽(argc聽>4)聽?聽argv[4]聽:聽null;
聽聽聽聽
var聽secure聽=聽(argc聽>5)聽?聽argv[5]聽:聽false;
聽聽聽聽
if(expires!=null)聽expdate.setTime(expdate.getTime()聽+聽(聽expires聽*1000聽));
聽聽聽聽document.cookie聽
=聽name聽+"="+聽escape聽(value)聽+((expires聽==null)聽?""聽:聽(";聽expires="+聽expdate.toGMTString()))
聽聽聽聽
+((path聽==null)聽?""聽:聽(";聽path="+聽path))聽+((domain聽==null)聽?""聽:聽(";聽domain="+聽domain))
聽聽聽聽
+((secure聽==true)聽?";聽secure"聽:聽"");
}

//鍒犻櫎Cookie
function聽DelCookie(name){
聽聽聽聽
var聽exp聽=new聽Date();
聽聽聽聽exp.setTime聽(exp.getTime()聽
-1);
聽聽聽聽
var聽cval聽=聽GetCookie聽(name);
聽聽聽聽document.cookie聽
=聽name聽+"="+聽cval聽+";聽expires="+聽exp.toGMTString();
}

//鑾峰緱Cookie鐨勫師濮嬪?/span>
function聽GetCookie(name){
聽聽聽聽
var聽arg聽=聽name聽+"=";
聽聽聽聽
var聽alen聽=聽arg.length;
聽聽聽聽
var聽clen聽=聽document.cookie.length;
聽聽聽聽
var聽i聽=0;
聽聽聽聽
while聽(i聽<聽clen)
聽聽聽聽{
聽聽聽聽聽聽聽聽
var聽j聽=聽i聽+聽alen;
聽聽聽聽聽聽聽聽
if聽(document.cookie.substring(i,聽j)聽==聽arg)
聽聽聽聽聽聽聽聽
return聽GetCookieVal聽(j);
聽聽聽聽聽聽聽聽i聽
=聽document.cookie.indexOf("",聽i)聽+1;
聽聽聽聽聽聽聽聽
if聽(i聽==0)聽break;
聽聽聽聽}
聽聽聽聽
returnnull;
}

jsunit
<!DOCTYPE聽html聽
聽聽PUBLIC聽"-//W3C//DTD聽HTML聽4.01聽Transitional//EN"聽
聽聽"http://www.w3.org/TR/html4/loose.dtd"
>
<html>
<head>
<meta聽http-equiv="Content-Type"聽content="text/html;聽charset=BIG5">
<title>x</title>
<script聽type="text/javascript"聽src="test.js"></script>
<script聽type="text/javascript"聽src="lib/jsUnitCore.js"></script>
<script聽type="text/javascript">
聽聽聽聽
聽聽聽聽
聽聽聽聽
function聽testValidArgs()聽{聽//聽嫻嬭瘯鐨勫嚱寮忚浠est鍚嶇О浣滀負寮澶?/span>
聽聽聽聽聽聽聽聽SetCookie('li','gg');
聽聽聽聽聽聽聽聽assertEquals(
"cookie聽get聽err",聽'gg',聽GetCookie('li')聽);
聽聽聽聽聽聽聽聽assertEquals(
"cookie聽getVal聽err",聽'li=gg',聽GetCookieVal('li')聽);
聽聽聽聽聽聽聽聽
聽聽聽聽聽聽聽聽
聽聽聽聽聽聽聽聽DelCookie(
"li");
聽聽聽聽聽聽聽聽assertEquals(
"cookie del err ",null,聽GetCookie('li')聽);
聽聽聽聽聽聽聽聽
聽聽聽聽聽聽聽聽
聽聽聽聽}

聽聽聽聽
聽聽聽聽
</script>
</head>
<body>
</body>
</html>

榪愯 Jsunit-> testRunner.html 閫氳繃嫻嬭瘯




G_G 2007-11-28 17:13 鍙戣〃璇勮
]]>
ajax 鐨?杈撳叆閫夋嫨 錛堝悓google&璇繪暟鎹簱錛?http://www.aygfsteel.com/Good-Game/archive/2007/07/25/132345.htmlG_GG_GWed, 25 Jul 2007 09:05:00 GMThttp://www.aygfsteel.com/Good-Game/archive/2007/07/25/132345.htmlhttp://www.aygfsteel.com/Good-Game/comments/132345.htmlhttp://www.aygfsteel.com/Good-Game/archive/2007/07/25/132345.html#Feedback2http://www.aygfsteel.com/Good-Game/comments/commentRss/132345.htmlhttp://www.aygfsteel.com/Good-Game/services/trackbacks/132345.html...  闃呰鍏ㄦ枃

G_G 2007-07-25 17:05 鍙戣〃璇勮
]]>
WEB xml 鐢誨浘 (javascript鍖呰)鐢ㄥ埌 prototype.js wz_jsgraphics.js http://www.aygfsteel.com/Good-Game/archive/2007/07/11/129594.htmlG_GG_GWed, 11 Jul 2007 05:31:00 GMThttp://www.aygfsteel.com/Good-Game/archive/2007/07/11/129594.htmlhttp://www.aygfsteel.com/Good-Game/comments/129594.htmlhttp://www.aygfsteel.com/Good-Game/archive/2007/07/11/129594.html#Feedback0http://www.aygfsteel.com/Good-Game/comments/commentRss/129594.htmlhttp://www.aygfsteel.com/Good-Game/services/trackbacks/129594.html 闂: 鐢婚〉闈?鎴?鎶ヨ〃 鐨?鍥捐薄闂
瑙e喅錛?/b>鐢?閫氳繃xml鐢誨浘聽 鐢葷瑪wz_jsgraphics.js聽
聽聽聽 聽聽聽 聽聽聽 聽聽聽 聽聽聽 聽 xml鏁版嵁鍙栧緱 prototype.js
聽聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 鐢誨姩浣?Xmlgraphics.js 錛堣嚜宸卞寘瑁咃級
聽聽聽 涓嬭澆錛?font color="#006400">http://www.aygfsteel.com/Files/Good-Game/Mywz_jsgraphics.rar聽 璇鋒斁鍦?鏈嶅姟鍣ㄤ笂(tomcat) 騫舵敼 聽聽 聽聽聽 聽聽聽 聽聽聽 聽聽聽 聽聽聽 聽 testLine.html欏甸潰涓婄殑 load( ul ) =>>聽 ul 錛?xml 鐨勫彇寰楀湴鏂?錛?
聽聽聽聽聽聽聽聽聽聽聽 璇鋒敞鎰?錛?IE 5 鏀寔涓嶅ソ 璇風敤 鐏嫄 鎴?IE6
鍥劇墖 錛?/font>


EG:
聽聽 榪欏睍鐜頒簡 鐢葷嚎 鐢誨浘聽 鍒?鐢誨瓧鐨勭畝鍗曡繃紼?br />

<grabhics>

聽聽聽聽
<line聽x1='0'聽y1='0'聽x2='40'聽y2='0'聽color='green'聽聽stroke='4'聽/>
聽聽聽聽
<line聽id='l1'聽x1='0'聽y1='0'聽x2='0'聽y2='200'聽color='darkblue'聽聽stroke='8'聽/>
聽聽聽聽
聽聽聽聽
<rect聽x='20'聽y='20'聽w='40'聽h='70'聽color='hotpink'聽聽stroke='4'聽/>
聽聽聽聽
<rect聽id='r1'聽x='100'聽y='60'聽w='20'聽h='200'聽color='greenyellow'聽聽stroke='8'聽/>
聽聽聽聽
聽聽聽聽
<fillRect聽x='50'聽y='60'聽w='40'聽h='70'聽color='darkolivegreen'聽聽stroke='2'聽/>
聽聽聽聽
<fillRect聽id='fr1'聽x='150'聽y='250'聽w='20'聽h='45'聽color='darkturquoise'聽聽stroke='1'聽/>
聽聽聽聽
聽聽聽聽
<ellipse聽x='0'聽y='100'聽w='50'聽h='100'聽color='darkolivegreen'聽聽stroke='5'聽/>
聽聽聽聽
<ellipse聽id='e1'聽x='250'聽y='0'聽w='34'聽h='46'聽color='darkturquoise'聽聽stroke='7'聽/>
聽聽聽聽
聽聽聽聽
<fillEllipse聽x='0'聽y='150'聽w='150'聽h='70'聽color='darkolivegreen'聽聽stroke='5'聽/>
聽聽聽聽
<fillEllipse聽id='fe1'聽x='250'聽y='20'聽w='84'聽h='48'聽color='gray'聽聽stroke='7'聽/>
聽聽聽聽
聽聽聽聽
<fillArc聽x='32'聽y='124'聽w='130'聽h='170'聽start='0'聽end='190'聽color='red'聽聽/>
聽聽聽聽
<fillArc聽id='fa1'聽x='200'聽y='300'聽w='40'聽h='20'聽start='0'聽end='300'聽color='red'聽聽/>

聽聽聽聽
<polygon聽xs='32,80,23,7,64'聽ys='124,2,42,24,6'聽color='darkolivegreen'聽聽/>
聽聽聽聽
<polygon聽id='pp1'聽xs='32,4,2'聽ys='124,3,51'聽color='darkolivegreen'聽聽/>


聽聽聽聽
<fillPolygon聽xs='10,85,93,60'聽ys='50,10,105,87'聽color='00aaaa'聽聽/>
聽聽聽聽
<fillPolygon聽id='adfh'聽聽xs='80,126,-30,-60'聽ys='0,130,40,100'聽color='00aaaa'聽聽/>

聽聽聽聽
聽聽聽聽
<image聽x='200'聽y='300'聽w='50'聽h='50'聽url='../image/test.bmp'聽/>
聽聽聽聽
<image聽id='ima'聽x='300'聽y='300'聽w='50'聽h='50'聽url='../image/test.bmp'聽/>

聽聽聽聽
<string聽聽font='arial'聽聽size='15'聽style='Font.ITALIC_BOLD'聽str='鍒樺嚡姣?聽x='300'聽y='400'聽color='red'聽/>
聽聽聽聽
<string聽id='strr'聽聽font='arial'聽聽size='20'聽style='Font.ITALIC_BOLD'聽str='涓囧瞾'聽x='310'聽y='420'聽聽/>


</grabhics>


綆鍗曢〉闈?錛?緇欏嚭 div 鐨?id 錛堜綅緗?鍜?xml 鐨勫嚭澶?灝卞彲浠ヤ簡錛塴oad() 鏂規硶
<!DOCTYPE聽HTML聽PUBLIC聽"-//W3C//DTD聽HTML聽4.01//ZH-CN"聽"http://www.w3.org/TR/html4/strict.dtd">
<html>
聽聽聽聽
<head>
聽聽聽聽聽聽聽聽
<meta聽http-equiv="Content-Type"聽content="text/html;聽charset=UTF-8"/>
聽聽聽聽聽聽聽聽
<script聽language="JavaScript"聽src='../lib/prototype/wz_jsgraphics.js'聽></script>
聽聽聽聽聽聽聽聽
<script聽language="JavaScript"聽src="../lib/prototype/prototype.js"></script>
聽聽聽聽聽聽聽聽
<script聽language="JavaScript"聽src="../js/test.js"></script>
聽聽聽聽聽聽聽聽
<script聽language="JavaScript"聽src="../js/Xmlgraphics.js"></script>
聽聽聽聽聽聽聽聽
聽聽聽聽
</head>
聽聽聽聽
<body聽onload='load(聽"http://127.0.0.1:8000/Mywz_jsgraphics/xml/graphics.xml"聽)'>聽聽聽聽聽
聽聽聽
<div聽id="myCanvas"聽style="position:relative;height:250px;width:100%;"><input聽type='button'聽onclick='tt()'聽/></div>
</body>
</html>

<script>
聽聽聽聽
function聽tt(){
聽聽聽聽聽聽聽聽
var聽uu聽=聽'strr'
聽聽聽聽聽聽聽聽聽
var聽g2聽=聽getGdom(uu)聽;
聽聽聽聽聽聽聽聽getValue(uu).clear();
聽聽
聽聽聽聽}
聽聽聽聽
</script>




G_G 2007-07-11 13:31 鍙戣〃璇勮
]]>
WEB 鍥劇敾 -- wz_jsgraphics 絎旇http://www.aygfsteel.com/Good-Game/archive/2007/07/05/128239.htmlG_GG_GThu, 05 Jul 2007 01:32:00 GMThttp://www.aygfsteel.com/Good-Game/archive/2007/07/05/128239.htmlhttp://www.aygfsteel.com/Good-Game/comments/128239.htmlhttp://www.aygfsteel.com/Good-Game/archive/2007/07/05/128239.html#Feedback0http://www.aygfsteel.com/Good-Game/comments/commentRss/128239.htmlhttp://www.aygfsteel.com/Good-Game/services/trackbacks/128239.html



G_G 2007-07-05 09:32 鍙戣〃璇勮
]]>
select闆嗚繛+xml+閫夋嫨鎻愪氦 (Ajax灞閮ㄥ埛鏂? http://www.aygfsteel.com/Good-Game/archive/2007/07/02/127441.htmlG_GG_GMon, 02 Jul 2007 02:22:00 GMThttp://www.aygfsteel.com/Good-Game/archive/2007/07/02/127441.htmlhttp://www.aygfsteel.com/Good-Game/comments/127441.htmlhttp://www.aygfsteel.com/Good-Game/archive/2007/07/02/127441.html#Feedback2http://www.aygfsteel.com/Good-Game/comments/commentRss/127441.htmlhttp://www.aygfsteel.com/Good-Game/services/trackbacks/127441.html 1聽<rows><row聽id='1703'聽name='姝︽槍鍗楁満鍔℃聽聽聽聽'聽/><row聽id='1701'聽name='瑗勬▕鍖楁満鍔℃聽聽聽聽'聽/>...  闃呰鍏ㄦ枃

G_G 2007-07-02 10:22 鍙戣〃璇勮
]]>
欏甸潰宓屽叆鍦ㄧ嚎鑱婂ぉ (prototype)http://www.aygfsteel.com/Good-Game/archive/2007/06/13/123791.htmlG_GG_GWed, 13 Jun 2007 02:22:00 GMThttp://www.aygfsteel.com/Good-Game/archive/2007/06/13/123791.htmlhttp://www.aygfsteel.com/Good-Game/comments/123791.htmlhttp://www.aygfsteel.com/Good-Game/archive/2007/06/13/123791.html#Feedback3http://www.aygfsteel.com/Good-Game/comments/commentRss/123791.htmlhttp://www.aygfsteel.com/Good-Game/services/trackbacks/123791.html 闂 : 鎻愪緵緇橞/S 緇撴瀯涓涓疄鏃剁殑榪愯灞曠幇
瑙e喅:聽聽 prototype 鐨劼燗jax.PeriodicalUpdater 鏇存柊
聽聽聽聽聽聽聽聽聽聽聽 prototype 鐨劼犅犅?Ajax.Request 璇彞鎻愪氦
聽聽聽聽聽聽聽聽聽聽聽聽action 璇彞鐨勭粍緇囧睍鐜?br />
http://www.aygfsteel.com/Files/Good-Game/take.rar

聽聽聽聽娌℃湁lib 澶у鍙互灝卞姞 struct 鐩稿叧 lib 灝卞彲浠ヤ簡

璇存槑:
聽聽聽聽聽聽

<!DOCTYPE聽HTML聽PUBLIC聽"-//W3C//DTD聽HTML聽4.01聽Transitional//EN">
<html>
聽聽
<head>
聽聽聽聽聽聽聽聽聽聽
<SCRIPT聽language="Javascript"聽src="prototype1.5.0.js"></SCRIPT>
聽聽
</head>
聽聽
聽聽
<body聽onload="Said()">
聽聽聽聽聽聽
<INPUT聽id='name1'聽type="text"聽size="10"聽value="璇瘋緭鍏ュ悕瀛?聽onfocus="if($('name1').value=='璇瘋緭鍏ュ悕瀛?)聽$('name1').innerText=''聽"/>
聽聽聽聽聽聽
<INPUT聽id='text1'聽type="text"聽onkeydown="if(event.keyCode==13){event.keyCode=0;聽onb();}"/>
聽聽聽聽聽聽
<INPUT聽id='button1'聽type="button"聽value="test"聽onclick='onb()'聽/>
聽聽
</body>
聽聽
<div聽id='div1'/>
</html>
<script聽type="text/javascript"聽聽>
聽聽聽聽聽聽聽 //璇彞寮傛鎻愪氦緇欐湇鍔″櫒 Ajax.Request
聽聽聽聽
function聽onb(){聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
聽聽聽聽聽聽
if($('name1').value=='璇瘋緭鍏ュ悕瀛?聽||聽$('name1').value==''){
聽聽聽聽聽聽聽聽聽聽window.alert('璇瘋緭鍏ュ悕瀛?);
聽聽聽聽聽聽聽聽聽聽
return
聽聽聽聽聽聽}

聽聽聽聽聽聽
聽聽聽聽聽聽
var聽url聽=聽'http://192.168.1.130:7000/xxs/mySaid.do?name='+$F('name1')+'&take='+$F('text1');聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
聽聽聽聽聽聽new聽Ajax.Request(
聽聽聽聽聽聽聽聽url,
聽聽聽聽聽聽聽聽
{
聽聽聽聽聽聽聽聽聽聽聽聽method:聽'get',
聽聽聽聽聽聽聽聽聽聽聽聽onComplete:聽action聽聽聽聽聽聽聽聽聽聽聽聽聽聽
聽聽聽聽聽聽聽聽}
);
聽聽聽聽聽聽聽聽
聽聽聽聽聽聽聽聽$('name1').readOnly聽
=true
聽聽聽聽聽聽聽聽$('name1').style.background聽
=聽'lightblue'
聽聽聽聽聽聽聽聽$('text1').innerText
=''聽
聽聽聽聽}

聽聽聽聽聽聽 //灞閮ㄥ埛鏂?騫舵彁鍙?璇彞
聽聽聽聽
function聽Said(){
聽聽聽聽聽聽聽聽
var聽url聽=聽'http://192.168.1.130:7000/xxs/mySaid.do';聽聽
聽聽聽聽聽聽聽聽new聽Ajax.PeriodicalUpdater(
聽聽聽聽聽聽聽聽聽聽聽聽'div1',
聽聽聽聽聽聽聽聽聽聽聽聽url,
聽聽聽聽聽聽聽聽聽聽聽聽
{
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽method:聽'get',
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽onComplete:聽SumSaid,
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽evalScripts:聽
true,
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽frequency:聽
1,
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽decay:聽
1
聽聽聽聽聽聽聽聽聽聽聽聽}

聽聽聽聽聽聽聽聽);
聽聽聽聽}

聽聽聽聽聽聽 //灞曠幇
聽聽聽聽
function聽SumSaid(req){
聽聽聽聽聽聽聽聽$('div1').innerHTML聽
=聽req.responseText;
聽聽聽聽}


聽聽聽聽
function聽action(req){
聽聽聽聽}

聽聽聽聽
</script>
聽聽聽聽

Action
聽聽 private static int SIZE = 30 ;
聽聽聽聽 private List list = new ArrayList();

聽聽聽聽
public聽ActionForward聽execute(
聽聽聽聽聽聽聽聽ActionMapping聽mapping,
聽聽聽聽聽聽聽聽ActionForm聽form,
聽聽聽聽聽聽聽聽HttpServletRequest聽request,
聽聽聽聽聽聽聽聽HttpServletResponse聽response)聽
{
聽聽聽聽聽聽聽聽String聽take聽
=聽request.getParameter("take")聽;
聽聽聽聽聽聽聽聽String聽name聽
=聽request.getParameter("name")聽;
聽聽聽聽聽聽聽聽response.addHeader(
"Cache-Control","no-cache");聽
聽聽聽聽聽聽聽聽
聽聽聽聽聽聽聽聽request.setAttribute(
"said",DueiLie(name,take));

聽聽聽聽聽聽聽聽
try{
聽聽聽聽聽聽聽聽聽聽聽聽request.setCharacterEncoding(
"gb2312");
聽聽聽聽聽聽聽聽聽聽聽聽response.setCharacterEncoding(
"gb2312");
聽聽聽聽聽聽聽聽}
catch聽(Exception聽e)聽{
聽聽聽聽聽聽聽聽}


聽聽聽聽聽聽聽聽
return聽mapping.findForward("list");
聽聽聽聽}

聽聽聽聽聽
聽聽聽聽聽聽聽 //璇彞鐨勭粍緇?/font>
聽聽聽聽
public聽String聽DueiLie(String聽name,String聽take){
聽聽聽聽聽聽聽聽
聽聽聽聽聽聽聽聽StringBuffer聽strb聽聽
=new聽StringBuffer();
聽聽聽聽聽聽聽聽
if(name==null||take==null);
聽聽聽聽聽聽聽聽
else{
聽聽聽聽聽聽聽聽聽聽聽聽strb.append(聽name聽).append(
"聽:聽").append(take).append("</br>")聽;
聽聽聽聽聽聽聽聽聽聽聽聽
if(list.size()==SIZE){
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽list.remove(list.get(
0));
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽list.add(strb.toString()聽);
聽聽聽聽聽聽聽聽聽聽聽聽}
else{
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽list.add(聽strb.toString()聽);
聽聽聽聽聽聽聽聽聽聽聽聽}

聽聽聽聽聽聽聽聽}

聽聽聽聽聽聽聽聽StringBuffer聽takes聽
=new聽StringBuffer();
聽聽聽聽聽聽聽聽Iterator聽it聽
=聽list.iterator();
聽聽聽聽聽聽聽聽
while(it.hasNext()){
聽聽聽聽聽聽聽聽聽聽聽聽takes.insert(聽
0,(String)it.next()聽);
聽聽聽聽聽聽聽聽}

聽聽聽聽聽聽聽聽
return聽takes.toString();
聽聽聽聽}

jsp ( list ) 涓枃澶勭悊 jsp 灝變竴鍙ヨ瘽
<%= new String(((String)request.getAttribute("said")).getBytes("iso8859-1"),"GBK") %>

蹇冨緱:鍒漢鍋氬埌浜?鎴戜篃鑳藉仛鍒?br />聽聽聽聽聽聽聽聽聽瑕佸鐨勪笢瑗垮緢澶?澶氱湅涔?澶氱暀鎰?澶氫繚鎶ゅソ韜綋

G_G 2007-06-13 10:22 鍙戣〃璇勮
]]>
HTML 涓?select 閫夋嫨 http://www.aygfsteel.com/Good-Game/archive/2007/06/12/123640.htmlG_GG_GTue, 12 Jun 2007 08:29:00 GMThttp://www.aygfsteel.com/Good-Game/archive/2007/06/12/123640.htmlhttp://www.aygfsteel.com/Good-Game/comments/123640.htmlhttp://www.aygfsteel.com/Good-Game/archive/2007/06/12/123640.html#Feedback0http://www.aygfsteel.com/Good-Game/comments/commentRss/123640.htmlhttp://www.aygfsteel.com/Good-Game/services/trackbacks/123640.html 聽聽聽聽 function 聽selectValue(select,val) {
聽聽聽聽聽聽聽聽
var 聽opt聽 = 聽select.options聽;
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
for ( var 聽i = 0 ;i < opt.length;i ++ ) {
聽聽聽聽聽聽聽聽聽聽聽聽
if (聽opt[i].firstChild.nodeValue聽 == 聽val) {
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽opt[i].selected聽
= true ;
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
return 聽;聽
聽聽聽聽聽聽聽聽聽聽聽聽}

聽聽聽聽聽聽聽聽}

聽聽聽聽聽聽聽聽
for ( var 聽i = 0 ;i < opt.length;i ++ ) {
聽聽聽聽聽聽聽聽聽聽聽聽
if (聽opt[i].value聽 == 聽val) {
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽opt[i].selected聽
= true ;
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
return 聽;聽
聽聽聽聽聽聽聽聽聽聽聽聽}

聽聽聽聽聽聽聽聽}


聽聽聽聽}

聽聽聽聽


G_G 2007-06-12 16:29 鍙戣〃璇勮
]]>
鐢╦avascript 寤?treehttp://www.aygfsteel.com/Good-Game/archive/2007/06/06/122318.htmlG_GG_GWed, 06 Jun 2007 03:01:00 GMThttp://www.aygfsteel.com/Good-Game/archive/2007/06/06/122318.htmlhttp://www.aygfsteel.com/Good-Game/comments/122318.htmlhttp://www.aygfsteel.com/Good-Game/archive/2007/06/06/122318.html#Feedback2http://www.aygfsteel.com/Good-Game/comments/commentRss/122318.htmlhttp://www.aygfsteel.com/Good-Game/services/trackbacks/122318.html 闂錛?/b>
鎬繪槸鐢ㄥ埆浜虹殑妗嗘灦鍐欐爲浠ヤ負寰堥毦錛屽叾瀹炪傘傘?br />瑙e喅錛?/b>浠?if event.srcElement.id=="foldheader1" 寰楀埌閫夐」
聽聽聽聽 聽聽聽 var srcIndex = event.srcElement.sourceIndex
聽聽聽 聽聽 聽 鍐?var nested = document.all[srcIndex+1] 鍙栧嚭閫夋嫨鐨勪笅涓涓?( +1 )
聽聽聽 聽聽 聽聽 聽聽聽 nested.style.display=' 錛燂紵 ' 灝卞彲浠ヤ簡
聽聽聽 聽聽 聽聽 聽聽 騫舵敞鎰忕粨鏋勬槸
聽聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 <閫夐」/>聽聽
聽聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 <url>聽聽//srcIndex+1 涓嬩釜 鍙涓嶅彲瑙?灝辨槸 <url>
聽聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 <li>...</li>
聽聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽聽 <li>...</li>
聽聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽聽 聽 ....
聽聽聽 聽聽聽 聽聽聽 聽聽聽 聽聽聽 聽聽聽 聽聽聽 </url>


<HEAD>

聽聽聽聽
<SCRIPT聽language=JavaScript1.2>
聽聽聽聽
function聽change(){
聽聽聽聽聽聽聽
if(!document.all)
聽聽聽聽聽聽聽聽聽聽
return
聽聽聽聽聽聽聽
if聽(event.srcElement.id=="foldheader1")聽{
聽聽聽聽聽聽聽聽聽聽
var聽srcIndex聽=聽event.srcElement.sourceIndex
聽聽聽聽聽聽聽聽聽聽
聽聽聽聽聽聽聽聽聽聽
var聽nested聽=聽document.all[srcIndex+1]

聽聽聽聽聽聽聽聽聽聽
if聽(nested.style.display=="none")聽{
聽聽聽聽聽聽聽聽聽聽聽聽聽nested.style.display
=''
聽聽聽聽聽聽聽聽聽聽}
聽聽聽聽聽聽聽聽聽聽
else聽{
聽聽聽聽聽聽聽聽聽聽聽聽聽nested.style.display
="none"
聽聽聽聽聽聽聽聽聽聽}
聽聽聽聽聽聽聽}
聽聽聽聽}
聽聽聽聽
</SCRIPT>

聽聽聽聽
<STYLE>
聽聽聽聽聽聽聽聽#foldheader1聽
{聽聽聽聽聽 <!-- 鍥劇殑鍔犲叆-->
聽聽聽聽聽聽聽聽聽聽聽聽CURSOR
:聽hand;聽LIST-STYLE:聽url(../rlzy/images/imbrex.gif)聽
聽聽聽聽聽聽聽聽
}
聽聽聽聽
</STYLE>
</HEAD>
<BODY聽leftMargin=0聽rightMargin=0聽onload="window.status='';">
聽聽
<font聽size="-1">
<!--聽DIV聽id=Layer7聽style="HEIGHT:聽127px;聽LEFT:聽-1px;聽POSITION:聽absolute;聽TOP:聽34px;聽WIDTH:聽47px;聽Z-INDEX:聽1"></DIV-->
<DIV聽id="Layer2"聽style="HEIGHT:聽134px;聽LEFT:聽2px;聽POSITION:聽absolute;聽TOP:聽30px;聽WIDTH:聽193px;聽Z-INDEX:聽3">
聽聽
<UL聽style="MARGIN-LEFT:聽20px">
聽聽聽聽聽聽聽聽
聽聽聽聽聽聽聽聽
聽聽聽聽聽聽聽聽
聽聽聽聽聽聽聽聽
<li>
聽聽聽聽聽聽聽聽聽聽
<a聽href="#"聽onClick="change()"聽id="foldheader1">涔樺姟鍛樺熀鏈。妗?/span></a>
聽聽聽聽聽聽聽聽聽聽
<ul聽id=foldinglist聽style="''"聽style="MARGIN-LEFT:聽10px">
聽聽聽聽聽聽聽聽聽聽聽聽
<li><a聽href="/rlzy/jcyy/basePersonnelList.do?do=byCorp"聽target="content">浜哄憳鍩烘湰妗f1</a></li>
聽聽聽聽聽聽聽聽聽聽聽聽
<li><a聽href=""聽target="content">浜哄憳鍩烘湰妗f2</a></li>
聽聽聽聽聽聽聽聽聽聽
</ul>
聽聽聽聽聽聽聽聽
</li>
聽聽聽聽聽聽聽聽
聽聽聽聽聽聽
</UL>
聽聽聽聽
</DIV>聽聽聽聽聽聽聽聽
聽聽
</font>
</BODY>
</html>

<FRAMESET聽rows="84,*"聽cols="*"聽frameborder="no"聽framespacing="0"聽border="0">
聽聽
<FRAME聽src="header.html"聽name="header"聽scrolling="no">
聽聽
<FRAMESET聽cols="125,*"聽frameborder="no"聽framespacing="0"聽border="0">
聽聽聽聽
<FRAME聽name="treefrm"聽src="dir2.jsp?code=0"聽scrolling="no">
聽聽聽聽
<FRAME聽name="content"聽src="welcome.jsp">
聽聽
</FRAMESET>


蹇冨緱錛氬叾瀹炲緢綆鍗曪紝鍙槸浣犱笉鐭ラ亾



G_G 2007-06-06 11:01 鍙戣〃璇勮
]]> ajax 瀵?struct 寮傛鎻愪氦 鏍囩鐨勮В鍐沖姙娉?/title><link>http://www.aygfsteel.com/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.aygfsteel.com/Good-Game/archive/2007/05/25/120062.html</guid><wfw:comment>http://www.aygfsteel.com/Good-Game/comments/120062.html</wfw:comment><comments>http://www.aygfsteel.com/Good-Game/archive/2007/05/25/120062.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/Good-Game/comments/commentRss/120062.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/Good-Game/services/trackbacks/120062.html</trackback:ping><description><![CDATA[ <strong> <font color="#ff0000">闂:</font> </strong>聽 struct 鏍囩娌℃湁鐩存帴涓巃jax 鏁版嵁鍏煎浜掓崲鏂規硶<br /><font color="#ff0000"><font color="#0000ff"><strong>瑙e喅: </strong></font></font><font color="#000000">鍏堢敤struct 鍔ㄦ佸緱鍒版暟鎹?鍐嶅埄鐢╦avascrpit 鐨?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.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">div2</span><span style="color: rgb(0, 0, 255);">><br />聽聽聽聽聽聽聽聽聽<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"><br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽緙栬緫</html:link><br /></span><span style="color: rgb(0, 0, 0);">聽聽 <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">div2/</span><span style="color: rgb(0, 0, 255);">><br /><br /></span><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">div1/</span><span style="color: rgb(0, 0, 255);">></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.aygfsteel.com/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.aygfsteel.com/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.aygfsteel.com/images/dot.gif" /></span><span id="Codehighlighter1_120_524_Open_Text"><span style="color: rgb(0, 0, 0);">{<br /><img src="http://www.aygfsteel.com/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.aygfsteel.com/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.aygfsteel.com/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);">&</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.aygfsteel.com/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.aygfsteel.com/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.aygfsteel.com/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.aygfsteel.com/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.aygfsteel.com/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.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽<br /><img src="http://www.aygfsteel.com/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.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽}</span></span><span style="color: rgb(0, 0, 0);"><br /><img src="http://www.aygfsteel.com/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.aygfsteel.com/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.aygfsteel.com/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.aygfsteel.com/images/dot.gif" /></span><span id="Codehighlighter1_547_654_Open_Text"><span style="color: rgb(0, 0, 0);">{<br /><img src="http://www.aygfsteel.com/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.aygfsteel.com/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.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽}</span></span><span style="color: rgb(0, 0, 0);"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 0);"></</span><span style="color: rgb(0, 0, 0);">SCRIPT</span><span style="color: rgb(0, 0, 0);">></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"><INPUT type='button' value="test" onclick="action2();"/><br /><br /></font><font color="#008000">鎰熸兂:聽 javascript 涓囪兘鑳舵按</font><img src ="http://www.aygfsteel.com/Good-Game/aggbug/120062.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/Good-Game/" target="_blank">G_G</a> 2007-05-25 18:44 <a href="http://www.aygfsteel.com/Good-Game/archive/2007/05/25/120062.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>XMLDOM 璇︾粏璇存槑鍜岀綉涓婃湁鍏寵祫婧?+ 鍔ㄦ乯avascript寤鴻〃http://www.aygfsteel.com/Good-Game/archive/2007/05/18/118426.htmlG_GG_GFri, 18 May 2007 09:33:00 GMThttp://www.aygfsteel.com/Good-Game/archive/2007/05/18/118426.htmlhttp://www.aygfsteel.com/Good-Game/comments/118426.htmlhttp://www.aygfsteel.com/Good-Game/archive/2007/05/18/118426.html#Feedback5http://www.aygfsteel.com/Good-Game/comments/commentRss/118426.htmlhttp://www.aygfsteel.com/Good-Game/services/trackbacks/118426.html 闂: 瀵筳avascript Dom 瑙h xml聽 鐨勯棶棰?br />
瑙e喅: 緗戦〉涓?javascript 瀛︿範

榪囩▼ js
function聽searchSales(){
聽聽聽聽
var聽url聽="MyXml.xml";聽聽聽聽聽聽聽聽聽聽聽// url 涓嶉檺鍒?鍙互涓?jsp聽 *.do聽 鍙 out.print()鍑烘潵鐨?鏄?xml 鏍煎紡
聽聽聽聽
var聽myAjax聽=new聽Ajax.Request(
聽聽聽聽聽聽聽聽聽聽聽聽 聽url,
聽聽聽聽
{
聽聽聽聽method:聽'get',
聽聽聽聽onComplete:聽action聽聽聽聽聽聽聽聽聽聽聽聽聽 // 鎴愬姛寰楀埌 requ 鐨勬寕杞芥柟娉?br />聽聽聽聽}
);
}


function聽action(request)
{
聽聽聽聽
var聽dom聽=聽request.responseXML;聽聽聽 //榪斿洖 javascript Dom 瑙h瀵硅薄
聽聽聽聽
聽聽聽聽
var聽list聽=聽dom.getElementsByTagName('Weapon');聽
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽//榪斿洖鏍囩鍚?lt;Weapon>聽 闆嗗悎欏瑰彲鐢?item(i) 寰楀嚭聽 .firstChild.nodeValue寰楀?br />
聽聽聽聽
for(聽var聽i聽=0;聽i聽<聽list.length;聽i++聽)聽{
聽聽聽聽聽聽聽聽
var聽nli聽=聽list.item(i);
聽聽聽聽聽聽聽聽
var聽W聽=聽nli.getElementsByTagName(聽'W'聽);
聽聽聽聽聽聽聽聽window.alert(W.item(
0).firstChild.nodeValue);
聽聽聽聽}

聽聽聽聽聽
}

HTML 欏甸潰

</HEAD>
<head>
聽聽聽聽
<script聽src="prototype1.5.0.js"></script>
聽聽聽聽
<script聽src="xml.js"></script>
</head>
<input聽id='test'聽type="submit"聽value="test"聽onclick="searchSales();">
</HTML>

XML

<?xml聽version="1.0"聽encoding="utf-8"聽?>
<Login>

聽聽聽聽
<Weapon聽id="1">
聽聽聽聽聽聽聽聽
<W聽Text="鍏夋潫鍓?聽Value="0">1</W>
聽聽聽聽聽聽聽聽
<W聽Text="鍏夋潫閰嶅垁"聽Value="1">2</W>
聽聽聽聽
</Weapon>

聽聽聽聽
<Weapon聽id="2">
聽聽聽聽聽聽聽聽
<W聽Text="鍏夋潫鍓?聽Value="0">3</W>
聽聽聽聽聽聽聽聽
<W聽Text="鍏夋潫閰嶅垁"聽Value="1">4</W>
聽聽聽聽
</Weapon>
聽聽聽聽
聽聽聽聽聽
<Weapon聽id="3">
聽聽聽聽聽聽聽聽
<W聽Text="鍏夋潫鍓?聽Value="0">5</W>
聽聽聽聽聽聽聽聽
<W聽Text="鍏夋潫閰嶅垁"聽Value="1">6</W>
聽聽聽聽
</Weapon>
</Login>

蹇冨緱: 璋冭瘯浜嗗緢涔呭綋鏃跺javascript 鐨勪笉鐔熸倝,浣嗘垜娌℃湁鏀懼純 鍘葷綉涓婃煡,闂悓浜?鏈鍚庢垚鍔?br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽---------------------聽鍧氭寔灝辨槸鑳滃埄聽------------------

G_G 2007-05-18 17:33 鍙戣〃璇勮
]]>html 綆鍗?div 鎷栧姩http://www.aygfsteel.com/Good-Game/archive/2007/05/08/115904.htmlG_GG_GTue, 08 May 2007 04:28:00 GMThttp://www.aygfsteel.com/Good-Game/archive/2007/05/08/115904.htmlhttp://www.aygfsteel.com/Good-Game/comments/115904.htmlhttp://www.aygfsteel.com/Good-Game/archive/2007/05/08/115904.html#Feedback4http://www.aygfsteel.com/Good-Game/comments/commentRss/115904.htmlhttp://www.aygfsteel.com/Good-Game/services/trackbacks/115904.html闂:聽 鍏磋叮
瑙e喅:聽聽 div鐨?onclike ( this聽)聽 寰楀埌閫夋嫨聽
聽聽聽聽聽聽聽聽聽聽聽聽鐢?window.event 寰楀埌 榧犳爣 x y聽
聽聽聽聽聽聽聽聽聽聽聽聽鐢?this.style.top/left 鏀瑰彉 div 浣嶇疆聽


聽聽聽聽聽聽聽聽
var聽x,y;
聽聽聽聽聽聽聽聽
function聽mousedown(obj)
聽聽聽聽聽聽聽聽{
聽聽聽聽聽聽聽聽聽聽聽聽obj.onmousemove聽
=聽mousemove;
聽聽聽聽聽聽聽聽聽聽聽聽obj.onmouseup聽
=聽mouseup;
聽聽聽聽聽聽聽聽聽聽聽聽
聽聽聽聽聽聽聽聽聽聽聽聽oEvent聽
=聽window.event聽?聽window.event聽:聽event;
聽聽聽聽聽聽聽聽聽聽聽聽x聽
=聽oEvent.clientX;
聽聽聽聽聽聽聽聽聽聽聽聽y聽
=聽oEvent.clientY;
聽聽聽聽聽聽聽聽}
聽聽聽聽聽聽聽聽
function聽mousemove()
聽聽聽聽聽聽聽聽{
聽聽聽聽聽聽聽聽聽聽聽聽oEvent聽
=聽window.event聽?聽window.event聽:聽event;
聽聽聽聽聽聽聽聽聽聽聽聽
var聽_top聽=聽oEvent.clientY聽-聽y聽+聽parseInt(this.style.top)聽+"px"; // oEvent.clientY聽-聽y聽 涓篸iv 涓?縐誨姩鐨勪綅緗?鍐嶅弽鏄犲埌 聽聽聽 聽聽聽 聽聽聽 聽聽聽 聽聽聽 聽聽聽 聽聽聽 聽聽聽 聽聽聽 聽聽聽 聽聽聽 聽聽聽 聽聽聽 聽聽聽 聽聽聽 聽聽聽 聽聽聽 聽聽聽 聽聽聽 聽聽 //parseInt(this.style.top)
聽聽聽聽聽聽聽聽聽聽聽聽var聽_left聽=聽oEvent.clientX聽-聽x聽+聽parseInt(this.style.left)聽+"px";
聽聽聽聽聽聽聽聽聽聽聽聽
this.style.top聽=聽_top;
聽聽聽聽聽聽聽聽聽聽聽聽
this.style.left聽=聽_left;
聽聽聽聽聽聽聽聽聽聽聽聽x聽
=聽聽oEvent.clientX;
聽聽聽聽聽聽聽聽聽聽聽聽y聽
=聽聽oEvent.clientY
聽聽聽聽聽聽聽聽}
聽聽聽聽聽聽聽聽
function聽mouseup()
聽聽聽聽聽聽聽聽{
聽聽聽聽聽聽聽聽聽聽聽聽
this.onmousemove聽=null;
聽聽聽聽聽聽聽聽聽聽聽聽
this.onmouseup聽=null;
聽聽聽聽聽聽聽聽}

蹇冨緱: 鍏磋叮鍐沖畾涓鍒?

G_G 2007-05-08 12:28 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 阳山县| 松江区| 蒙山县| 哈尔滨市| 封丘县| 陇南市| 新宁县| 德令哈市| 明溪县| 正阳县| 周至县| 乌兰浩特市| 绥化市| 霞浦县| 芜湖市| 农安县| 寻乌县| 锡林郭勒盟| 宣恩县| 永兴县| 密山市| 太原市| 公安县| 正定县| 梁河县| 准格尔旗| 富顺县| 凭祥市| 宝清县| 双桥区| 通州区| 从江县| 晋州市| 台前县| 广元市| 陕西省| 阿合奇县| 灵石县| 宁安市| 敦化市| 五河县|