Skip to content

Navigation Menu

Sign up
Dimitris Krestos edited this page Nov 13, 2013 · 33 revisions

Options

Default Options

$('.tabs').tabslet({
	mouseevent: 'click',
	attribute: 'href',
	animation: false,
	autorotate: false,
	delay: 6000,
	active: 1
});

"mouseevent" option

  • Select tab on click or on hover
  • options: click, hover
$('.tabs').tabslet({
	mouseevent: 'hover'
});

"attribute" option

  • Use href or alt attribute to select tabs
  • options: href, alt
$('.tabs').tabslet({
	attribute: 'alt'
});

"animation" option

  • Enables javascript animation effect on tabs change
  • options: false, true
$('.tabs').tabslet({
	animation: true
});

"autorotate" option

  • Enables automatic rotation of the tabs
  • options: false, true
$('.tabs').tabslet({
	autorotate: true
});

"delay" option

  • Sets the delay on automatic rotation
  • options: number in_ms
$('.tabs').tabslet({
 autorotate: true,
	delay: 6000
});

"controls" options

  • Set previous and next element
  • options: element class
$('.tabs').tabslet({
	controls: {
		prev: '.prev',
		next: '.next'
	}
});

"active" option

  • Select which tab will be visible at the beginning
  • options: number
$('.tabs').tabslet({
 active: 1
});

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /