Ver Mensaje Individual
  #2 (permalink)  
Antiguo 23/05/2006, 15:35
Avatar de chalchis
chalchis
 
Fecha de Ingreso: julio-2003
Mensajes: 1.773
Antigüedad: 20 años, 10 meses
Puntos: 21
Sonrisa creo que usando css

checa esto

I updated the code to have some input fields that will hold the saved data in the form, also you can change the input's type to "hidden" to avoid seeing them :


<html>
<head>
<title>about:blank</title>
<script language="javascript1.2">
<!-- copyright(c) [email protected]
function setCheck(obj, sIDInput)
{
if (obj.checked)
{
obj.firstChild.innerHTML = ""
}
else
{
obj.checked = false; //Initiate value with false;
obj.firstChild.innerHTML = "a"
}
obj.document.getElementById(sIDInput).value = obj.checked;
obj.checked =!obj.checked;
}
-->
</script>
<style>
.checkbox
{
font-family:webdings;
position:relative;
font-size:18px;
color:#333399;
top:-4;
left:-2px;
}
.checkbox_wrapper
{
width:15px;
height:15px;
overflow:hidden;
border:1px inset ;
cursor:hand;
}
</style>
</head>
<body>
<form>
<div class="checkbox_wrapper" onclick="setCheck(this, 'check1')"><span class="checkbox"></span></div>
<br>
<div class="checkbox_wrapper" style="border-width:2px;" onclick="setCheck(this, 'check2')"><span class="checkbox"></span></div>

<input type="text" name="check2" id="check2">
<input type="text" name="check1" id="check1">

</form>
</body>
</html>
__________________
gerardo