PDA

View Full Version : How to create...




Millwood
Feb 2, 2008, 12:08 PM
I hope you will all be patient with me as I try to explain what I want to do with a website that I am building.

I am trying to create something like a drop down list in dreamweaver.
Ultimately, i'd like a certain text field "hidden" until the user clicks on a line like "click here to see further information..." But i'd like the hidden text field to drop down on the same page just below the "click here..." where they would click to see it.

Does anyone know what exactly this would be called? Would it be a drop down list or something else?
Something like this website as an example: http://spoilerfix.com/othershows.php See when the user clicks the arrow and the show title, a text field drops down.

Thanks so much to anyone who can help.



angelwatt
Feb 2, 2008, 02:08 PM
Its most basic name is DHTML (Dynamic HTML). It makes use of JavaScript to manipulate the DOM (Document Object Model). Here, it's likely changing the style of the content from display:block to display:none, which shows or hides the content, respectively.

There's various tutorials on manipulating the DOM with JavaScript, and different ways of going about a particular solution. Start searching and reading. If you run into specific problems or have questions just let us know.

Millwood
Feb 2, 2008, 10:06 PM
Thanks very much for the help. At least I know now what it's called, and can search for some tutorials on it!