View Single Post
Old 11-13-2012, 10:08 PM   PM User | #4
WolfShade
Regular Coder

 
Join Date: Apr 2012
Location: St. Louis, MO, USA
Posts: 946
Thanks: 7
Thanked 97 Times in 97 Posts
WolfShade is an unknown quantity at this point
Here is a pretty good tutorial on cookies in JavaScript. Read, set, delete, etc.

Basically, I guess the index page would contain the splash screen. Before the splash screen displays, check for the EXISTENCE of the cookie - if there isn't one, write the cookie (name it "splash") and give it a value of 1, then display the splash. If there IS a cookie, check the value - if it's less than 3, display the splash and add 1 to the value of the splash cookie. If it's greater than 3, don't display the splash (I guess a redirect before the splash displays would prevent it from showing.) A simple "IF" conditional can determine whether to show the splash page or redirect to another URL.
__________________
^_^

If anyone knows of a website that can offer ColdFusion help that isn't controlled by neurotic, pedantic jerks* (stackoverflow.com), please PM me with a link.
*
The neurotic, pedantic jerks are not the owners; just the people who are in control of the "popularity contest".

Last edited by WolfShade; 11-13-2012 at 10:10 PM..
WolfShade is online now   Reply With Quote