PDA

View Full Version : toggle button in dreamweaver



student07
July 29th, 2008, 11:28 PM
how do you make a toggle button in dreamweaver?

see here:
http://www.newconcept.hu/index.php

simplistik
July 30th, 2008, 09:38 AM
ugh, you don't. all your questions are "how do I do this in dreamweaver" and "how do I do that in dreamweaver" you need to stop thinking that everything is done differently in dreamweaver, cause it's not. dreamweaver is just a gui for html/markup and code, so you need to know the code, not .... "how it's done in dreamweaver".

the toggle button is just a very simple javascript that can be executed easily with either jquery or mootools, this one uses mootools.

http://docs.mootools.net/Plugins/Fx.Slide#Fx-Slide:toggle
http://docs.jquery.com/Effects/slideToggle

I might also suggest that you get a better grasp on coding and markup and how to read it, before you go and do all the "fancy" stuff, cause if you had looked at the source you would've seen exactly how he did it.