marceldj
03-21-2010, 08:08 PM
1) Script Title: DD Drop Down Panel
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/dddropdownpanel.htm
3) Describe problem: I´ve created on my website a dropdown panel at the top. When I toggle open the panel and then click on a link the following happens: The panel is displayed open.
My question is: Is it possible to display the panel closed by every click on a internal link?
I have tried to hide the "set cookie" function
ddpanel.getCookie=function(Name){
var re=new RegExp(Name+"=[^;]+", "i"); //construct RE to search for target name/value pair
if (document.cookie.match(re)) //if cookie found
return document.cookie.match(re)[0].split("=")[1] //return its value
return null
}
ddpanel.setCookie=function(name, value){
document.cookie = name+"=" + value + ";path=/"
}
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/dddropdownpanel.htm
3) Describe problem: I´ve created on my website a dropdown panel at the top. When I toggle open the panel and then click on a link the following happens: The panel is displayed open.
My question is: Is it possible to display the panel closed by every click on a internal link?
I have tried to hide the "set cookie" function
ddpanel.getCookie=function(Name){
var re=new RegExp(Name+"=[^;]+", "i"); //construct RE to search for target name/value pair
if (document.cookie.match(re)) //if cookie found
return document.cookie.match(re)[0].split("=")[1] //return its value
return null
}
ddpanel.setCookie=function(name, value){
document.cookie = name+"=" + value + ";path=/"
}