Results 1 to 2 of 2

Thread: Adding a Cookie to Amazon Drop-In Script

  1. #1
    Join Date
    Apr 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Adding a Cookie to Amazon Drop-In Script

    I am using the Amazon Drop-In Script.

    http://www.dynamicdrive.com/dynamici...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

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    From the configuration area of the script, do it like so:

    Code:
    //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"
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •