using cookies to allow onload popup once
Hi,
I'm not sure I have come to the right bit of this forum, but here goes.
I have implemented a window.onload function on my website using shadowbox which just simply shows a div with a background image. The onload function works perfectly everytime, but I would like it to just popup once per person viewing the site. The script for the popup is this:
<script type="text/javascript">
Shadowbox.init({
// let's skip the automatic setup because we don't have any
// properly configured link elements on the page
skipSetup: true,
// include the html player because we want to display some html content
players: ["html"]
});
window.onload = function(){
// open a welcome message as soon as the window loads
Shadowbox.open({
content: '<div id="welcome"></div>',
player: "html",
title: "Welcome",
height: 350,
width: 350
});
};
</script>
I then saw this page: http://javascript.internet.com/cooki...opup-once.html which describes how to do the cookie part, I just have no idea how to use the onlypopuponce.js with the current script on my site.
i hope someone can help....