Jump to content

Collapsing Tables


unsider

Recommended Posts

I've been looking for a good script online that I can incorporate into my site that has all of these artibutes:

 

does not affect url

smooth transistion (some can be rough, i think, maybe it was the site, sorry for my ignorance)

incorporates image into it (up, down/plus, negative)

all similar to this website, but without the URL change

 

Sorry if this question has been asked plenty of times before.

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/95183-collapsing-tables/
Share on other sites

Javascript that allows users to collapse/expand tables, similar to the one at the top of this forum, that expands/collapses "Hello username newsbar"

 

And I assumed people would know what I was talking about, error on my part.

 

Example,

segment of code from the source of this forum...

 

<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
	var current_header = false;

	function shrinkHeader(mode)
	{
		smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "97716159925285cfe60fe24bc324cc9d");
		document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

		document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
		document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";

		current_header = mode;
	}
// ]]></script>

Link to comment
https://forums.phpfreaks.com/topic/95183-collapsing-tables/#findComment-488245
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.