forked from cjsaylor/Scrolltab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
22 lines (16 loc) · 928 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Scrolltab is a jQuery plugin that adds tabs visually associated to their position relative to the scroll bar.
This enabled a developer to attach floating tabs to the scrollbar of the brwoser that will scroll the user to the position indicated by the tab. This tab is expandable with content within.
Demo:
http://www.chris-saylor.com/demos/Scrolltab/example.html
Examples:
// Enables a pin with the default classname
$('<dom object>').scrolltab();
// Changes the classname of the created (or existing) pin
$('<dom object>').scrolltab({ classname: 'test' });
Options:
title: HTML to display within the pin
classname: The classname for the pin to use
hoverin: function to execute when the mouseenter event fires on this pin
hoverout: function to execute when the mouseleave event fires on this pin
click: function to execute when the click event fire on this pin
This software is protected under the MIT license.