Hi Folks,
I’ve got this basic php
session_start();
if (!isset($_SESSION['backgroundLoad'])) {
$_SESSION['backgroundLoad'] = 0;
} else {
$_SESSION['count']++;
}
Which I would like to use in jquery to fade in the background when the site has first been visited only.
Here is my jquery:
#background {
background-image: url("images/mega.png") !important;
background-position: center bottom;
background-size: cover;
height: 100%;
opacity: 0;
width: 100%;
}
var loadit = <?php echo $_SESSION['backgroundLoad']?>;
if (loadit == ""){
$("#background").delay(1000).animate({"opacity": "1"}, 100);
}
When I click on different links, the background still fades in on all pages, can anyone please help?
Thanks