var sPath = "http://blstc.msn.com/br/intl/spec/pt-br/ie8-hotmail/"; if (location.href.indexOf("intelygenz.com")!=-1){ //DEV // sPath = "http://almax/msn_msn/msn07_aspnet2/www/msn10_canales/especiales/ms06_ie8_launcher/"; sPath = "" } document.write(''); document.write('
'); document.write(' var s_account="msnportalestecnologia";'); document.write(' '); document.write(' '); document.write('
'); document.write('
'); document.write(' '); document.write('
'); document.write(''); document.write(''); var t; // Datos para el TAGGING var nDI = 1241, nPI = 9539, nPS = 10125; g_sCtag = "http://c.es.msn.com/c.gif?di="+ nDI +"&pi="+ nPI +"&ps="+ nPS +"&tp="+ document.location.href +"&rf="; // Si el usuario tiene IE8 o Windows Seven, redirigimos automaticamente if (ValidaVersionIE()) { //document.location.href="http://mail.live.com"; } else { InnerPage(); } //inicia secuencia de test //guarda la cookie GuardarCookie("miGalleta", "test") mifecha=new Date(); if(CogerCookie("iniciopromo")==null) GuardarCookie("iniciopromo", mifecha.getTime()) //espera 1 segundo (algunos navegadores requieren un tiempo para guardar la cookie) //alert(CogerCookie("iniciopromo")); if(CogerCookie("iniciopromo")!=0) { setTimeout("startit()",1000); } else { //document.location.href="http://mail.live.com"; } //COMPROBACION DE COOKIES HABILITADAS //Autor: Iván Nieto P�rez //Este script y otros muchos pueden //descarse on-line de forma gratuita //en El Código: www.elcodigo.com function CogerValorCookie(indice) { //indice indica el comienzo del valor var galleta = document.cookie //busca el final del valor, dado por ;, a partir de indice var finDeCadena = galleta.indexOf(";", indice) //si no existe el ;, el final del valor lo marca la longitud total de la cookie if (finDeCadena == -1) finDeCadena = galleta.length return unescape(galleta.substring(indice, finDeCadena)) } function CogerCookie(nombre) { var galleta = document.cookie //construye la cadena con el nombre del valor var arg = nombre + "=" var alen = arg.length //longitud del nombre del valor var glen = galleta.length //longitud de la cookie var i = 0 while (i < glen) { var j = i + alen //posiciona j al final del nombre del valor if (galleta.substring(i, j) == arg) //si en la cookie estamo ya en nombre del valor return CogerValorCookie(j) //devuleve el valor, que esta a partir de j i = galleta.indexOf(" ", i) + 1 //pasa al siguiente if (i == 0) break //fin de la cookie } return null //no se encuentra el nombre del valor } function GuardarCookie (nombre, valor) { //crea la cookie: incluye el nombre y la ruta donde esta guardada //cada valor esta separado por ; y un espacio // document.cookie = nombre + "=" + escape(valor) + "; path=/" // Ejemplo del uso de Cookies con fecha de expiraci�n, que viene dada en d�as en el parametro 'expiredays' var exdate = new Date(); exdate.setDate(exdate.getDate() + 365); document.cookie = nombre + "=" + escape(valor) + "; expires="+exdate.toGMTString() + "; path=/"; } function CheckIE() { //alert (navigator.appName == "Microsoft Internet Explorer"); return (navigator.appName == "Microsoft Internet Explorer"); } function ValidaVersionIE() { var oUserAgent = window.navigator.userAgent.toLowerCase(); var nVersion = parseFloat( oUserAgent.substring( oUserAgent.indexOf('msie ') + 5 ) ); // validamos si el navegador es IE8 o si el usuario tiene Windows 7 //if( (CheckIE() && nVersion == 8) || (navigator.userAgent.indexOf("Windows NT 6.1") > -1) ) { if( (CheckIE() && nVersion == 8) ) { //alert ("IE8"); return true; } else { //alert ("Non-IE8"); return false; } } //lee la cookie y muestra un mensaje u otro en funcion de que la lectura tenga exito o no function BorraCookiep(name) { var cookie_date = new Date (); // current date & time cookie_date.setTime ( cookie_date.getTime() - 1 ); document.cookie = name+"=;expires=" + cookie_date.toGMTString(); //alert(document.cookie) } function BorraCookie(name) { var date = new Date(); date.setTime(date.getTime()+(-1*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); document.cookie = name+"=undefined"+expires; // alert("borra cookie\n"+document.cookie) } function ira() { clearTimeout(t); //document.location.href = "http://mail.live.com"; } function IrBandeja() { if ( document.getElementById('norecordar').checked ) { GuardarCookie("iniciopromo", 0); } var nVez = Number(CogerCookie("vez")); if (nVez != null) { GuardarCookie("vez", (nVez % 3) + 1 ); } clearTimeout(t); document.location.href = "http://mail.live.com"; } function Descargar(nVersion) { //clearTimeout(t); if ( document.getElementById('norecordar').checked ) { GuardarCookie("iniciopromo", 0); } var sDownload = ""; if ( !CheckIE() ) sDownload = "noie"; switch( nVersion ) { case 1: document.location.href = "http://www.vivelive.com/sniffingxp" + sDownload; break; case 2: if (navigator.platform == "Win32") { document.location.href = "http://www.vivelive.com/sniffingvista32" + sDownload; } else { document.location.href = "http://www.vivelive.com/sniffingvista64" + sDownload; } break; case 3: document.location.href = "http://g.msn.com/1me10IE8eses/103"; break; } } function startit() { t=setTimeout("ira()", 30000); //va a destino despues de 30ss // if(CogerCookie("vez") >= 3) document.location.href="http://mail.live.com"; if ( CogerCookie("miGalleta") == "test" ) { var one_day = 1000 * 60 * 60 * 24; // Calculamos el parcial reiniciandolo cada 30 d�as parcial = Math.floor((mifecha.getTime() - CogerCookie("iniciopromo")) / one_day) % 30; //alert('Total='+parcial+", VEZ="+CogerCookie("vez")+", InicioPromo vale="+CogerCookie("iniciopromo")); if (parcial >= 0 && parcial < 5 && CogerCookie("vez") == 1) { //document.location.href="http://mail.live.com"; } else { if (parcial >= 5 && parcial < 10 && CogerCookie("vez") == 2) { //document.location.href="http://mail.live.com"; } else { if(parcial >= 10 && parcial < 31 && CogerCookie("vez") == 3) { //document.location.href="http://mail.live.com"; } } } } else { //document.location.href="http://mail.live.com" } } function InnerPage(){ var oDiv = document.getElementById ("div_ie8") if (oDiv){ oDiv.innerHTML = DrawPage() } } function DrawPage(){ sHTML = "" sHTML += "
" sHTML += " Windows Live" sHTML += "
" sHTML += "

" if ( CheckIE() ) { sHTML += "
Alerta de Segurança: Seu navegador está desatualizado!
" } else { sHTML += "
O Hotmail recomenda o download gratuito do novo Internet Explorer 8
" sHTML += "
" } sHTML += "
" sHTML += "
" sHTML += " " if ( CheckIE() ) { sHTML += " " } sHTML += " " sHTML += " " sHTML += " " sHTML += "
O Hotmail recomenda que você atualize seu navegador gratuitamente para o novo Internet Explorer 8. Por que você deve atualizar?
Hotmail em apenas um clique: acelere o acesso aos seus e-mails usando a barra de ferramentas.
Privacidade: ative o modo seguro e navegue na Internet sem deixar nenhum rastro.
>Segurança: deixe que o filtro SmartScreen elimine o lixo eletrônico para você.
" sHTML += "
" sHTML += " " sHTML += " ." sHTML += " " sHTML += " " sHTML += "
" sHTML += " Internet Explorer 8" sHTML += "

" sHTML += "" sHTML += "
" sHTML += "     Instalar agora" sHTML += "
" //sHTML += " " //sHTML += " " //sHTML += " " //sHTML += " " sHTML += "
" sHTML += "" sHTML += "     Ir para a Caixa de Entrada" sHTML += "
" sHTML += "  Não exibir esta mensagem novamente" sHTML += "
" sHTML += "
" sHTML += "
" return sHTML } function PageHit() { s.charSet='UTF-8'; s.linkInternalFilters='javascript:,tecnologia.es.msn.com'; s.pageName='MSN Tecnologia-sniffer'; s.server='tecnologia.es.msn.com'; s.prop1='ES-tecnologia'; s.prop2='es-es'; s.channel='tecnologia.es.msn.com'; s.prop22='False'; s.prop25=''; s.prop26=''; s.prop3='Tecnologia - sniffer'; s.prop4='Tecnologia - sniffer'; s.prop5='Tecnologia - sniffer'; s.prop49=''; s.prop50=escape(document.URL); s.eVar1=s.getQueryParam('cp-documentid'); s.prop11=''; s.prop37=''; GenerarPageHit(); } if ( window.addEventListener ) { // Estandar DOM window.addEventListener("load", function (){ PageHit(); return false; }, false); } else if(window.attachEvent) { //IE7 var bOk = window.attachEvent("onload", function (){ PageHit(); return false; }); } else { // Navegadores antiguos window.onload = function (){ PageHit(); return false; } }