PDA

View Full Version : Changing stateconfig value to 0 in the DD Drop Down Panel?



AshleyQuick
03-24-2009, 12:05 AM
DD Drop Down Panel

http://www.dynamicdrive.com/dynamicindex17/dddropdownpanel.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

ddadmin
03-24-2009, 04:52 AM
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:


.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 */
}

AshleyQuick
03-24-2009, 05:03 AM
Probably, let me check

AshleyQuick
03-24-2009, 05:09 AM
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?

ddadmin
03-24-2009, 06:20 AM
In IE6, make sure your page contains a valid doctype at the top:


<!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.

ddadmin
03-24-2009, 06:39 AM
Here you go: http://dynamicdrive.com/dynamicindex17/dddropdownpanel.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.