A friend passed me a script from a box that opens when someone enters the site, but refreshing the page appears again. Could you help me?
Below the code:
function timer() {
jQuery('.cloudbanner').hover(function () {
jQuery('#follow').css('display', 'block');
cronometro();
});
jQuery('.closeads').hover(function () {
jQuery('#follow').css('display', 'block');
cronometro();
});
}
function cronometro() {
setTimeout('amostra()', 3000);
}
function amostra() {
jQuery('.cloudbanner').css('display', 'none');
jQuery('#follow').css('display', 'none');
jQuery('#fr').removeAttr('src');
}
function excludeDiv() {
jQuery('#close').css('display', 'none');
jQuery('.closeads').css('display', 'block');
timer();
}
var numero = 5;
function chamar() {
if (numero > 0) {
document.getElementById('timers').innerHTML = --numero;
}
}
setInterval("chamar();", 900);
setTimeout("excludeDiv();", 10000);
I suppose this has to be with cookie and I should create one, but I do not know how to do it.