View Full Version : How to implement two drop down boxes on the same site?

06-15-2006, 11:48 AM
Script: Dynamic Drop in Box
Link: http://www.dynamicdrive.com/dynamicindex17/dropinbox.htm



The drop down box im talking about is http://www.dynamicdrive.com/dynamicindex17/dropinbox.htm The Amazon style dropdown box.

firstly thanks for the great code, I really like the drop down box. However not being a great coder myself I am currently having a porblem that I cant resolve and wonder if anyone may help?

I am trying to implement two drop down boxes on my site one for the main site and one for the forum (two seperate pages). The problem I have seems to be cookie related.

I dont want the drop down box appearing everytime someone visits the page so once per session seemed like a good idea, however the cookie on the main page seems to be stopping the dropdown on the forum page.

So when you go to the mainsite the drop down box works, but then if you click the link to the forum the drop down box doesnt work, but if you go to the forum first it will work.

Please could someone explain how to get around the issue? Is there a way I can get the script on the homepage to use a different cookie to the one on the forum page? the forum is a directory not a subdomain so mainpage at www."mysite".co.uk forum is at www."mysite"/forum.co.uk

Many thanks

06-15-2006, 07:47 PM
Warning: Please include a link to the DD script in question in your post. See this thread (http://www.dynamicdrive.com/forums/showthread.php?t=6) for the proper posting format when asking a question.

06-15-2006, 10:30 PM
Is there anyway you can set a cookie path for this script, ive done some looking around today... and cookies seem a real black art???:confused: