| peteyshivery |
01-12-2013 09:14 PM |
IF Visited
Hello guys,
You have all been a great help every time I come on here. For those who remember me, I am really fuzzy with PHP. In fact, I barely know it!
But I have a question - I have included a code below. Basically, using a cookie, if a user has visited in the past two hours, I do not want to show the following code below for the user. It is a pop-up, so basically, I want users on their first time to see the pop-up, then every two hours consecutively.
Here is the code below, was wondering if anyone is familiar with cookie PHP coding to help? I really appreciate it in advance!
PHP Code:
<script type="text/javascript" src="/lightbox/js/lightbox/jquery.lightbox.min.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($){
$.lightbox("/images/popup.png");
});
</script>
|