PDA

View Full Version : Adding a Cookie to Amazon Drop-In Script



five_texans
04-22-2006, 05:31 PM
I am using the Amazon Drop-In Script.

http://www.dynamicdrive.com/dynamicindex17/amazondrop.htm

It is working great on my site: http://www.national-leads.com

However, is there a way to set a cookie so that it doesn't reappear again until either the next browser session or for 48 hours? This will help in not making this drop-in so annoying for my visitors.

Thanks,

Five_Texans

jscheuer1
04-22-2006, 09:53 PM
From the configuration area of the script, do it like so:


//Specify display mode. 3 possible values are:
//1) "always"- This makes the fade-in box load each time the page is displayed
//2) "oncepersession"- This uses cookies to display the fade-in box only once per browser session
//3) integer (ie: 5)- Finally, you can specify an integer to display the box randomly via a frequency of 1/integer...
// For example, 2 would display the box about (1/2) 50% of the time the page loads.

var displaymode="oncepersession"