Ver Mensaje Individual
  #3 (permalink)  
Antiguo 25/11/2004, 18:02
juanm
 
Fecha de Ingreso: enero-2004
Mensajes: 24
Antigüedad: 20 años, 4 meses
Puntos: 0
Envio el script. Muchas gracias.-

<html>
<head>
<title>Formulario de correo</title>
<script language="JavaScript">

<!-- This script and many more are available online from -->
<!-- Data~Creek Design!! http://datacreek.com/design -->

<!-- Begin
function getCookie(name){
var cname = name + "=";
var dc = document.cookie;
if (dc.length > 0) {
begin = dc.indexOf(cname);
if (begin != -1) {
begin += cname.length;
end = dc.indexOf(";", begin);
if (end == -1) end = dc.length;
return unescape(dc.substring(begin, end));
}
}
return null;
}
function setCookie(name, value, expires) {
document.cookie = name + "=" + escape(value) +
((expires != null) ? "; expires=" + expires.toGMTString() : "")
+ "; path=/";
}
function setName() {
var expdate = new Date ();
expdate.setTime (expdate.getTime() + (24 * 60 * 60 * 1000 * 365));
var prompt=i = document.Mail.name.value;
setCookie("name", i, expdate);
}
function getName() {
if(getCookie("name") != null) {
document.Mail.Name.value = getCookie("emailname");
}
}
function getInfo() {
var now= new Date();
document.Mail.Info.value = "Navegador: " + navigator.userAgent;
document.Mail.Info.value += "Fecha:" + now;
}
function checkMultiple() {
if (getCookie("emailsent") == 'true') return true;
else return false;
}
function process() {
setCookie("emailsent", "true");
with (document.Mail) {
if (Subject.selectedIndex == 1) action = "mailto:[email protected]?subject=Comentario" ;
else if (Subject.selectedIndex == 2) action = "mailto:[email protected]?subject=Pregunta";
else if (Subject.selectedIndex == 3) action = "mailto:[email protected]?subject=Sugerencia" ;
else if (Subject.selectedIndex == 4) action = "mailto:[email protected]?subject=Enlace roto";
else action = "mailto:[email protected]?subject=Otros";
}
}
function formCheck() {
var passed = false;
with (document.Mail) {
if (Subject.selectedIndex == 0) {
alert("Por favor selecciona asunto.");
Subject.focus();
}
else if (Name.value == "") {
alert("Por favor incluye tu nombre.");
Name.focus();
}
else if (checkMultiple == "") {
if (confirm("Acabas de mandar un email utilizando este formulario, ¿estás seguro de que quieres mandar otro?")) {
process();
passed = true;
}
}
else {
process();
passed = true;
}
}
return passed;
}
// End -->
</script>
<link href="Mail%20&%20suggestions_archivos/design2.css" rel="stylesheet" type="text/css">


</head>

</b>
<body>

</p>
<center><font face="Times" size="3">
<dd><b>Formulario de correo</b><br>
<br>
<br>
Para enviar correo directamente pulsa
<a href="mailto:[email protected]?subject=TJS - Mail">aquí</a>. <br>
<br>
</font><font face="Times" size="2">
Nota: todos los mensajes se envían a <a href="mailto:[email protected]">
[email protected]</a><br>
Para cambiar el destinatario modificar el correo en el código fuente</font><font face="Times" size="3"><br>
&nbsp;
<form action="mailto:[email protected]?subject=TJS - Form" encType="text/plain" method="post" name="Mail" onsubmit="return formCheck();">

<input name="Info" size="0" type="hidden">
<input name="Javascript Picksubject Form" size="0" type="hidden">
<table border="0" cellPadding="5" cellSpacing="0">
<tr>
<td>Name: <input name="Name" onchange="setName()" size="20"> </td>
<td align="right">Asunto: <select name="Subject">
<option selected SELECT>Selecciona asunto...</option>
<option>1. Comentario</option>
<option>2. Pregunta</option>
<option>3. Sugerencia</option>
<option>4. Enlaces rotos</option>
<option>5. Ninguno de los anteriores</option>
</select> </td>
</tr>
<tr>
<td colSpan="2">Notas:<br>
<textarea cols="65" name="Comments, Suggestions" rows="6"></textarea> </td>
</tr>
</table>
<center>
<table>
<tr>
<td align="middle"><input type="submit" value="Enviar"> </td>
</tr>
</table>
</center>
</form>
<script language="JavaScript">
<!-- Begin
getInfo();
getName();
// End -->
</script>
</font></dd>
</center>
<!-- Script Size: 4.15 KB --><center>
<form>
<p>
<input name="lukk" onclick="window.close();" type="button" value="Cerrar ventana"></p>
</form>
</center>
<p><br>
</p>
</dd>
</center>

</body>

</html>