something like the arrow buuton on the main page of dp forums which let you minimize and expand the forum of choice.... what is it done using Java script or DHTML? do u have any resources/ebook/sites which can explain me how to do this stuff
t something that is used on http://www.bjij.com/index.asp?page=sms§ion=symbols or on my own site http://www.makhyan.info copy the script from the VIEW SOURCE
something more like this.... i want to do some modificaions in phpbb...to make all categories show on page load.... and when someone clicks on the category, it expands and shows all the forums in it....
Try this... Demo: http://home.earthlink.net/~duhomax/hide_and_show_list.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> <title>Drop Down List Test</title> <style type="text/css"> div#countries { display: none; } div#continents { display: none; } body { font: 10pt verdana, arial, sans-serif; } a.expand { font-size: 8pt; font-weight: bold; } </style> <script type="text/javascript"> function show(id) { if (document.getElementById) { if (document.getElementById(id).style.display != 'block') { document.getElementById(id).style.display = 'block'; document.getElementById(id + '_expand').innerText = 'click here to collapse'; } else { document.getElementById(id).style.display = 'none'; document.getElementById(id + '_expand').innerText = 'click here to expand'; } } } </script> </head> <body> <p>list of all countries [<a href="javascript:show('countries')" id="countries_expand" class="expand">click here to expand</a>]</p> <div id="countries"> <ol> <li>India</li> <li>USA</li> <li>UK</li> <li>Australia</li> <li>etc...</li> </ol> </div> <p>list of all continents [<a href="javascript:show('continents')" id="continents_expand" class="expand">click here to expand</a>]</p> <div id="continents"> <ol> <li>North America</li> <li>South America</li> <li>Europe</li> <li>Asia</li> <li>etc.</li> </ol> </div> </body> </html> Code (markup):