<script type="text/javascript" defer>
<!--
var row;
var cell;
var tbody = tblUpdate.childNodes[0];
tblUpdate.appendChild( tbody );
for (var i=0; i<25; i++)
{
row = document.createElement( "TR" );
tbody.appendChild( row );
for (var j=0; j<50; j++)
{
if (j==10){
cell1 = document.createElement( "TD" );
row.appendChild( cell1 );
cell1.innerHTML = " ";
cell1.onmouseover=function(){alert("第10列的")}
}
else
{cell2 = document.createElement( "TD" );}
row.appendChild( cell2 );
cell2.innerHTML = " ";
cell2.onmouseover=function(){alert("不是第10列的")}
}
}
//-->
</script>
<center>
<table id=tblUpdate border=1 style="cursor:hand;width:500">
</table>
</center>
<!--
var row;
var cell;
var tbody = tblUpdate.childNodes[0];
tblUpdate.appendChild( tbody );
for (var i=0; i<25; i++)
{
row = document.createElement( "TR" );
tbody.appendChild( row );
for (var j=0; j<50; j++)
{
if (j==10){
cell1 = document.createElement( "TD" );
row.appendChild( cell1 );
cell1.innerHTML = " ";
cell1.onmouseover=function(){alert("第10列的")}
}
else
{cell2 = document.createElement( "TD" );}
row.appendChild( cell2 );
cell2.innerHTML = " ";
cell2.onmouseover=function(){alert("不是第10列的")}
}
}
//-->
</script>
<center>
<table id=tblUpdate border=1 style="cursor:hand;width:500">
</table>
</center>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货