asp 调用JAVA 改变ID的编号

来源:百度知道 编辑:UC知道 时间:2024/07/02 17:38:21
function proUL(sj,ct){
for(var j=1;j<=ct;j++){
if(j==sj){
document.getElementById("proUL_1_"+j).style.display="";
document.getElementById("proUL_"+j).style.display="none";
}else{
document.getElementById("proUL_1_"+j).style.display="none";
document.getElementById("proUL_"+j).style.display="";
}
}
}

我要如何才能调用到

<tr id=proUL_1><td></td></tr>
<tr id=proUL_1_1><td></td></tr>

<tr id=proUL_2><td></td></tr>
<tr id=proUL_1_2><td></td></tr>

<tr id=proUL_...><td></td></tr>
<tr id=proUL_1_...><td></td></tr>

这样一直到10.谢谢!
<SCRIPT language=javascript type=text/javascript>function nexttag(j,maxul){
proUL(j,maxul);
var

当然是在你需要调用的时候调用了!
比如,如果你是希望在页面加载完后调用就直接放在:
onload="doit()"

再加添加一个模块 doit()

for(t=1,t<=10,t++)
{
proUL(XX,YY); //这里的XX,YY根据你的需要而定,我不知道你是要XX=t还是YY=t
}