PDA

View Full Version : Interstitial Box Cookie Frequency



dude9er
11-15-2007, 12:38 AM
1) Script Title: Interstitial Content Box

2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex17/interstitial.htm

3) Describe problem:
I need to modify this great script and am having problems doing so. I have set the interstitial content box (sample.asp) to load a form (form.asp) that a user will fill out using the frequency ["chance", "1"]

I want the interstitial content box to show each time the visitor comes to the page, when the user fills out the form.asp and submits the information the interstitial content box frequency becomes ["cookie", "180"], expiring in 180 days.

How do I set the interstitial.js to check to see if the "stitialcookie" cookie has been set via form.asp submit?

EX:
if form.asp submitted then do not show interstitial
else
if form.asp not submitted then show interstitial

Thanks for any help, I am not a very experienced JS'er and this is my first cookie experience.