![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
03/03/2003, 11:32
|
![Avatar de KarlanKas](http://static.forosdelweb.com/customavatars/avatar11549_2.gif) | Moderador extraterrestre | | Fecha de Ingreso: diciembre-2001 Ubicación: Madrid
Mensajes: 6.987
Antigüedad: 23 años, 1 mes Puntos: 61 | |
Sería algo así?
Código:
<html>
<head>
<style>
form{font:bold 10px/20px verdana;color:navy}
hr{color:#ffff33; width:110%;position:relative;;left:-13px;height:10px;border:solid 2px red}
</style>
<script>
var p
function cambio(esto){esto.blur()
todos=document.forms[0].elements.length
for (a=0;a<todos;a++){
bicho=document.forms[0].elements[a]
if (bicho==esto){
if (a>2){p=a-3}
else {p=a+3}
document.forms[0].elements[p].checked = true;
break
}
}
}
</script>
<title>Untitled</title>
</head>
<body scroll="no">
<form action="javascript:alert("Se ha enviado!!")"
name="formulario"
id="formulario">
<input onclick="cambio(this)" type="radio"
name="numero"
value="1">Uno<br>
<input onclick="cambio(this)" type="radio"
name="numero"
value="2">Dos<br>
<input onclick="cambio(this)" type="radio"
name="numero"
value="3">Tres
<hr>
<input onclick="cambio(this)" type="radio"
name="numeroRomano"
value="palito">I<br>
<input onclick="cambio(this)" type="radio"
name="numeroRomano"
value="palito-palito">II<br>
<input onclick="cambio(this)" type="radio"
name="numeroRomano"
value="palito-palito-palito">III
</form>
</body>
</html>
__________________ Cómo escribir
No hay pregunta tonta, sino tonto que quiere seguir en la ignorancia.
Última edición por KarlanKas; 03/03/2003 a las 11:43 |