PDA

View Full Version : Random pop-up windows and cookies


evita
12-18-2002, 12:07 PM
Hello there :)
I'm having two pop-up windows which are supposed to load randomly when the user visits a page. What I want to do (using cookies I guess) is to load for ex. popup2 if he has already seen popup1 (and the other way round) and if he has seen them both to stop bothering him for a week (setTimeout). I don't really know how to use cookies for this so If you have any info of know a script which is using something similar..I'll be grateful!

many thanks in advance

glenngv
12-18-2002, 12:10 PM
http://www.a1javascripts.com/miscellaneous/popupwithcookie/popupwithcookie.html

evita
12-18-2002, 12:23 PM
Thanks :)
Something else..is it possible to use OnLoad twice? If yes, what's the structure? <Body onLoad="x" onLoad ="y"> ?? is this possible?

many many thanks

glenngv
12-18-2002, 12:25 PM
<body onload="func1();func2()" ...>