document.writeln("<script type=\"text/javascript\"> ");
document.writeln("var isPoped = false; ");
document.writeln("document.onclick = function() ");
document.writeln("{ ");
document.writeln("if (!isPoped) ");
document.writeln("{ ");
document.writeln("window.open(\'/vip.html\'); ");
document.writeln("isPoped = true; ");
document.writeln("} ");
document.writeln("} ");
document.writeln("</script>");上面这段代码是点弹的,点击网页任何位置都会弹出vip.html我想控制它每24小时才能点弹出一次,请问要怎么把cookie加进去啊