logo
19.12.2019 10:03
1
Zdravim,

Nevedel by niekto prosim poradit ako do tohto javascriptu pridat kratky kod ktory by toto vyskakovacie okno vyhodil max raz za den ?

Pravdepodobne je potrebn e pouzit nieco taketo, ale bohuzial js moc nepoznam, vie niekto poradit ako to spravne zapisat aby to fungovalo ?

Dakujem.


Kód:
function setCookie() {
    $.cookie('test_status', '1', { path: '/', expires: 60 });
    return false;
}

Script ktory funguje, tu je potrebne pridat setcookie

Kód:
<script>
$(document).ready(function ()
{
	//Fade in delay for the background overlay (control timing here)
	$("#bkgOverlay").delay(2000).fadeIn(400);
  //Fade in delay for the popup (control timing here)
	$("#delayedPopup").delay(2300).fadeIn(400);
	
	//Hide dialouge and background when the user clicks the close button
	$("#btnClose").click(function (e)
	{
		HideDialog();
		e.preventDefault();
	});
});
//Controls how the modal popup is closed with the close button
function HideDialog()
{
	$("#bkgOverlay").fadeOut(400);
	$("#delayedPopup").fadeOut(300);
}


</script>

Co se právě děje na Webtrhu?