<html>
<head>
<title>my test</title>
</head>
<body>
<script language="javascript">
var xml = new ActiveXObject("Microsoft.XMLDOM");
xml.load("data.asp");
xml.async = false;
setInterval("get()",1000);
setInterval("display()",1000);
var svgdoc = document.embeds["test"].getSVGDocument();
function get(){
    xml.load("data.asp");
}function display(){
   var xmlroot = xml.documentElement;
   child = xmlroot.childNodes.item(0);
   
   obj = child.childNode.item(0);
   var sz = svgdoc.getElementById("shuizhu");   
   var theValue = obj.text;
   sz.setAttribute("y2",theValue);
 
   
    
}</script>
<embed src="test.svg" type="image/svg+xml" pluginspace="http://www.adobe.com/svg/viewer/install/" width="400" height="300" name = "test"/>

</body>
</html>有错误!!
我找不出
帮忙!!