Old 17-03-2008, 07:42   #1 (permalink)
hyperzzzz
Registered User
 
Join Date: Mar 2008
Posts: 37
Expandable content using JS

Hi, if you take a look at the bbc website and infused-gaming DOT net

You will see how you can have expandable bars which you can click which reveals the content, does anyone know the code for it?

Would be amazing help.

Thanks.
  Reply With Quote
Old 17-03-2008, 08:14   #2 (permalink)
herkalees
Semantics, yay.
 
herkalees's Avatar
 
Join Date: Nov 2005
Location: Salem, Massachusetts
Posts: 1,088
It's easy with the jquery library. Once you put the library files on your site, you use the slideToggle function, described here: Effects/slideToggle - jQuery JavaScript Library
__________________
  Reply With Quote
Old 17-03-2008, 09:07   #3 (permalink)
MikeMackay
Everything is fine.
 
MikeMackay's Avatar
 
Join Date: Feb 2005
Location: Witham & London
Posts: 744
Send a message via MSN to MikeMackay Send a message via Skype™ to MikeMackay
Although I think I personally prefer the jQuery library as Herkalees has mentioned above, the same effect can be achieved using script.aculo.us, and probably many other JS libraries out there.

- Mike
__________________
  Reply With Quote
Old 17-03-2008, 09:31   #4 (permalink)
Limbo
On yer bike...
 
Limbo's Avatar
 
Join Date: Feb 2005
Posts: 4,961
yarp - Mootools gets my vote for this action.
__________________
  Reply With Quote
Old 17-03-2008, 10:32   #5 (permalink)
hyperzzzz
Registered User
 
Join Date: Mar 2008
Posts: 37
Thanks for the help, I am however using the accordian version which my tutor just suggested, and its working well.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8