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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.