dsjoes Posted February 25, 2011 Share Posted February 25, 2011 i have five divs named 1 to 5 and i want to be able to show/hide them from the admin page because they won't all be needed all the time. How would i go about doing this? Thanks Link to comment https://forums.phpfreaks.com/topic/228785-showhide-div/ Share on other sites More sharing options...
donatello Posted February 25, 2011 Share Posted February 25, 2011 Use an accordion script. http://www.javascriptsearch.org/results.html?cx=016703912148653225111%3A2snawkdvrjq&cof=FORID%3A9&q=accordion+script#915 Link to comment https://forums.phpfreaks.com/topic/228785-showhide-div/#findComment-1179484 Share on other sites More sharing options...
donatello Posted February 25, 2011 Share Posted February 25, 2011 Also, Ajax tabs like they use on the Yahoo homepage. Link to comment https://forums.phpfreaks.com/topic/228785-showhide-div/#findComment-1179485 Share on other sites More sharing options...
nogray Posted February 26, 2011 Share Posted February 26, 2011 Hide or show a div (or any other object) <div id="my_div1">some text</div> <script> // hide document.getElementById('my_div1').style.display = 'none'; // show document.getElementById('my_div1').style.display = ''; </script> Link to comment https://forums.phpfreaks.com/topic/228785-showhide-div/#findComment-1179837 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.