点击变色
<script language="javascript">
var obj = null;
</script>在Onitemdatabound事件中加入如下语句e.Item.Attributes["onclick"]=" if (obj == this) return; if (obj != null) obj.style.backgroundColor = ''; this.style.backgroundColor='#1CCCFF'; obj=this;";
<script language="javascript">
var obj = null;
</script>在Onitemdatabound事件中加入如下语句e.Item.Attributes["onclick"]=" if (obj == this) return; if (obj != null) obj.style.backgroundColor = ''; this.style.backgroundColor='#1CCCFF'; obj=this;";
我照你说的方法设了,可是点击某一列链接列后并没有变色呀,这是怎么回事呢?