Este é um código JavaScript que exibe anúncios regularmente. Obviamente, ele também pode exibir o conteúdo de um determinado bloco regularmente, o que é muito prático.
O código é o seguinte:
A cópia do código é a seguinte:
função strtodate (str, ext) {
if (str == null || str == '') retornar;
var Arys = new Array ();
arys = str.split ('-');
var newDate = nova data (arys [0], arys [1] - 1, arys [2], 9, 0, 0);
if (ext) {
newDate = new Date (newDate.getTime () + 1000 * 60 * 60 * 24);
}
retornar newDate;
}
função showit (str, start, fim) {
var date = new Date ();
var start = strtodate (start);
var end = strtodate (final, false);
if (data & gt; start & amp; & amp; document.write (str);
}
}
Recuperar:
A cópia do código é a seguinte:
showit ('Yours ADS', '2011-07-06', '2011-07-18');