PDA

View Full Version : Sticky note - Cookie question



rlalande
09-25-2006, 07:04 PM
1) Script Title: Sticky note

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

3) Describe problem:

This script works great. It sets a cookie so that the popup only shows up once per browser session. My problem is that I would like to put the code on every web page, and I still only want it to popup once. With the cookie the way it is setup right now, it will popup everytime the path changes.

Can anyone tell me how to modify the script so that I can assign the cookie a path, or domain so that it only pops up once per session, across all my pages.

Thanks

Rock
rlalande@cuestore.ca

rlalande
10-03-2006, 07:33 PM
1) Script Title: Sticky note

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

3) Describe problem:

This script works great. It sets a cookie so that the popup only shows up once per browser session. My problem is that I would like to put the code on every web page, and I still only want it to popup once. With the cookie the way it is setup right now, it will popup everytime the path changes.

Can anyone tell me how to modify the script so that I can assign the cookie a path, or domain so that it only pops up once per session, across all my pages.

Thanks

Rock
rlalande@cuestore.ca
Bump - still no answer.

ddadmin
10-05-2006, 07:38 AM
Try finding the line:


document.cookie="fadedin=yes"

and change that to:


document.cookie="fadedin=yes; path=/"

That should do it.