Jquery Side Content

My jQuery plugins were created either as experiments or to fulfil some need that I had on a project. I made the plugins available for free on this website - and you can still get them all here now.

I no longer actively support the jQuery plugins for the following reasons...

  • Many of the features can now be achieved without JavaScript using new features of HTML and CSS
  • Some of the features probably shouldn't even have been used, they were just experiments!
  • Not everyone wants to use jQuery - I will create stand alone plugins for the popular stuff that don't enforce any particular framework

Jquery Side ContentQuick Links

Visit the jQuery Side Content project hub, which has a demonstration and download for this plugin on JS Plugins JavaScript Plugin Library.

Side Content Demonstration.

Description

The jQuery Side Content project is a plugin for the jQuery JavaScript Framework, which converts divisions on the page into tabbed bars glued to the side of the browser window, which expand and contract when the user clicks on the tab header.

Requirements

CSS

/* Optional styles */
		
		.sidecontentpullout {
			background-color: Black;
			color: White;
			padding: 4px 3px;
			-moz-border-radius-bottomleft: 1em;
			-moz-border-radius-topleft: 1em;
			-webkit-border-bottom-left-radius: 1em;
			-webkit-border-top-left-radius: 1em;
			border-bottom-left-radius: 1em;
			border-top-left-radius: 1em;
		}
		
		.sidecontentpullout:hover {
			background-color: #444444;
			color: White;
		}
		
		.sidecontent {
			background-color: Black;
			color: White;
			-moz-border-radius-bottomleft: 1em;
			-webkit-border-bottom-left-radius: 1em;
			border-bottom-left-radius: 1em;
		}
		
		.sidecontent > div > div {
			padding-left: 10px;
			padding-right: 40px;
		}

JavaScript

$(".side").sidecontent();

With all options set:

$(".side").sidecontent({
    classmodifier: "sidecontent",
    attachto: "rightside",
    width: "300px",
    opacity: "0.8",
    pulloutpadding: "5",
    textdirection: "vertical"
});

You Are Here: Home » Jquery Plugins » Side Content