Ver Mensaje Individual
  #3 (permalink)  
Antiguo 19/07/2006, 18:18
Avatar de Cap.Buscapina
Cap.Buscapina
 
Fecha de Ingreso: octubre-2004
Ubicación: Argentina
Mensajes: 836
Antigüedad: 19 años, 7 meses
Puntos: 4
hola,

la verdad, no leí todo el codigo (es muy largo), pero si interpreto bien lo que querés hacer probá esto:
Cita:
<html>
<head>
<style type="text/css">
<!--
.odd {
font-family: "Times New Roman", Times, serif;
font-size: 12px;
background-color: #EBE1C2;
border: thin dotted #996600;
}
.odd2 {
font-family: "Times New Roman", Times, serif;
font-size: 12px;
background-color: #EBffC0;
border: thin dotted #990000;
}
td label {width:100%; height:100%; display:block}
-->
</style>
<script>
function cambiar(c){
c.parentNode.parentNode.className=(c.checked==true )?"odd2":"odd";
}

function todos(a){
i=document.getElementById('x').getElementsByTagNam e('input');
for(z=0;z<i.length;z++){
if(i[z].type=="checkbox"){
i[z].checked=a;
cambiar(i[z]);
}
}
}
</script>
</head>

<body>
<form><table width="100%" id="x" ><tr >

<td align="center" class="odd" >
<label for="id_rows_to_delete0"><input id="id_rows_to_delete0" name="rows_to_delete[+%60userid%60+%3D+1]" onclick="cambiar(this)" value="DELETE+FROM+%60administrator%60+WHERE+%60us erid%60+%3D+1+LIMIT+1" type="checkbox">
<li>Foro Basico $</li>
</label></td></tr>
<tr >
<td align="center" class="odd" ><label for="id_rows_to_delete1">
<input id="id_rows_to_delete1" name="rows_to_delete[+%60userid%60+%3D+1]x" onclick="cambiar(this)" value="DELETE+FROM+%60administrator%60+WHERE+%60us erid%60+%3D+1+LIMIT+1" type="checkbox">
<li>Foro Basico $</li>
</label></td></tr>

</table>
<span onclick="todos(true)" style="cursor:pointer">Marcar todos/as</span>
/
<span onclick="todos(false)" style="cursor:pointer">Desmarcar todos</span>
</form>
</body>
</html>
está adaptado a tu planteo de codigo, si no, se puede simplificar un poquito.


saludos
__________________
by Capitán Buscapina
.