Click to See Complete Forum and Search --> : sellective pop-ups ...


skaloumbakas
12-28-2002, 11:11 AM
Hi,

I am new here and I want to ask the following question:

I once came across a javascript code, referring to a pop-up (or pop-under) which was opening only once per IP or per visitor. If somebody is kind enough to give me this (or guide me to find it...) I would be much obliged.

I want this in order not to annoy wem-site visitors clicking more than once the mother page (bearing the code)

Thanks and Happy New Year.

khalidali63
12-28-2002, 11:32 AM
Well here is how you can do this.

Check to see if the user has a cookie on there machine written by u.

if not then
write a cookie on users machine with long time to expire.

and show them the pop up window.

and if the cookie presents then don't show them pop up.

Khalid

pyro
12-28-2002, 11:36 AM
Yes, Kahalid is correct in how you have to do it. Here is a link to a page that has a script for you.

http://javascript.internet.com/cookies/only-popup-once.html

skaloumbakas
12-28-2002, 01:35 PM
Thanks a million. I'll try it...