Are you talking about when you click "For Physicians" then click
"Facilities" - and the "For Hospitals" image jumps a little bit?

If so, that's currently an issue with how jQuery does animation - they
are not synchronized in nature. For example. the one div is sliding up
and the other is sliding down, it's not guaranteed that when one is at
90px tall, the other will be exactly at 10px (if the combined height
was 100px).

Unfortunately, it requires significant overhead (in jQuery) to do
something that complex.

If you absolutely must not have the final image move, the alternative
is to position everything absolutely, then simply adjust the top of
the sections that you need to move (in addition to doing a
slideup/slidedown on the links).

I took the time to build a demo for you, since it is rather non-trivial:
http://john.jquery.com/ticket/stable-slide/

I restructured the markup to be ul/li elements (works better in this
case) and gave all child uls a set height (this is required if you
want the image positions to remain stable). In the case of this demo,
I set the height to 75 pixels - but you can adjust that.

--John

On 3/3/07, Rick Faircloth <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Repost in case someone might have some clues…
>
> …and I do have jQuery version 1.1.2…
>
> Rick
>
> ----------------------------------------------------------------------------
>
> Hi, all…
>
> I've been working on imitating Carlos Sanz' menu
>
> at http://www.generalmedicine.com/index2.htm.
>
> I've been successful except for one thing:
>
> When one of the images in my version of the menu at
>
> http://www.whitestonemedia.com/accordion_menu/accordion_menu.html
>
> is clicked so that it closes, the graphic "jumps" a little at the start of
> it
>
> slide upward.
>
> I can't for the life of me figure out why.
>
> Can someone have a look at the source and tell me if you see anything
>
> that might account for that behavior?
>
> Rick
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>
>
>

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to