Thanks! Also I got the PM. Whether or not to save items to your sent folder is a toggle, at least for some. Either you have it off or you haven't enough posts yet to have the option.
At the risk of reopening something you might think is solved, my last post in this thread referred to how to avoid a default open item without resorting to a dummy item.
I've looked into the issue of:
. . . the accordion shifts down approx. 2 pixels each time a menu item is selected before it shifts back up 2 pixels to its original state. How can I stop the menu from shifting down those 2 pixels each time the menu expands?
And I'm not sure there is a solution to it. It happens because there are two animations running at the same time. One is collapsing the previous item, the other is expanding the current one. Although they both run at the same rate, for some reason one completes a little sooner than the other. I tried playing with the rate of the collapse independently, but there seems to be no happy medium. It either completes too soon or too late, with at least a 2px jog in one direction or the other.
I might be missing something. I tried other things, but none of them made any difference.
As I think you already mentioned, perhaps not with regard to this, you can kill the animation. The easiest way to do that is to set the animatespeed to 0 in the init:
Code:
ddaccordion.init({
headerclass: "submenuheader", //Shared CSS class name of headers group
contentclass: "submenu", //Shared CSS class name of contents group
revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click", "clickgo", or "mouseover"
mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover
collapseprev: true, //Collapse previous content (so only one open at any time)? true/false
defaultexpanded: [], //index of content(s) open by default [index1, index2, etc] [] denotes no content
onemustopen: false, //Specify whether at least one header should be open always (so never all headers closed)
animatedefault: false, //Should contents open by default be animated into view?
persiststate: false, //persist state of opened contents within browser session?
toggleclass: ["", ""], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
togglehtml: [""], //Additional HTML added to the header when it's collapsed and expanded, respectively ["position", "html1", "html2"] (see docs)
animatespeed: 0, //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"
onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
//do nothing
}
})
Then there's no jump, but you loose the smooth action of the menu.
Another thing I just noticed is, if you change the animatespeed to "slow" and change the height of this container from 377 to 375 as shown (highlighted and red, scroll the code block to see it):
Code:
<div id="paginate-slider2" class="pagination">
<div style="background-image:url('/labels/selectbuilding.gif');background-repeat:no-repeat;background-position:bottom center;height:375px;width:298px;border-left:1px solid black;border-right:1px solid black; margin-left:auto;margin-right:auto;position:relative;float:left;">
<div class="glossymenu">
It still does it, but it's less annoying.
Bookmarks