Alvaro's Simple Tour Plugin for jQuery

Start Tour

aSimpleTourPlugin is a jQuery plugin that will help you to make website tours.
If you want to know how it works press the button "start tour"

How it works?

The plugin works using a very easy jSON Structure that gives it to the plugin all the elements, configurations, tooltips and help texts.

options = {
  data : [
    { element: '#id', 'tooltip' : 'This is a tooltip for some element #id' },
    { element: 'ul li:last a', 'tooltip' : 'The last link of some ul list' },
    { element: '.class', 'tooltip' : 'A tooltip for some class' }
  controlsPosition : 'RT'


The "data" section

The "data" attribute contains elements and configurations and you can set all the elements what you want with specials configurations for all the steps.
Every element that you add into the data attribute is a new step tour and you can configure every step using this attributes:

The element attribute is a DOM Element representation. By example you can use an ID (#id), a class (.class) or a jquery selector like "input[type=submit]"
This is the tooltip text
* The tooltip position it can be setted using "position". The options are : T, B, L, R, TL, TR, BL, BR, LT, RT, LB, RB.
The main text that it shows into over the controls tour. You can use HTML too!
* T means top, B means bottom, L means left and R means right.

Other options

There are others options that can be used to change css styles like backgrounds, colors, fonts, and it's very effective because the plugin don't need a css file.

The starting message tour
With this attribute you can change the control buttons text using:
buttons : { next : 'Next &rarr;', prev : '&larr; Prev', start : 'Start!', end: 'The end' }
tooltipColors & controlsColors
This attribute can be used to change colors and backgrounds like :
{ 'color' : 'white', 'backgroud' : 'rgba(0, 0, 0, 0.85)'}
It is the starting position of the tour controls, it can be: TL, TR, BL, BR

Work in progress

There will be others options in the future like "autoStart, themes, animations and key controls"


This plugin depends on jQuery ScrollTo Plugin because I don't want to rebuild the wheel.