1) Script Title: make a default on drop down panel
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...pdownpanel.htm
3) Describe problem:
how to make a drop down panel default open?
thx in advanced....
1) Script Title: make a default on drop down panel
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...pdownpanel.htm
3) Describe problem:
how to make a drop down panel default open?
thx in advanced....
nothing change ddadmin, i already replace the dddropdownpanel.js with this one
http://www.dynamicdrive.com/forums/a...0&d=1269987424
you add this code right:
but nothing happen, every time i open or refresh the page the panel close.Code:stateconfig: {initial: "5px", persiststate: true, initialstate:"open"}, // initial: initial reveal amount in pixels (ie: 5px)
thx for your attention...![]()
is there any solution for my problem here,
i already try to edit this part:
intoCode:setting.dir="up" //initial state of panel (up="contracted") if (setting.stateconfig.persiststate && ddpanel.getCookie(setting.ids[0])=="down"){ setting.dir="down" }
it's work, every time i refresh or open the page the drop down panel always open.Code:setting.dir="down" //initial state of panel (up="contracted") if (setting.stateconfig.persiststate && ddpanel.getCookie(setting.ids[0])=="down"){ setting.dir="down" }
the problem is, the drop down panel always open even i already close it on the first page.
the original drop down default is close, so when we open or close it that command is carried to the other page, but now it broke.
Note: i use the dropdown panel on all of my page.
thx...
Do you have persistence enabled that may interfere with the initial state of the panel? Please post a link to the page on your site that contains the problematic script so we can check it out.
DD Admin
davelf (04-12-2010)
this is the link to my problem page:
http://imaxxo.net/smiling/
and this is the JS that i already customize:
Code:setting.dir="down" //initial state of panel (up="contracted") if (setting.stateconfig.persiststate && ddpanel.getCookie(setting.ids[0])=="down"){ setting.dir="down" }thank you very much ddadminCode:var defaultpanel=new ddpanel({ ids: ["mypanel", "mypanelcontent", "mypaneltab"], // id of main panel DIV, content DIV, and tab DIV stateconfig: {initial: "0px", persiststate: true, initialstate:"open"}, // 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: true, src: ["img/down.jpg", "img/up.jpg"]}, closepanelonclick: {enabled: true} // close panel when links or elements with CSS class="closepanel" within container is clicked on? })
Last edited by davelf; 04-12-2010 at 02:51 AM.
is there any other solution for this problem?![]()
Hmm your page doesn't load for me unfortunately, at the moment at least.
DD Admin
Bookmarks