Add cookie to popup for single appearance

  Macrofile 17:59 29 Aug 2003
Locked

I am in the process of building a site. I have a popup that I would like to limit to one appearance only. I can fine code that will build such a popup from scratch but I need to retain the main features of the one I am using. Any suggestions will be appreciated. To see the popup click here . The code used follows:
[ script language=javascript>function
dotimed(){timedwin =
window.open(',','toolbar=no,menubar=no,
scrollbars=no,resizable=yes,location=no,he
ight=200,
width=500');timedwin.document.write(une
scape('%3Chtml%3E%3Cbody%3E%3Cfo
nt%20face%3Darial%2C%20size%3D4%3
E%3Cb%3E%3Ccenter%3ESave%2010%
25....Order%20before%20this%20window
%20closes%3Cbr%3E%3Cbr%3EYou%20
have%20%3Cdiv%20id%3Dprinthis%3E%
3Cb%20style%3Dfont-
size%3A17pt%3Bcolor%3Ared%3B%3E6
%20minutes%3C/b%3E%3C/
div%3Eleft%20before%20this%20offer%2
0expires%21%3Cbr%3E%3Cbr%3E%3Ca
%20href%3DC%3A%5CDocuments%20a
nd%20Settings%5Cdefault%5CLocal%20S
ettings%5CTemp%5CPag5.tmp%5Cpage5
0.html%20target%3D_new_timed%20oncl
ick%3Dwindow.close%28%29%3B%3ECl
ick%20Here%20To%20Order%20Now%2
1%3C/a%3E%3C/center%3E%3C/
b%3E%3C/
font%3E%3Cscript%20language%3Djavas
cript%3Evar%20limit%3D%276%3A00%
27%3Bif%20%28document.images%29%7
Bvar%20parselimit%3Dlimit.split%28%27
%3A%27%29%3Bparselimit%3Dparselimi
t%5B0%5D*60+parselimit%5B1%5D*1%
3B%7Dfunction%20begintimer%28%29%
7Bif%20%28%21document.all%26%26%2
1document.getElementById%29return%3B
%20thelement%3D%28document.getElem
entById%3F%20document.getElementByI
d%28%27printhis%27%29%3A%20docum
ent.all.printhis%29%3B%20if%20%28%2
1document.images%29return%3Bif%20%
28parselimit%3C%3D30%29window.self.f
ocus%28%29%3Bif%20%28parselimit%3
D%3D1%29%7Bwindow.self.close%28%2
9%3B%7Delse%7B%20parselimit-
%3D1%3Bcurmin%3DMath.floor%28pars
elimit/
60%29%3Bcursec%3Dparselimit%2560%
3Bif%20%28curmin%21%3D0%29%7Bcu
rtime%3Dcurmin+%27%20minutes%20an
d%20%27+cursec+%27%20seconds%20%
27%3B%7Delse%20%7Bcurtime%3Dcurs
ec+%27%20seconds%20%27%3B%7Dthel
ement.innerHTML%3D%27%3Cb%20styl
e%3Dfont-
size%3A17pt%3Bcolor%3Ared%3B%3E
%27+curtime+%27%3C/
b%3E%27%3BsetTimeout%28%27beginti
mer%28%29%27%2C1000%29%3B%7D
%7Dbegintimer%28%29%3B%3C/
script%3E%3C/body%3E%3C/
html%3E'));}setTimeout('dotimed()',
3000); /script> ]

This thread is now locked and can not be replied to.

Elsewhere on IDG sites

How to watch the World Cup for free on TV and online

Best of the Grad Shows 2018: Middlesex University art, illustration and graphic design

Best Mac tips, tricks and timesavers

Comment identifier le modèle de son iPad ?