??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";
        
        
//得到处发事g的源element
      var actionBean =  null ;
        
if(  ev.srcElement ){
            actionBean 
= ev.srcElement 
        }
else{
            actionBean 
= ev.target;
        }
        
        
//处发事g 
        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;
    
        
//q回cd为 div 昄的 x , y 和 target 处发源项 和 div
        return {
            y:  actionBean.offsetTop
+15  ,
            x:  actionBean.offsetLeft
+15 ,
            target:actionBean,
            div:useDiv
        }
}



//事gd
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 上传文g大小限定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
限制Q?/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;
}

//事gd
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>

直接q行




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">正式q接</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 现在q种取法有个名字叫(ajaxQ??<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);">调用q程Ҏ</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);">构造查询连接字W串</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);">打开q接</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对象创徏p|</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);">正在加蝲q接对象<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);">q接对象加蝲完毕?/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);">q?/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


使用ҎQ?b>js



//获得Cookie解码后的?/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 == 0break;
    }
    
return null;
}

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() { // 试的函式要以test名称作ؓ开?/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>

q行 Jsunit-> testRunner.html 通过试




G_G 2007-11-28 17:13 发表评论
]]>
ajax ?输入选择 Q同google&L据库Q?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 d (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 问题: 画页??报表 ?图象问题
解决Q?/b>?通过xmld  ȝwz_jsgraphics.js 
                      xml数据取得 prototype.js
                      d?Xmlgraphics.js Q自己包装)
    下蝲Q?font color="#006400">http://www.aygfsteel.com/Files/Good-Game/Mywz_jsgraphics.rar  h?服务器上(tomcat) q改                          testLine.html面上的 load( ul ) =>>  ul Q?xml 的取得地?Q?
            h?Q?IE 5 支持不好 L 火狐 ?IE6
囄 Q?/font>


EG:
   q展C ȝ d  ?d的简单过E?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>


单页?Q?l出 div ?id Q位|??xml 的出?可以了Qload() Ҏ
<!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 W记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 问题 : 提供lB/S l构一个实时的q行展现
解决:   prototype 的 Ajax.PeriodicalUpdater 更新
            prototype 的  ?Ajax.Request 语句提交
            action 语句的组l展?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"  >
        //语句异步提交l服务器 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
='' 
    }

       //局部刷?q提?语句
    
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");
    }

     
        //语句的组l?/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") %>

心得:别h做到?我也能做?br />         要学的东西很?多看?多留?多保护好w体

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 发表评论
]]>
用javascript ?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 问题Q?/b>
L用别人的框架写树以ؓ很难Q其实。。?br />解决Q?/b>?if event.srcElement.id=="foldheader1" 得到选项
         var srcIndex = event.srcElement.sourceIndex
         ?var nested = document.all[srcIndex+1] 取出选择的下一?( +1 )
              nested.style.display=' Q? ' 可以了
             q注意结构是
                         <选项/>  
                            <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>
          
<href="#" onClick="change()" id="foldheader1">乘务员基本?/span></a>
          
<ul id=foldinglist style="''" style="MARGIN-LEFT: 10px">
            
<li><href="/rlzy/jcyy/basePersonnelList.do?do=byCorp" target="content">人员基本案1</a></li>
            
<li><href="" target="content">人员基本案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>


心得Q其实很单,只是你不知道



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 标签没有直接与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.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 详细说明和网上有兌?+ 动态javascripthttp://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 问题: 对javascript Dom 解读 xml  的问?br />
解决: |页?javascript 学习

q程 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;    //q回 javascript Dom 解读对象
    
    
var list = dom.getElementsByTagName('Weapon'); 
                                //q回标签?lt;Weapon>  集合可?item(i) 得出  .firstChild.nodeValue得?br /> 
    
forvar 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">
        
<Text="光束? Value="0">1</W>
        
<Text="光束配刀" Value="1">2</W>
    
</Weapon>

    
<Weapon id="2">
        
<Text="光束? Value="0">3</W>
        
<Text="光束配刀" Value="1">4</W>
    
</Weapon>
    
     
<Weapon id="3">
        
<Text="光束? Value="0">5</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问题:  兴趣
解决:   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  为div ?Ud的位|?再反映到                                                                                //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 发表评论
]]>
վ֩ģ壺 ͬ| | | | ̨| Ϫ| | ½| Ҧ| ɽ| | | | ӳ| | ͨ| ľ| Ȫ| ӱʡ| ̨ʡ| | | | ƽ| ֱ| ͨ| | ͩ| ǭ| ̨| | | | ޳| ߮| | ɽ| | | ͡| Ͳ|