TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   Javascript, AJAX, E4X (http://www.talkphp.com/javascript-ajax-e4x/)
-   -   Active/Deactive? (http://www.talkphp.com/javascript-ajax-e4x/4316-active-deactive.html)

Randy 05-17-2009 05:02 AM

Active/Deactive?
 
So i am doing some coding a design i made, and im trying to make the menu work with javascript.

What i want it to do is when you click on one link it activates a new section that appears and moves the links below that down and the one that was currently active to disappear.

Any clue how I would go about doing this?

Thanks,
Randy

Randy 05-17-2009 08:57 PM

nvm got it.

foobarph 05-20-2009 01:22 AM

toink! share it randy! share it!

Randy 05-24-2009 07:16 PM

Let me prowl through my code and get it for you.

ReSpawN 05-27-2009 09:50 PM

The smartest way, toobarph, is to use a Javascript framework like Prototype, jQuery or MooTools. I highly advise MooTools because it's updated regularly, has all the jQuery and Prototype functions, is easy to understand and code and has a lot of plugins and 3rd party plugins.

The most easies way is to dynamicly inject a div containing a list or something like that and displaying it with a style change (through CSS) or simply with (fading) opacity.

Lemme see what you've got Randy! ;-)

ReSpawN


All times are GMT. The time now is 07:21 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0