try this:
Code:
function snowStorm.stop(set) {
if (set == null) {
var expire=new Date();
expire.setDate(expire.getDate()+5); //expires five days in the future
document.cookie='snowstop=yes; expires=expire.toGMTString; path=/';
}
//the rest of code to stop it
}
function checkcookie() {
var name="snowstop=";
var split=document.cookie.split(";");
for(var i=0;i < split.length; i++) {
var cookievals=split[i];
while (cookievals.charAt(0)==" ") cookievals = cookievals.substring(1,cookievals.length);
if (cookievals.indexOf(name) == 0) return cookievals.substring(name.length,cookievals.length);
}
return null;
}
function bodyload() {
var cookieset = checkcookie();
if (cookieset != null) {
snowStorm.stop(true)
}
and state this in body tag:
Code:
<body onload="bodyload()">
Bookmarks