PDA

View Full Version : Splash Page script - delay popup?



farrahdiva
02-18-2013, 08:05 AM
1) Script Title: Splash Page script

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex3/dynamicsplash.htm

3) Describe problem: Hello! The script is perfect for my needs, except one: I would like it to pop up 15 seconds after the page loads (I know, it's a weird and seemingly useless request. I don't ask; I just do.) Any help would be much appreciated!

Thanks,
Farrah

farrahdiva
02-19-2013, 04:48 AM
Hello again! Just adding that I figured I probably need to add setTimeout somewhere in there having to do with "splashpage.init()"... but I'm having a helluvah time trying to figure out where/how to put this in. Thanks in advance, oh mighty script gurus!

-Farrah

farrahdiva
04-18-2013, 03:41 PM
Hello! So... still trying to solve this one (got waylaid by other projects). You can see what I tried here (http://www.gigglesnhugs.com/indexTest4.php)--basically tried to use setTimeout to call the splashpage.init function, but definitely didn't set it up right. Please help!

jscheuer1
04-19-2013, 02:49 PM
Use this modified version of the script (right click and 'Save As'):

5041

The browser cache may need to be cleared and/or the page refreshed to see changes.

Also, since this is setup for session only, the cookie may need to be deleted if it's already been set by the other version of the script. So either close all instances of the browser to delete session only cookies, or remove the cookie manually using your browser's tools or options. The cookie name is:

splashpagecookie_s

It will be registered under your page's domain.

farrahdiva
04-19-2013, 06:00 PM
Once again, worked like a charm. (I never would have come up with that solution with my remedial knowledge of javascript, so thank you... again... a zillion times over.)

Thanks,
Farrah