| | |||||
| ||||||||
| CODE This forum is for posting code snippets and example scripts that aren't quite tutorials, but could be useful for others. You may post code snippets and/or completed scripts that you've written and want to share here. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Regular Join Date: Jan 2006 Location: San Diego, CA
Posts: 735
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | YUI javascript show/hide code 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/y...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 by DylanButler; 12-01-2008 at 10:28 PM.
|
| | |
| | #2 (permalink) |
| Senior Member Join Date: Jul 2005 Location: NJ
Posts: 1,219
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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.
__________________ Hacksar.com - Your source for random computer tips and tricks! MySiteMemberships.com - Keep track of your site registration information! Like my post? Rep is appreciated! |
| | |
| | #3 (permalink) | ||||
| Senior Member Join Date: Mar 2005
Posts: 4,948
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
http://developer.yahoo.com/yui/????: NamePros.com http://www.namepros.com/code/508248-yui-javascript-show-hide-code.html It's a great library. Even vBulletin uses it now. | ||||
| | |
| | #5 (permalink) |
| NamePros Regular Join Date: Mar 2004 Location: Canada
Posts: 256
![]() ![]() ![]() | Just incase anyone else wants to view this, the url has changed since the original post, it's now, http://www.dylanbutler.com/2008/08/y...showhide-code/ Very nice work, Dylan, I especially LOVE Example 2!
__________________ Professional Web Design Services |
| | |
| | THREAD STARTER #6 (permalink) |
| NamePros Regular Join Date: Jan 2006 Location: San Diego, CA
Posts: 735
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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. |
| | |