...

View Full Version : Show & Hide script (+-)



richmoijn
03-05-2005, 11:34 AM
Hi!

I'm not good at css and javascripting but maybe there is a downloadable script that does the same as on www.phpfreaks.com/forums where you can - or + to see the content in each "forum-box"

I guess the're using css hide and show command, how realiable is this in different browsers?

//Rickard

_Aerospace_Eng_
03-05-2005, 11:40 AM
it looks similar to this script found here, u can modify it i guess to use +/- sign images instead http://www.dynamicdrive.com/dynamicindex1/switchmenu.htm

rmedek
03-05-2005, 12:00 PM
I guess the're using css hide and show command, how realiable is this in different browsers?
Just to clarify, CSS doesn't have "commands" per se; it does have "display: none" and "visibility: hidden" and a few other tricks, though. In other words, you can simulate client-side programming by applying different visual formatting to certain states (like hover), but if you want something like you describe you'll need javascript or something similar.

richmoijn
03-05-2005, 05:32 PM
Thank you for the "dynamic drive" link, it's pretty much what I want except that I want every "menu-item" to be displayed and the option to close if I don't want to see them... The script on DD only displays one at a time...

Yes, of course it's the same thing as on this site, I missed that +- signs, sorry :rolleyes:

//Rickard

rmedek
03-05-2005, 07:31 PM
Try this:

http://www.gazingus.org/html/menuExpandable.html

richmoijn
03-05-2005, 08:32 PM
That menu isn't expanded as its "normal" value neither...

//Rickard



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum