Forum Moderators: phranque

Message Too Old, No Replies

How to add a cookie for a one time banner view

Need some expert help on this one.

         

RobbieD

12:27 am on Dec 10, 2003 (gmt 0)

10+ Year Member



How should the below code look if I want to enable a cookie so the ad only shows up once per browser session.

<SCRIPT language="JavaScript1.1" type="text/javascript">
<!--
var bust = Math.floor(1000000*Math.random()+1);
document.write('<A href="http://www.domain.com/a/blink.pl?region=23&bust=' + bust + '" target="_top">');
document.write('<IMG src="http://www.domain.com/a/bimg.pl?region=23&bust=' + bust + '&keyword=NULL" border="0" width="100" height="100" alt="Click Here!">');
document.write('</A>');
//-->
</SCRIPT>

Please provide the full code I would use for this to show once. Thank you for all your help.

RobbieD

12:51 am on Dec 10, 2003 (gmt 0)

10+ Year Member



Anyone? I would really like to offer this on our site and without your help I'm stuck.

Thanks in advance.

RobbieD

7:09 am on Dec 10, 2003 (gmt 0)

10+ Year Member



anyone?

vrtlw

7:51 am on Dec 10, 2003 (gmt 0)

10+ Year Member



Robbie,

Did you get my sticky?

It should have pointed you in the right direction to code this javascript without having to bump this thread all the time....

Read and ye shall learn

Paul