Ver Mensaje Individual
  #19 (permalink)  
Antiguo 09/01/2003, 10:17
sgafo
 
Fecha de Ingreso: octubre-2001
Mensajes: 1.288
Antigüedad: 22 años, 6 meses
Puntos: 0
Chicos:

Creo que ambas opciones las he probado ya, pero a mi manera.

Acabo de volver a hacerlo a la vuestra y no va.

Como no se si estoy metiendo la pata, va codigo:

....

function centrar_frame()
{
if ((form.opcion[0].checked=="") and (form.opcion[1].checked=="") and (form.opcion[2].checked=="") and (form.opcion[3].checked=="") (form.opcion[4].checked==""))
{ return;}

if (screen.width==1024){textDiv.style.left =545;}
if (screen.width==800){textDiv.style.left =445;}
if (screen.width==1024){textDiv2.style.left =118;}
if (screen.width==800){textDiv2.style.left =12;}
miform.submit();
}

<form method="post" action="encuesta.asp" target="textFrame" id="miform">

.....

<input type="submit" value="Votar" name="vota" onClick="centrar_frame();">
</form>


de paso me decis si hay algun manual donde se aprendan estas cosas para no aburriros????
__________________
"... era precisamente la fina hermosura del dolor humano... que al parecer sólo la música sabe expresar." - Cuentos imprescindibles, Anton Chéjov.


Última edición por sgafo; 09/01/2003 a las 10:20