CellarDweller
02-28-2003, 01:38 PM
I sure could use some help. My limited knowledge of javascript is showing!
A client of mine uses popups from an advertising company, and the popups appear immediately onLoad. What I've been asked to do is put a few seconds delay on it.
I've tried everything I know but can't get it to work. I even tried having a new browser window open (delayed) with the popup code in it. But all that does is give me a blank new window, and the popup appears in its own window anyway!
I hate popups, and never use them myself, but I'm getting paid to do this, so I need help. Pretty please? :D
Here's the popup code (The URL within it has been changed to protect the guilty.) :
<script language="javascript"><!--
var doc=document; var url=escape(doc.location.href); var date_ob=new Date();
doc.cookie='h2=o; path=/;';var bust=date_ob.getSeconds();
if(doc.cookie.indexOf('e=llo') <= 0 && doc.cookie.indexOf('2=o') > 0){
doc.write('<scr'+'ipt language="javascript" src="http://somewhere.net');
doc.write('/w/pop.cgi?sid=1452&m=2&v=1.7e&u='+url+'&c='+bust+'"></scr'+'ipt>');
date_ob.setTime(date_ob.getTime()+43200000);
doc.cookie='he=llo; path=/; expires='+ date_ob.toGMTString();} // -->
</script>
I tried various onLoad techniques, but nothing seems to work. Anyone have any ideas?
A client of mine uses popups from an advertising company, and the popups appear immediately onLoad. What I've been asked to do is put a few seconds delay on it.
I've tried everything I know but can't get it to work. I even tried having a new browser window open (delayed) with the popup code in it. But all that does is give me a blank new window, and the popup appears in its own window anyway!
I hate popups, and never use them myself, but I'm getting paid to do this, so I need help. Pretty please? :D
Here's the popup code (The URL within it has been changed to protect the guilty.) :
<script language="javascript"><!--
var doc=document; var url=escape(doc.location.href); var date_ob=new Date();
doc.cookie='h2=o; path=/;';var bust=date_ob.getSeconds();
if(doc.cookie.indexOf('e=llo') <= 0 && doc.cookie.indexOf('2=o') > 0){
doc.write('<scr'+'ipt language="javascript" src="http://somewhere.net');
doc.write('/w/pop.cgi?sid=1452&m=2&v=1.7e&u='+url+'&c='+bust+'"></scr'+'ipt>');
date_ob.setTime(date_ob.getTime()+43200000);
doc.cookie='he=llo; path=/; expires='+ date_ob.toGMTString();} // -->
</script>
I tried various onLoad techniques, but nothing seems to work. Anyone have any ideas?