View Full Version : DD Drop Down Panel

06-08-2009, 01:56 PM
1) Script Title: DD Drop Down Panel

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

3) Describe problem: īs there any way to have the image sources of the arrows in php/css instead of in the script?

06-09-2009, 06:26 AM
Well, you can dynamically out out the line in red using PHP, so the image paths are based on some info from the server side. Something like:

var defaultpanel=new ddpanel({
ids: ["mypanel", "mypanelcontent", "mypaneltab"], // id of main panel DIV, content DIV, and tab DIV
stateconfig: {initial: "5px", 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.
<? echo "pointerimage: {enabled: true, src: [\"arrow-down.gif\", \"arrow-up.gif\"]},"; ?>
closepanelonclick: {enabled: true} // close panel when links or elements with CSS class="closepanel" within container is clicked on?

Instead of just echoing the string literal though, the code presumably would involve accessing some info from the server first.