
Originally Posted by
Code Red
I've modified it to work with PHP dynamic content and multiple collapsing windows.
I've been working on this for a while. Ive got the content side working (i think) but I'm struggling with the JS side. I have changed the .js file to a .php file and changed the final variables section as follows:
Code:
<?
$var = ". $category->category_nicename.";
?>
var defaultpanel=new ddpanel({
ids: ["<? echo $var; ?>panel", "<? echo $var; ?>content", "<? echo $var; ?>tab"], // 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: 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?
})
My php knowledge is limited to middle of the road wordpress and js is very limited indeed!
Thanks in advance for your help?
Bookmarks