如题

解决方案 »

  1.   

    用JS控制DOM节点便可以实现出差在外 无法给出具体的程序来。
      

  2.   

    这里有教程http://www.code-design.cn/blogdetail387.html
      

  3.   


    function LoadVote()
    {
    Ajax("post","../xml/vote.xml",showData);
    function showData(xmlHttp){
    if(xmlHttp.readyState==4){
    var re=xmlHttp.responseXML;
    var root=re.documentElement;
    var votes=root.getElementsByTagName("vote");
    var count=votes.length;
    var htmlStr="<table width=100% cellSpacing=0 cellPadding=0>";
    for(var i=0;i<count;i++){
    var id=votes[i].getAttribute("id");
    var title=votes[i].getElementsByTagName("title")[0].firstChild.nodeValue;
    htmlStr+="<tr><td><input type='checkbox' class='chb' value="+id+"></input></td><td>"+id+"</td><td>"+title+"</td><td><a href='voteEdit.php?id="+id+"'>修改</a></td></tr>";
    }
    htmlStr+="</table>";
    $("dataShow").innerHTML=htmlStr;
    }else{
    $("dataShow").innerHTML="loading...";
    }
    }
    }