Pagina 1 di 1

Pop Up Che Si Apra Solo Una Volta Ogni 24 Ore Per IP

Inviato: 12/05/2011, 21:21
da DownloadBay
Ciao a tutti,
E' Possibile Che Questo Pop Up Si Apra Solo Una Volta Ogni 24 Ore Per IP ??

Codice: Seleziona tutto

<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Inizio
function apri() {
strg=window.open('URL SITO', 'nuova', 'toolbars=0, scrollbars=0, location=1, statusbars=0, menubars=0, resizable=0, width=100, height=100');
}
// Fine -->
</script>
</HEAD>
<BODY onLoad="javascript:apri()">
Grazie per le risposte

Re: Pop Up Che Si Apra Solo Una Volta Ogni 24 Ore Per IP

Inviato: 14/05/2011, 7:29
da Darkman
Prova ad incrementare con questo se hai pratica in materia.

Codice: Seleziona tutto

<xmp>
<!--TIMED POP-UP-->

<!-- This part can go in the HEAD of the html file -->

<script language="JavaScript" type="text/javascript">
<!-- Copyright 2005, Sandeep Gangadharan -->
<!-- For more free scripts go to http://sivamdesign.com/scripts/ -->

<!--
var hourAlrm = "01";   // Set the hour the pop-up should open at left in the format shown
var minAlrm = "05";    // Set the minute the pop-up should open at left in the format shown
var suf = "pm";        // Set whether 'am' or 'pm' in the format shown (lowercase only)

function sivamtime() {
 now=new Date();
 hour=now.getHours();
 min=now.getMinutes();
 sec=now.getSeconds();

if (min<=9) { min="0"+min; }
if (sec<=9) { sec="0"+sec; }
if (hour>12) { hour=hour-12; add="pm"; }
else { hour=hour; add="am"; }
if (hour==12) {	add="pm"; }
if (hour==00) {	hour="12"; }
 hour = (hour<=9) ? "0"+hour : hour;
 ST=setTimeout("sivamtime()", 1000);

if (hour == hourAlrm && min == minAlrm && add == suf) {
 window.clearTimeout(ST);
 window.open('popwind.html','NewWin','toolbar=no,status=no,width=350,height=135'); }
//  Create a html document (in this example "popwind.html") that shall be the pop-up
}
//-->
</script>

<!-- Note the script in the BODY tag -->

<body onLoad="sivamtime()">
</xmp>

Re: Pop Up Che Si Apra Solo Una Volta Ogni 24 Ore Per IP

Inviato: 14/05/2011, 13:39
da DownloadBay
Grazie provo