responsive

hashPrefix

  • Available since: v1.2.6
  • Type: option
  • Data type: String
  • Default value: null

Hash let's you easily link to a slide even from a different page. Hash is a combination of prefix and index of slide (slides are numbered from 0). If you set hashPrefix to 'slide' then hash would be #slide0 or #slide1 etc. If you want to link to a slide from a different page then attribute href of a link should look like http://www.example.com/#slide0. Plugin internally uses jQuery method eq so you can use #slide-1 to open the last slide.

Example:

$('.accordion').jAccordion({
	hashPrefix : 'slide'
});

Demo 1

Demo 1 demonstrates behaviour of the plugin with value of the described option set to 'slide'. Horizontal accordion is used.

Loading content...
slide1
slide2
slide3
slide4
slide5

1st slide - #slide0 3rd slide - #slide2 Last slide - #slide-1

Demo 2

Demo 2 demonstrates behaviour of the plugin with value of the described option set to 'slice-'. Vertical accordion is used.

Loading content...
slide1
slide2
slide3
slide4
slide5

1st slide - #slice-0 3rd slide - #slice-2 Last slide - #slice--1


jAccordion by maniacpc, exclusively for CodeCanyon