function SelectAlls (chkVal, idVal) 

    var tb = document.getElementById("DataGrid1");
    for(var i=1;i<tb.rows.length;i++)
    {
        var cb = tb.rows[i].cells[0].firstChild;
       
        cb.checked = chkVal;
        checkme(cb,tb.rows[i]);
        
    }
  
}

解决方案 »

  1.   

    参照这个试试,我这里没有问题
    ListItemType itemType = e.Item.ItemType;
    if (itemType == ListItemType.Item )
    {
    e.Item.Attributes["onmouseout"]= "javascript:this.style.backgroundColor='#dedfde';";
    e.Item.Attributes["onmouseover"]="javascript:this.style.backgroundColor='#fff7ce';cursor='hand';" ;
    }
    else if( itemType == ListItemType.AlternatingItem)
    {
    e.Item.Attributes["onmouseout"]= "javascript:this.style.backgroundColor='#ffffff';"
    e.Item.Attributes["onmouseover"] = "javascript:this.style.backgroundColor='#fff7ce';cursor='hand';" ;
    }
      

  2.   

    这个是鼠标移动plsandslp() 同志