PDA

View Full Version : disclosure triangles



sophocles
05-13-2006, 11:45 AM
Anyone have code for creating hiding/revealing divs using disclosure triangles?

Thanks

jscheuer1
05-15-2006, 01:43 AM
There are a number of javascripts for doing that (displaying/not displaying content). I don't think it can be done using only css. The use of disclosure triangles, if I understand what you mean by that, would simply involve adapting one of these scripts that uses indicators (many use the plus (+) and minus (-) symbols) to use these triangles. If there isn't a character available for them that will work well in HTML, you can use images instead. If using images, best to preload them.

Here is a script that might adapt well:

http://www.dynamicdrive.com/dynamicindex17/switchcontent2.htm

Here is another:

http://www.dynamicdrive.com/dynamicindex17/switchcontent.htm

sophocles
05-20-2006, 02:21 PM
Thanks for the links; I suppose I'll use javascript then. It seems like it's almost possible w/CSS, but I couldn't figure out how to get everything to work.

Thanks again