Results 1 to 6 of 6

Thread: Changing stateconfig value to 0 in the DD Drop Down Panel?

  1. #1
    Join Date
    Aug 2005
    Posts
    54
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default Changing stateconfig value to 0 in the DD Drop Down Panel?

    DD Drop Down Panel

    http://www.dynamicdrive.com/dynamici...pdownpanel.htm

    In stateconfig: {initial: "1px", persiststate: true}, is there a way to have it completely hidden? I tried 0 and 0px...neither worked.


    Thanks,
    Ash
    Last edited by AshleyQuick; 03-24-2009 at 12:25 AM.

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

    Default

    Works for me actually. What browser are you using? Do you have any CSS padding added to the "ddpanelcontent" DIV itself (which you shouldn't) in your CSS:

    Code:
    .ddpanel .ddpanelcontent{ /*CSS for "content" DIV of Drop Down Panel*/
    color: white;
    background: black; /*background of Drop Down Panel*/
    /*Do NOT add any "padding" or "margin" properties here! Any padding/margin should be added to your content's container within this DIV instead */
    }
    DD Admin

  3. #3
    Join Date
    Aug 2005
    Posts
    54
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    Probably, let me check

  4. #4
    Join Date
    Aug 2005
    Posts
    54
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    No padding. Just noticed the problem is with IE6 (which is what I was testing in at the time). With 0, the page opens with the panel expanded. When you try to close it, it begins but reverts back to the open state. Honestly, it's not a huge deal because I'm about one more issue away from removing IE6 from my computer and having a party to celebrate.

    I do have another question. Do you have a suggestion on how to preload the hover image so that it doesn't blink?

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

    Default

    In IE6, make sure your page contains a valid doctype at the top:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    I do have another question. Do you have a suggestion on how to preload the hover image so that it doesn't blink?
    I'll update the script within the next couple of days for this.
    DD Admin

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

    Default

    Here you go: http://dynamicdrive.com/dynamicindex...opdownpanel.js The updated version preloads the arrow images, though this may not address the blinking issue you're talking about, since the script purposely hides the arrow image while the content is in the midst of being animated.
    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
  •