<html>
<! Copyright (c) Anpson Elec Corp., 2003. All Rights Reserved. ->
<head>
<meta http-equiv="Content-Type" content="text/html">
<title>Anpson</title>
</head><body topmargin="0" leftmargin="0">
<form name="tf1"><div align="center">
  <table border="0" cellspacing="0" cellpadding="0" id = "table" >
  <tr>
    <td  valign="top" colspan="2"><OBJECT ID="DvsPlugin"  CLASSID=clsid:d1d82f24-a7a2-4152-91c6-f1b7bd7c5151 CODEBASE="DvsPlugin.cab"  
 standby="Waiting..." ALIGN="top" WIDTH=938 HEIGHT=618 >
  <PARAM NAME="port" VALUE="7007">
</OBJECT><script language="javascript">
var play = document.getElementById("DvsPlugin");
play.IpAddr =location.hostname;
if (screen.width<=800) 
{
    table.width=1004;
    table.height=600;
    DvsPlugin.width=1004;
    DvsPlugin.height=600;

else
{
    table.width=screen.width - 22;
    table.height=screen.height - 166;
    DvsPlugin.width=screen.width - 22;
    DvsPlugin.height=screen.height - 166;
}
</script>
    </td>
  </tr>
 </table>
</div>
</form>
<A HREF="DvsPlugin.cab"> 下载插件</A>
</body>
</HTML>错误提示:
Line:35
Char:5
Code:0
Error:'DvsPlugin' 未定义
网址:file://C:\Documents and Settings\dell\My Documents\plugin.htm该如何解决?

解决方案 »

  1.   

    <OBJECT ID="DvsPlugin"  CLASSID=clsid:d1d82f24-a7a2-4152-91c6-f1b7bd7c5151 CODEBASE="DvsPlugin.cab"  
    standby="Waiting..." ALIGN="top" WIDTH=938 HEIGHT=618 > 
      <PARAM NAME="port" VALUE="7007"> 
    </OBJECT> 路径错了.
      

  2.   

    不清楚啊,DvsPlugin可以直接用?不需要document.get...??
      

  3.   


    <div id='div1'></div>
    <form>
      <div id='div2'></div>
    </form>
    <script language='javascript'>
      alert(typeof div1);
      alert(typeof div2);
    </script>放在form中间的对象是不能直接用ID来访问的。