agree hjw
我和讨厌那个黄颜色的报错的标志啊~~~所以我js也还不错~~把整个代码帖来看看~~

解决方案 »

  1.   

    ie的报错行号是指到了客户端显示的代码的第几行,而不是加上php代码的第几行
      

  2.   

    对!!把yorgo的话换个方式说就是解析以后的html代码行数而不是解析以前的所有源代码的行数~~~
      

  3.   

    在IE上查看源文件如下
    <html>
    <head>
    <title>欢迎</title>
    <META content="text/html; charset=gb2312" http-equiv=Content-Type>
    <style type="text/css">
    <!--
    .body {font-size: 9pt}
    .name {color:#3399FF; font-family: "宋体"; font-size: 9pt}
    table {font-size: 9pt}
    td { font-size: 9pt;}
    A {text-decoration: none; color:#0000CC; }
    A:hover {text-decoration:underline; color:#FF00CC;}
    A:visited {color:#FF6666;text-decoration: none}
    select.sel1  {font-family: "宋体"; font-size: 9pt;background-color: white}
    select.Sel2 {font-size: 9pt; background-color: #9999FF;color:WHITE}
    input  {font-family: "宋体"; font-size: 9pt;background-color: white}
    -->
    </style>
    </head>
    <body bgcolor="#0B0BB2" class="name" marginwidth='0' marginheight='0' leftmargin='15' topmargin='5' >
    <br>目前直辖单位共有 1 个<br>
        请在方框内选择进行删除 
    <br>
    <div align=right>[第 1  页] </div><hr>
    <br>
    <div align=center>    
            <table width='95%' border='1' cellpadding='0' bordercolor='#00ff00' bordercolorlight='#FF9999' bordercolordark='#FFFFFF'>
            <tr class='name'>
                <td height='26' >
                  <div align='center'><b>单位代号</b></div>
                </td>
                <td height='26' >
                  <div align='center'><b>单位名称</b></div>
                </td>
                <td height='26'>
                  <div align='center'><b>单位修改</b></div>
                </td>
             </tr>
             <tr> <td  class='name' align='center' bgcolor='#00FF00'>01</td> 
                  <td class='name' align='center' bgcolor='#00FF00'>湖南省电信集团常德分公司</td> 
                  <td class='name' align='center' bgcolor='#00FF00'>
                      <div><input type='button' onclick='winopen()'  value='修 改' style='background-color:#00ff00' ></div>
                  </td>
             </tr>
             </table>
    </div>
    <hr>
    <div align=right>[第 1  页] </div><script language="JavaScript">
    function WinOpen() {
       msg=open("","DisplayWindow","toolbar=no,directories=no,menubar=no");
       msg.document.write("<HEAD><TITLE>哈 罗!</TITLE></HEAD>");
       msg.document.write("<CENTER>视 窗</CENTER>");
    }
    </script>
    </body>
    </html>
      

  4.   

    单独的一个oci函数是不涉及到对象的,何况你也没有什么对象咯,如果你的提示是以对话框形式alert出来的,那么这个绝对是客户端脚本的错误提示,PHP的错误提示是以HTML文档的形式显示出来的,不会出现对话框的是不是点修改出的错误提示??老大,注意大小写function WinOpen() {><input type='button' onclick='winopen()'  value='修 改' style='background-color:#00ff00' >