there're some difference...
parentElement=>parentNode;
no event.returnValue in moz

解决方案 »

  1.   

    <input type="checkbox" name=L02 onclick='themeIndex("yd",this.checked)' >和
    <table>
    <tr onclick="turn_color(this)" onDblClick="open_win('lhnrdetail.htm')"> 
    <td>dddd</td>
    </tr>
    <tr onclick="turn_color(this)" onDblClick="open_win('lhnrdetail.htm')"> 
    <td>dddd</td>
    </tr>
    <tr onclick="turn_color(this)" onDblClick="open_win('lhnrdetail.htm')"> 
    <td>dddd</td>
    </tr>
    <tr onclick="turn_color(this)" onDblClick="open_win('lhnrdetail.htm')"> 
    <td>dddd</td>
    </tr>
    </table>
    <script>
    function themeIndex(a,b)
    {
    alert(b)
    }
    function turn_color(row)
    {
    var table_name=row.offsetParent; for(i=0;i<table_name.rows.length;i++)
    {
    table_name.rows[i].style.backgroundColor="#f2f8ff";
    }
    row.style.backgroundColor="#ff6600";
    // document.getElementById ("hdd_i").value=row.id_name;
    event.returnValue=0;

    }
    </script>
      

  2.   

    在Mazilla和Netscape中,表单元素的名字要用formName来访问,<form name=f>
    <input type="checkbox" name=L02 onclick='themeIndex("yd",document.f.L02.checked)' >
    </form>
      

  3.   

    be carefull,in some version of netscape or moz,offsetParent of td not the table...use dom
    row.parentNode == > tbody
    row.parentNode.childNodes[i] => row
      

  4.   

    <SCRIPT id=scriptGetRecord language="javascript" src="" name="scriptGetRecord"></SCRIPT>scriptGetRecord.src = content;
    这种情况怎么解决,不是表单的名字,在ie中就可以访问,在mozilla中访问不到。
      

  5.   

    document.getElementById("scriptGetRecord").src = ...
      

  6.   

    用fason(阿信) ( ) 的方法在ie中可以,但在mozilla中还是不行,即使把引用的js页面只保留alert();也不能执行,怎么回事。
      

  7.   

    document.getElementById("scriptGetRecord").getAttribute("src")