我用的是asp要求竖着显示导航
每个对应链接为address里的内容
全部显示到表格里用JS能实现吗??

解决方案 »

  1.   

    在51js上找宝玉的popup菜单,基本合你的要求
      

  2.   

    把上面xml文件存为:temp.xml然后新建一个htm文件,和temp.xml同一目录<html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>xml</title>
    </head>
    <body>
    <script> 
    var xmldom = new ActiveXObject("Microsoft.XMLDOM");
    xmldom.async = false;  
    xmldom.load("temp.xml"); 
    var str=""; 
    var nodes=xmldom.documentElement.selectNodes("//links/link"); 
    for(j=0;j<nodes.length;j++) 
    {
         str += "<a href='"+nodes[j].getAttribute("address")+"'>"+ nodes[j].getAttribute("ZH") +"</a>  ";
    }
    document.write(str); 
    </script>
    </body>
    </html>