大哥.这个function错在哪里????help~`````````` 对不起,函数前面还有:var curr 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我改进过的函数如下:var currfunction change(tabID){ if(curr!=null){ //为恢复原来的颜色 document.all(tabID).rows[curr].style.background=document.bgColor; } document.all(tabID).rows //高亮显示[window.event.srcElement.parentElement.rowIndex].style.background=document.fgColor; curr=window.event.srcElement.parentElement.rowIndex;}但还是有document.all(tabID).rows[window.event.srcElement.parentElement.rowIndex].style为空或不是对像的错误.为什么啊?? 请问下如何将图片设置为type为text的背景图片呢? 循环第二次的时候文字消失 请教一个有关于正则的问题 能推荐几本javascript书吗? 左侧导航栏中的一个元素能不能拖动到右边的iframe中 jquery取值问题。 jquery 操作iframe 请问js中如何控制打印机啊?谢谢了~ NetScape 中 JavaScript 的问题。 jquery easyui 每次EACH以后返回一个新的值 分享:JavaScript实现在线编辑表格 我刚学javascript,在编写一个数据库程序,遇到一些问题,请帮帮我!
var curr
function change(tabID){
if(curr!=null){ //为恢复原来的颜色
document.all(tabID).rows[curr].style.background=document.bgColor;
}
document.all(tabID).rows //高亮显示[window.event.srcElement.parentElement.rowIndex].style.background=document.fgColor;
curr=window.event.srcElement.parentElement.rowIndex;
}但还是有document.all(tabID).rows[window.event.srcElement.parentElement.rowIndex].style为空或不是对像的错误.为什么啊??