rein wrote:I think I can add code in PHP(like server side), then add them to the html, right?
I think Thorpe is correct. There are a ton of great JavaScripts on the web. And here is one of the easiest ones to use:
<script language="JavaScript" type="text/javascript">
<!--
function expandCollapse() {
for (var i=0; i<expandCollapse. arguments.length; i++) {
var element = document.getElementById(expandCollapse.arguments[i]);
element.style.display = (element.style.display == "none") ? "block" : "none";
}
}
//-->
</script>
<div id="on">
<a href="javascript: expandCollapse('expand', 'on');">Expand Layer</a>
</div>
<div id="expand" style="display: none;">
<a href="javascript: expandCollapse('expand', 'on');">Collapse Layer</a>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Quisque eu ligula. Class
aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos.
Ut wisi. Curabitur odio. Sed ornare arcu id diam. Integer ultricies, mauris venenatis
vulputate pulvinar</p>
</div>
I am, however curious. From where do you want to pull the information into your table? From a file? From a database?
Or, do you just want to be able to show/hide layers of information as in the example above? Please elaborate a little if you care to.