
<HTML>
<head>
<title>cookies pop up</title>
<script type="text/javascript">
<!--Ocultación a navegadores antiguos
function getCookieVal (offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
function GetCookie (name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i,j) == arg)
return getCookieVal (j);
i = document.cookie.indexOf(" ",i) + 1;
if (i==0) break;
}
return null;
}
function SetCookie (name,value) {
var argv = SetCookie.arguments;
var argc = SetCookie.arguments.length;
var expires = (argc > 2) ? argv[2]: null;
var path = (argc > 3) ? argv[3]: null;
var domain = (argc > 4) ? argv[4]: null;
var secure = (argc > 5) ? argv[5]: false;
document.cookie = name + "=" + escape (value) +
((expires == null) ? "": ("; expires=" +
expires.toGMTString())) +
((path == null) ? "": ("; path=" + path)) +
((domain == null) ? "": ("; domain=" + domain)) +
((secure == true) ? "; secure": "");
}
function DeleteCookie (name) {
var exp = new Date();
exp.setTime (exp.getTime() -1); //Fue esta cookie
var cval = GetCookie (name);
if (cval != null)
document.cookie = name + "=" + cval + "; expires=" +
exp.toGMTString();
}
// Fin de la ocultación -->
</script>
</head>
<body text="#FFFFFF" bgcolor="#000000" link="#0000EE" vlink="#551A8B" alink="#FF0000"
background="Fondaso.jpg" nosave><b>
<script language="javascript">
<!--Ocultación a navegadores antiguos
var nombre = GetCookie("GMRCook1");
var contador = GetCookie("GMRCook2");
var expdate = new Date(1999,31,12);
contador++;
SetCookie("GMRCook2",contador,expdate);
if (nombre=="null" || nombre==null || nombre=="Visitante" || nombre=="") {
var nombre = prompt("Bienvenido a Gamarod JavaScript \nEscribe tu nombre Por Favor !","");
if (nombre==null || nombre=="") {
alert("Ey! no has ingresado tu nombre, de alguna forma voy a tener que llamarte, \n ¿Qué te parece si te llamo 'Visitante'");
nombre = "Visitante";
}
SetCookie("GMRCook1",nombre,expdate);
}
function ventana1() {
var newWindow = window.open("","","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,height=200,width=300")
if (newWindow != null) {
// assemble content for new window
var newContent = "<HTML><HEAD><TITLE>Bienvenido a Gaby Web Site!!! </TITLE></HEAD>"
newContent += "<BODY>"
newContent += "<B><CENTER>' BIENVENIDO '</CENTER></B>"
newContent += "<B>" + top.nombre + "</B>" + ", "
newContent += "veo que es tu primera visita, "
newContent += "a mi Web , espero que la misma sea "
newContent += "de tu agrado y que añadas mi "
newContent += "dirección a tus Favoritos."
newContent += "<CENTER><FORM><INPUT TYPE='button' VALUE='Cerrame' onClick='self.close()'></FORM></CENTER>"
newContent += "</BODY></HTML>"
// write HTML to new window document
newWindow.document.write(newContent)
newWindow.document.close() // close layout stream
}
}
function ventana2() {
var newWindow = window.open("","","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,height=200,width=300")
if (newWindow != null) {
// assemble content for new window
var newContent = "<HTML><HEAD><TITLE>Hola otra vez!!!</TITLE></HEAD>"
newContent += "<BODY>"
newContent += "Ey!!! "
newContent += "<B>" + top.nombre + "</B>" + ", "
newContent += "parece que te esta gustando mi Web, "
newContent += "me imagino que ya, a estas alturas "
newContent += "me habrás añadido a tus Favoritos "
newContent += "¿no? y si no es así ¿Qué Esperás? "
newContent += "¡¡¡ Dale!!!"
newContent += "<CENTER><FORM><INPUT TYPE='button' VALUE='Cerrame' onClick='self.close()'></FORM></CENTER>"
newContent += "</BODY></HTML>"
// write HTML to new window document
newWindow.document.write(newContent)
test = newWindow.document.close() // close layout stream
}
}
function ventana3() {
var newWindow = window.open("","","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,height=230,width=300")
if (newWindow != null) {
// assemble content for new window
var newContent = "<HTML><HEAD><TITLE>Hola otra vez !!!</TITLE></HEAD>"
newContent += "<BODY>"
newContent += "Hola!!!!! "
newContent += "<B>" + top.nombre + "</B>" + ", "
newContent += "otra vez por estos lados... "
newContent += "seguidor de mi página, "
newContent += "¿Qué te trae por aca nuevamente? "
newContent += "¿Ya has hablado conmigo en el IRC? "
newContent += "No Hay Dramas , mandame un e-mail! "
newContent += "y arreglamos ... Ok? ;-) "
newContent += "<CENTER><FORM><INPUT TYPE='button' VALUE='Cerrame' onClick='self.close()'></FORM></CENTER>"
newContent += "</BODY></HTML>"
// write HTML to new window document
newWindow.document.write(newContent)
var test = newWindow.document.close() // close layout stream
}
}
function ventana4() {
var newWindow = window.open("","","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,height=200,width=250")
if (newWindow != null) {
// assemble content for new window
var newContent = "<HTML><HEAD><TITLE>Hola Trí,Trí...!!!</TITLE></HEAD>"
newContent += "<BODY BACKGROUND=#FFFF00 te>"
newContent += "Ey!!! ¿Cómo Andás Trí, Trí?, "
newContent += "Todo bien por esos lados " + "<B>" + top.nombre + "</B>" + ", "
newContent += "Porque no te venís a casa a tomar unos mates, "
newContent += "o a jugar una partidita al Truco..Dale!! "
newContent += "Mandame un e-mail y arreglamos!...Ok?;-) "
newContent += "<CENTER><FORM><INPUT TYPE='button' VALUE='Cerrame' onClick='self.close()'></FORM></CENTER>"
newContent += "</BODY></HTML>"
// write HTML to new window document
newWindow.document.write(newContent)
newWindow.document.close() // close layout stream
}
}
if (contador==1) {ventana1()}
else {
if((contador>1)&&(contador<5)){ventana2()}
else {
if((contador>4)&&(contador<10)){{ventana3()}
}
else {
if(contador>9){ventana4 ()}
}
}
}
//Fin de la ocultación -->
</script>
<p align="center"><br>
<font face="Verdana" size="4"></p>
<p align="center"><script>
document.write("Esta es tu " +top.contador +"ª visita a mi página.");
</script> </p>
<table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td><p align="justify"><font size="2" color="C0C0C0">Espero que mi Web Site pueda ser site sea de tu agrado, he puesto mucho empeño en ello
para lograrlo y no se si lo he logrado, pegale una hojeada y despúes contame que te
pareció la misma..Ok? ;) Así que enviame un e-mail y listo..Ok? </p>
</b></font>
</td>
</tr>
</table>
<br><br>
</body>
</html>
Privacidad ּ Publicidad ּ Prensa ּ Premios ּ Colaborar ּ Enlazarnos ּ Mapa del Sitio ּ Aviso legal ּ Boletín ּ Contacto
2001 - 2010 - Sitio creado y mantenido por Gabriel Marcelo Rodriguez
Hosting de alta calidad a bajo costo | WAVENET.com