469,315 Members | 1,569 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,315 developers. It's quick & easy.

help with slider effect in scriptaculous making a list drop down

hi

i have a page which contains an visible nav down the left-hand side.
when you click a button it needs to appear. i thought it would be cool
to use scriptaculous to make it slide down. can anyone give me an
example code for this?

thanks

marc

May 24 '07 #1
3 3775
On May 24, 9:30 pm, libsfan01 <mcyi2...@googlemail.comwrote:
hi

i have a page which contains an visible nav down the left-hand side.
when you click a button it needs to appear. i thought it would be cool
to use scriptaculous to make it slide down. can anyone give me an
example code for this?
The place to ask for help about Scriptaculous.js is on the Ruby on
Rails spinoffs list:

<URL: http://groups.google.com.au/group/ru...s?lnk=li&hl=en
>
Incidentally, you can do it with jQuery with a single line and about
1/6th the amount of supporting script than Prototype.js +
Scriptaculous:

$('#id').slideDown();

<URL: http://docs.jquery.com/Effects >
--
Rob

May 24 '07 #2
The place to ask for help about Scriptaculous.js is on the Ruby on
Rails spinoffs list:

Who decided that? it never used to be

May 24 '07 #3
RobG wrote:
Incidentally, you can do it with jQuery with a single line and about
1/6th the amount of supporting script than Prototype.js +
Scriptaculous:

$('#id').slideDown();

<URL: http://docs.jquery.com/Effects >
You know, I wondered something recently. Have you ever actually
profiled something as simple as that call?

In Firebug, I get 231 (253 executed within my wrapper) calls.

For slideUp, I get 136 (158 executed within my wrapper) calls.

Granted, it only takes 20.x milliseconds to execute (even less for
slideUp), testament to jQuery's efficiency.

I wonder why so very many calls are required? Especially for so small
an example... for example. ;)

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
May 25 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by nephish | last post: by
1 post views Thread by dlarsson | last post: by
6 posts views Thread by cmgmyr | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.