NameSilo

YUI javascript show/hide code

SpaceshipSpaceship
Watch
I've created some code to easily create multiple show/hide menus using YUI.

If you are looking for an "all CSS" solution, you won't find that here (and you won't find any as capable as this solution anywhere).

http://www.dylanbutler.com/2008/08/yui-generic-showhide-code/

The beauty of this code is this:

a) It uses YUI
b) It supports any type of content inside the menu (no more sifting through nodes).
c) It works for trigger/menu ID pairs OR a nested HTML list (UL, OL, DL).
 
Last edited:
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains โ€” AI StorefrontUnstoppable Domains โ€” AI Storefront
by YUI, are you referring to the yahoo user interface? i'm not familiar with that acronym and that was the first google result XD.
 
0
•••
nasaboy007 said:
by YUI, are you referring to the yahoo user interface? i'm not familiar with that acronym and that was the first google result XD.
Yes ;) http://developer.yahoo.com/yui/

It's a great library. Even vBulletin uses it now.
 
0
•••
Yeah, definitely, YUI is pretty solid.. I haven't used the JS stuff much, mainly the CSS stuff (grid, reset, etc.). It's fine and dandy indeed.
 
0
•••
0
•••
Hey Colleen -

Thanks for keeping this updated. You can see the live example of example 2 at caliperls dot com.

We have been using this code for most menus and show/hide scenarios at my job. The code has held up pretty well, but needed modifications on several occasions (sorry!). I'll post up the latest version as soon as it's solid.
 
0
•••
CatchedCatched
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back