![lloron](http://static.forosdelweb.com/fdwtheme/images/smilies/chillando.png)
![Neurótico](http://static.forosdelweb.com/fdwtheme/images/smilies/scared.png)
![de acuerdo](http://static.forosdelweb.com/fdwtheme/images/smilies/dedosarriba.png)
![en desacuerdo](http://static.forosdelweb.com/fdwtheme/images/smilies/dedosabajo.png)
![Pensando](http://static.forosdelweb.com/fdwtheme/images/smilies/scratchchin.gif)
<script language="javascript">
function hab_des(cual)
document.getElementById('cual').disabled=true;
</script>
pero realmente no se como llamarlo
![Negando](http://static.forosdelweb.com/fdwtheme/images/smilies/negar.gif)
Aki esta el codigo
Código:
DIM matriz1()'Matriculas DIM matriz2()'Indexs DIM matriz3() 'periodos set rec = cxn.execute("select count(*) from tablilla where activo=1;") cuantos=rec(0) response.write "Registros: "&cuantos&"<br/>" REDIM matriz1(cuantos)'campo1 REDIM matriz2(cuantos)'campo2 REDIM matriz3(cuantos)'campo3 sql="SELECT campo1, campo2, campo3 FROM tablilla where activo=1;" RS.Open sql, cxn cont=0 while RS.EOF=FALSE matriz1(cont)=RS("campo1").value matriz2(cont)=RS("campo2").value matriz3(cont)=RS("campo3").value RS.movenext cont=cont+1 wend RS.close 'CREARA LAS PAGINAS QUE SE USARAN %> <table><tr> <% For lk=0 to CuantasPaginas %> <th><a onclick="hab_des()"><%=lk%></a></th> <% next %> </tr></table> <% 'CREARA LAS TABLAS DE MUESTRAS for kl=0 to CuantasPaginas%> <div class="story"> <table id="tabla<%=kl%>"> <tr><th>#</th><th>Campo1</th><th>Campo2</th><th>Campo3</th><th>Cuanto Pagara</th></tr> <%for kll=0 to CuantosDespliegue-1 if matriz1(klll)<>"" then %> <tr><th><%=consecutivo%></th><td><%=matriz1(klll)%></td><td><%=matriz2(klll)%></td><td><%=matriz3(klll)%></td><td><%=matriz3(klll)*2000%></td></tr> <% consecutivo=consecutivo+1 klll=klll+1 else kll=CuantosDespliegue+1 kl=CuantasPaginas+1 end if next%> </table></div> <%next consecutivo=""