Ver Mensaje Individual
  #11 (permalink)  
Antiguo 22/02/2003, 12:48
Avatar de tunait
tunait
Moderadora
 
Fecha de Ingreso: agosto-2001
Ubicación: Terok Nor
Mensajes: 16.805
Antigüedad: 22 años, 8 meses
Puntos: 381
Allá va, espero que los foros no vuelvan a partir las líneas.
si lo hace de nuevo yá te colgaría el ejemplo en la red

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>


</head>
<body status="no" scroll="no">
<br>

<h3>Quiero recibir las novedades de la p&aacute;gina por e-mail<br>
</h3>

<form action="mailto:[email protected]" method="post" enctype="text/plain">
Mi correo
<input
type="text" size="20" maxlength="25"><br>
Recibir novedades via E-mail<input name="" checked
type="checkbox"><br>
<input type="submit" name="enviar" value="enviar"> </form><p><hr><p>




<br>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">

<form name="eMailer"> ENV&Iacute;A ESTA P&Aacute;GINA A UN AMIGO <br>
Indica su e-mail: <br>
<input type="text" name="address" size="25"> <br>
<input type="button" value="ENVIAR" onclick="mailThisUrl();"> </form>
<script language="JavaScript1.2">
// (C) 2000 www.CodeLifter.com

var good;
function checkEmailAddress(field) {
// the following expression must be all on one line...
var goodEmail = field.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.go v)|(\.org)|(\..{2,2}))$)\b/gi);
if (goodEmail){
good = true
} else {
alert('Por favor introduce un e-mail valido')
field.focus()
field.select()
good = false
}
}

u = window.location;
m = "Mira esta página, es muy interesante";
function mailThisUrl(){
good = false
checkEmailAddress(document.eMailer.address)
if (good){
// the following expression must be all on one line...
window.location = "mailto:"+document.eMailer.address.value+"?subject ="+m+"&body="+document.title+" "+u;
}
}
</script> <br>

</body>
</html>