[jQuery] Re: Making a UL simulate an option box?

2008-12-09 Thread Andy Matthews
to accomplish that? andy -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dave Methvin Sent: Monday, December 08, 2008 7:00 PM To: jQuery (English) Subject: [jQuery] Re: Making a UL simulate an option box? I noticed that the page didn't work

[jQuery] Re: Making a UL simulate an option box?

2008-12-09 Thread Dave Methvin
I assume that all you have to do is to add in the .stop() method to accomplish that? Yep, although you generally want to follow that with something to put the element in a known state, or use one of the stop arguments to do the same thing. http://docs.jquery.com/Effects/stop

[jQuery] Re: Making a UL simulate an option box?

2008-12-08 Thread Andy Matthews
I've got something that's sort of what I need here: http://www.commadelimited.com/code/scrollingUL/ But it's not perfect. Anyone have anything better? andy matthews _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andy Matthews Sent: Monday, December

[jQuery] Re: Making a UL simulate an option box?

2008-12-08 Thread Dave Methvin
Do you need this to be accessible? For example, how will this be used by someone with a screen reader, or with no mouse?

[jQuery] Re: Making a UL simulate an option box?

2008-12-08 Thread Andy Matthews
[mailto:[EMAIL PROTECTED] On Behalf Of Dave Methvin Sent: Monday, December 08, 2008 4:34 PM To: jQuery (English) Subject: [jQuery] Re: Making a UL simulate an option box? Do you need this to be accessible? For example, how will this be used by someone with a screen reader, or with no mouse?

[jQuery] Re: Making a UL simulate an option box?

2008-12-08 Thread Dave Methvin
I noticed that the page didn't work right with IE and also didn't stop the animation if you did mouseover/out quickly. This version works a bit better: var $cont = $('#scrollMe'); var parentHeight = $cont.height(); var childHeight = $cont.find('li:first').height();