这段表格的加法 怎么会出错求高手指教
表格前面都好 就是不知道 为什么 第2段的垒加不会成功是一次一次显示的?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN " "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns= "http://www.w3.org/1999/xhtml ">
<head>
<meta http-equiv= "Content-Type " content= "text/html; charset=gb2312 " />
<title> 一周工作报告 </title>
<script language= "JavaScript ">
<!--
var intRowIndex = 0;
function insertRow(tbIndex){
var objRow = myTable.insertRow(tbIndex);
var objCel = objRow.insertCell(0);
objCel.innerHTML = document.myForm.myCell1.value;
var objCel = objRow.insertCell(1);
objCel.innerHTML= document.myForm.myCell2.value;
var objCel = objRow.insertCell(2);
objCel.innerHTML = document.myForm.myCell3.value ;
var objCel = objRow.insertCell(3) ;
objCel.innerHTML = document.myForm.myCell4.value;
var objCel = objRow.insertCell(4);
objCel.innerHTML = document.myForm.myCell5.value;
objRow.attachEvent( "onclick ", getIndex);
switch(myForm.menu1.value){
case "12 " :
myColor = "white ";
break;
case "13 " :
myColor = "blue ";
break;
case "14 " :
myColor = "red ";
break;
}
objRow.style.background = myColor;
switch(myForm.menu1.value){
case "12 " :
break;
case "13 " :
myForm.jiaban.value += myForm.myCell4.value - myForm.myCell3.value ;
break;
case "14 " :
myForm.linshi.value += 1 ;
break;
}
}
function getIndex(){
intRowIndex =