Ir para conteúdo
Fórum Script Brasil

igormachado

Membros
  • Total de itens

    2
  • Registro em

  • Última visita

Tudo que igormachado postou

  1. var tags = document.getElementsByTagName("a"); for (i = 0; i < tags.length; i++ ) { tags.onclick = function() { if ( (this.getAttribute('href') != '') && (this.getAttribute('href') != '') && (this.getAttribute('href') != '') && (this.getAttribute('href') != '') && (this.getAttribute('href') != '') && (this.getAttribute('href') != '') && (this.getAttribute('href') != '') && (this.getAttribute('href') != '') && (this.getAttribute('href') != '') && (this.getAttribute('href') != '') ) { if ( LerCookie('CookieTeste') != "1" ) { abreJanela(); } GerarCookie('CookieTeste', '1', 1); }; } } function abreJanela() { var l = screen.availWidth; var t = screen.availHeight; var p = 'height='+t+',width='+l+',menubar=yes,toolbar=yes,location=yes,scrollbars=yes,status=yes,resizable=yes,left=0,top=0'; nw = window.open("****SITE AQUI***","nt",p); this.focus(); } function GerarCookie(strCookie, strValor, lngDias) { var dtmData = new Date(); if(lngDias) { dtmData.setTime(dtmData.getTime() + (lngDias * 12 * 60 * 60 * 5)); var strExpires = "; expires=" + dtmData.toGMTString(); } else { var strExpires = ""; } document.cookie = strCookie + "=" + strValor + strExpires + "; path=/"; } function LerCookie(strCookie) { var strNomeIgual = strCookie + "="; var arrCookies = document.cookie.split(';'); for(var i = 0; i < arrCookies.length; i++) { var strValorCookie = arrCookies; while(strValorCookie.charAt(0) == ' ') { strValorCookie = strValorCookie.substring(1, strValorCookie.length); } if(strValorCookie.indexOf(strNomeIgual) == 0) { return strValorCookie.substring(strNomeIgual.length, strValorCookie.length); } } return null; } function ExcluirCookie(strCookie) { GerarCookie(strCookie, '', -1); } EU USO ESSE SERA QUE TEM COMO COLOCAR ELE PARA ABRIR MESMO USANDO O BLOKEADOR DE POP NA EXPLORE? OU FIREFOX? CRHOME? OBRIGADO DESCULPA AI A PARTE DE CIMA TA TODA ERRADA JS AI TA 2 VEZES. JS QUE USSO É ESSE ELE ABRE COM UM CLICK NO SITE AI QUERIA SABER COMO COLOCO ELE PARA ABRE MESMO USANDO BLOKEADOR DE POP SERA QUE É POSIVEL? OBRIGADO var tags = document.getElementsByTagName("a"); for (i = 0; i < tags.length; i++ ) { tags.onclick = function() { if ( (this.getAttribute('href') != '') && (this.getAttribute('href') != '') && (this.getAttribute('href') != '') && (this.getAttribute('href') != '') && (this.getAttribute('href') != '') && (this.getAttribute('href') != '') && (this.getAttribute('href') != '') && (this.getAttribute('href') != '') && (this.getAttribute('href') != '') && (this.getAttribute('href') != '') ) { if ( LerCookie('CookieTeste') != "1" ) { abreJanela(); } GerarCookie('CookieTeste', '1', 1); }; } } function abreJanela() { var l = screen.availWidth; var t = screen.availHeight; var p = 'height='+t+',width='+l+',menubar=yes,toolbar=yes,location=yes,scrollbars=yes,status=yes,resizable=yes,left=0,top=0'; nw = window.open("SEU SITE AKI","nt",p); this.focus(); } function GerarCookie(strCookie, strValor, lngDias) { var dtmData = new Date(); if(lngDias) { dtmData.setTime(dtmData.getTime() + (lngDias * 12 * 60 * 60 * 5)); var strExpires = "; expires=" + dtmData.toGMTString(); } else { var strExpires = ""; } document.cookie = strCookie + "=" + strValor + strExpires + "; path=/"; } function LerCookie(strCookie) { var strNomeIgual = strCookie + "="; var arrCookies = document.cookie.split(';'); for(var i = 0; i < arrCookies.length; i++) { var strValorCookie = arrCookies; while(strValorCookie.charAt(0) == ' ') { strValorCookie = strValorCookie.substring(1, strValorCookie.length); } if(strValorCookie.indexOf(strNomeIgual) == 0) { return strValorCookie.substring(strNomeIgual.length, strValorCookie.length); } } return null; } function ExcluirCookie(strCookie) { GerarCookie(strCookie, '', -1); }
  2. alguém ai poderia colocar um js que abra 2 sites? e depois não abra mais, so se a pessoa limpar seu cokie ou mudar ip. obriago
×
×
  • Criar Novo...