June 15th, 2010, 12:34 PM
See my code comment about showing the lightbox? That's where you ned to put the code that triggers the showing of the lightbox.
June 15th, 2010, 12:00 PM
That's because you aren't doing what I mentioned in the previous post.
<script type="text/javascript">
if (document.cookie.indexOf("lightbox=") == -1) {
var now = new Date();
...
June 15th, 2010, 11:24 AM
Use a cookie with 0 lifetime. Check to see if the cookie exists...if it doesn't show the lightbox and create the cookie.
June 15th, 2010, 10:05 AM
In that case, you won't be able to use confirm().
June 15th, 2010, 09:59 AM
There are both positives and negatives to using JavaScript's confirm(). Using lightbox frameworks will require some editing since they can easily be dismissed by just clicking around them. So, you...
June 15th, 2010, 08:44 AM
Why don't you just pop a JavaScript alert with an Okay Cancel button? It would be so much easier.