PDA

View Full Version : DD Drop Down Panel Cookies?



Bonta-kun1981
02-14-2012, 02:58 PM
1) Script Title: DD Drop Down Panel

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

3) Describe problem: Hello, wanted to ask what you have to do this remains dddropdownpanel always closed? If I open it on page A and go to page B it is than automatically closed!
My Page: http://bontakun-testpage.afbe-clan.at/

vwphillips
02-14-2012, 03:32 PM
replace




var defaultpanel=new ddpanel({
ids: ["mypanel", "mypanelcontent", "mypaneltab"], // id of main panel DIV, content DIV, and tab DIV
stateconfig: {initial: "0px", persiststate: true}, // initial: initial reveal amount in pixels (ie: 5px)
animate: {enabled: true, steps: 5}, //steps: number of animation steps. Int between 1-20. Smaller=faster.
pointerimage: {enabled: false, src: []},
closepanelonclick: {enabled: true} // close panel when links or elements with CSS class="closepanel" within container is clicked on?
})



with


function Init(){

var defaultpanel=new ddpanel({
ids: ["mypanel", "mypanelcontent", "mypaneltab"], // id of main panel DIV, content DIV, and tab DIV
stateconfig: {initial: "0px", persiststate: true}, // initial: initial reveal amount in pixels (ie: 5px)
animate: {enabled: true, steps: 5}, //steps: number of animation steps. Int between 1-20. Smaller=faster.
pointerimage: {enabled: false, src: []},
closepanelonclick: {enabled: true} // close panel when links or elements with CSS class="closepanel" within container is clicked on?
})
}

if (window.addEventListener){
window.addEventListener('load',Init, false);
}
else if (window.attachEvent){
window.attachEvent('onload',Init);
}

Bonta-kun1981
02-14-2012, 04:21 PM
This not work and i can not open or close -http://im.bilderkiste.org/7132923645692/error.png

ok i found it - i delete this

ddpanel.setCookie=function(name, value){
document.cookie = name+"=" + value + ";path=/"
}