datagrid简单显示问题求助
<script language="javascript">
var backcol
var currcol = "#ffff99"
function currstyle(obj)
{
var i
for(i=0;i<document.all("DataGrid1").rows.length;i++)
{
if( document.all("DataGrid1").rows(i).style.backgroundColor == currcol)
{
document.all("DataGrid1").rows(i).style.backgroundColor = backcol
}
}
backcol = obj.style.backgroundColor
obj.style.backgroundColor = currcol
}
</script>
这段代码是用于datagrid高亮显示的,但请高手赐教应该如何调用currstyle(obj) 函数呢?先谢谢了