Results 1 to 3 of 3

Thread: DD Drop Down Panel expand horizontally?

  1. #1
    Join Date
    Feb 2005
    Posts
    18
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default DD Drop Down Panel expand horizontally?

    1) Script Title: DD Drop Down Panel

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...pdownpanel.htm

    Great script, thanks a lot for this - I've modified it to work with PHP dynamic content and multiple collapsing windows. Anyway, I've got a feeling I already know the answer to this one, but is it possible to modify the code so that the hidden content expands horizontally instead of vertically?

    I'm not a Javascript expert, but I'm guessing that the animation effect is applied in stages, each time the div is slightly longer? If so, could the stages be applied horizontally so it gets wider each time?

  2. #2
    Join Date
    Sep 2010
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Code Red View Post
    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?
    Last edited by p15; 05-15-2011 at 10:01 PM. Reason: spelling correction

  3. #3
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Have you looked at Horizontal Accordion instead and using that as the basis of what you're trying to achieve?
    DD Admin

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •