Deprecated: Non-static method Debugger::invoke() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/debugger.php on line 574

Deprecated: Non-static method Debugger::getInstance() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/debugger.php on line 574

Deprecated: Non-static method Cache::config() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/app/config/core.php on line 226

Deprecated: Non-static method Cache::getInstance() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/cache.php on line 99

Deprecated: Non-static method Configure::read() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/cache.php on line 386

Deprecated: Non-static method Configure::getInstance() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/configure.php on line 324

Deprecated: Non-static method Configure::read() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/cache.php on line 145

Deprecated: Non-static method Cache::config() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/configure.php on line 657

Deprecated: Non-static method Cache::config() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/configure.php on line 677

Deprecated: Non-static method Cache::config() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/configure.php on line 678

Deprecated: Non-static method Cache::config() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/configure.php on line 684

Deprecated: Non-static method Cache::config() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/configure.php on line 685

Deprecated: Non-static method Cache::config() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/configure.php on line 690

Deprecated: Non-static method Cache::read() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/configure.php on line 489

Deprecated: Non-static method Cache::getInstance() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/cache.php on line 287

Deprecated: Non-static method Inflector::underscore() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/cache.php on line 515

Deprecated: Non-static method Cache::write() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/configure.php on line 523

Deprecated: Non-static method Cache::getInstance() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/cache.php on line 230

Deprecated: Non-static method Configure::corePaths() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/configure.php on line 1128

Deprecated: Non-static method Cache::read() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/configure.php on line 924

Deprecated: Non-static method Inflector::underscore() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/configure.php on line 861

Deprecated: Non-static method Configure::read() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/dispatcher.php on line 360

Deprecated: Non-static method Configure::read() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/dispatcher.php on line 685

Deprecated: Non-static method Router::getNamedExpressions() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/dispatcher.php on line 303

Deprecated: Non-static method Router::getInstance() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/router.php on line 187

Deprecated: Non-static method Configure::read() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/router.php on line 174

Deprecated: Non-static method Router::connect() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/app/config/routes.php on line 34

Deprecated: Non-static method Router::getInstance() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/router.php on line 202

Deprecated: Non-static method Router::connect() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/app/config/routes.php on line 38

Deprecated: Non-static method Router::parse() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/dispatcher.php on line 305

Deprecated: Non-static method Router::getInstance() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/router.php on line 401

Deprecated: Non-static method Configure::listObjects() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/router.php on line 593

Deprecated: Non-static method Configure::getInstance() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/configure.php on line 160

Deprecated: Non-static method Cache::read() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/configure.php on line 163

Deprecated: Non-static method Inflector::camelize() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/dispatcher.php on line 494

Deprecated: Non-static method App::import() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/dispatcher.php on line 498

Deprecated: Non-static method App::getInstance() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/configure.php on line 828

Deprecated: Non-static method Configure::read() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/configure.php on line 1140

Deprecated: Non-static method Inflector::underscore() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/controller/controller.php on line 308

Deprecated: Non-static method Inflector::classify() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/controller/controller.php on line 310

Deprecated: Non-static method Inflector::camelize() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/inflector.php on line 465

Deprecated: Non-static method Inflector::singularize() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/inflector.php on line 465

Deprecated: Non-static method Inflector::getInstance() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/inflector.php on line 370

Deprecated: Non-static method Set::pushDiff() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/inflector.php on line 353

Deprecated: Non-static method Set::pushDiff() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/inflector.php on line 354

Deprecated: Non-static method Set::pushDiff() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/inflector.php on line 355

Deprecated: Non-static method Inflector::underscore() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/controller/controller.php on line 311

Deprecated: Non-static method Router::prefixes() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/dispatcher.php on line 150

Deprecated: Non-static method Router::getInstance() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/router.php on line 388

Deprecated: Non-static method Router::setRequestInfo() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/dispatcher.php on line 161

Deprecated: Non-static method Router::getInstance() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/router.php on line 628

Deprecated: Non-static method Inflector::camelize() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/controller/controller.php on line 335

Deprecated: Non-static method Set::merge() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/controller/controller.php on line 373

Deprecated: Non-static method Set::normalize() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/controller/component.php on line 186

Deprecated: Non-static method App::import() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/controller/component.php on line 202

Deprecated: Non-static method Configure::read() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/controller/components/session.php on line 67

Deprecated: Non-static method Configure::read() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/session.php on line 128

Deprecated: Non-static method Configure::read() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/session.php on line 132

Deprecated: Non-static method Configure::read() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/session.php on line 134

Deprecated: Non-static method Security::inactiveMins() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/session.php on line 156

Deprecated: Non-static method Security::getInstance() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/security.php on line 65

Deprecated: Non-static method Configure::read() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/security.php on line 66

Deprecated: Non-static method Configure::read() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/session.php on line 156

Deprecated: Non-static method Configure::read() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/session.php on line 157

Deprecated: Non-static method Configure::read() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/session.php on line 438

Deprecated: Non-static method Configure::read() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/session.php on line 446

Deprecated: Non-static method Inflector::humanize() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/controller/pages_controller.php on line 79

Deprecated: Non-static method Inflector::variable() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/controller/controller.php on line 645

Deprecated: Non-static method Inflector::camelize() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/inflector.php on line 477

Deprecated: Non-static method Inflector::underscore() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/inflector.php on line 477

Deprecated: Non-static method Configure::read() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/controller/controller.php on line 746

Deprecated: Non-static method ClassRegistry::addObject() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/view/view.php on line 276

Deprecated: Non-static method ClassRegistry::getInstance() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/class_registry.php on line 176

Deprecated: Non-static method Inflector::underscore() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/class_registry.php on line 177

Deprecated: Non-static method Inflector::underscore() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/view/view.php on line 789

Deprecated: Non-static method Configure::read() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/view/view.php on line 893

Deprecated: Non-static method App::import() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/view/view.php on line 726

Deprecated: Non-static method Overloadable::overload() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/configure.php on line 1029

Deprecated: Non-static method Configure::read() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/view/helpers/session.php on line 59

Deprecated: Non-static method Inflector::variable() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/view/view.php on line 650
Tabs

Deprecated: Non-static method Configure::read() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/view/view.php on line 661

Tabs

Tabs is a JavaScript component that depends on Prototype.js, designed to make it easier for designers to create tabbed interfaces.

Here's how it works

Tabs works by combining information in your markup with JavaScript automation. Set up your tabs area like so:

<div id="tabs">
	<div class="tab" data-div="div-1">Tab 1</div>
	<div class="tab" data-div="div-2">Tab 2</div>
	<div class="tab" data-div="div-3">Tab 3</div>
</div>
<div id="panels">
	<div class="panel" id="div-1">Contents of Tab 1</div>
	<div class="panel" id="div-2">Contents of Tab 2</div>
	<div class="panel" id="div-3">Contents of Tab 3</div>
</div>

Then add the following script:

new Tabs({
	tabContainer:'tabs',
	targetDiv:'panels'
});

Add some CSS, and voila!

Tab 1
Tab 2
Tab 3
Contents of Tab 1
Contents of Tab 2
Contents of Tab 3

Put a link in the tab, and Tabs will turn the whole tab into a link.

If you want to add some AJAX flavor to your page, just change out that "data-div" attribute for a "data-url" attribute, and you can replace the contents of that panel with a web page.

Tab 1
Tab 2
Tab 3

Download Tabs.js

Options

Name Default Permitted Description
tabContainer string id value the div within which the tabs are contained
tabClass 'tab' string class value CSS class assigned to tabs
targetDiv string id value div within which the target panels live
autoSelect true boolean determines whether first tab is automatically selected
selectedClass 'selected' string class value CSS class assigned to selected tab
selectedDivClass string class value CSS class assigned to the associated panel of the selected tab

Deprecated: Non-static method Configure::corePaths() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/configure.php on line 1184

Deprecated: Non-static method Cache::write() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/configure.php on line 1186

Deprecated: Non-static method Cache::write() should not be called statically, assuming $this from incompatible context in /home/bmunson/ben.munsonarts.com/cake/libs/configure.php on line 1187