Web Hosting Talk







View Full Version : Show/Hide Content Code?


Zhamoret
05-06-2006, 02:48 PM
Hello everyone, I am looking for an html or javascript code that will allow me to have content that when you click, it shows more content beneath it. I do not know the name, but it is similar to when you right click "Start" and go to Explorer (on WinXP) and then you see the branches such as:

Local Disk (C: ) -
..|-Program Files+
..|-Windows +

I will be using this for an FAQ page so when you click the question, it will show the anser beneath it, then when you click the answer again, it will minimize the answer again.

If anyone knows where I can find such a code, it would be much appreciated!

Thanks!

Premier
05-07-2006, 01:18 AM
There are all kinds of scripts out there. Try a search for javascript menu and look around for the one closest to what you want.

The most common method is to use style tags to make submenus hidden and make them visible when clicking on, or mousing over, the main links.