Created
October 4, 2012 17:34
-
-
Save madchops1/3835163 to your computer and use it in GitHub Desktop.
How To Use jQuery Site Tour
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link href="jquery.sitetour.css" rel="stylesheet"> | |
<script type='text/javascript' src='jquery-1.7.1.min.js'></script> | |
<script type='text/javascript' src='jquery.scrollTo-min.js'></script> | |
<script type='text/javascript' src='jquery.sitetour.js'></script> | |
<script type='text/javascript'> | |
var siteTourData = [ | |
{ | |
title: 'First Step of Tour', | |
text: 'Feature an element in the first step of the tour.', | |
selector: '#your-element-id' | |
}, | |
{ | |
title: 'Second Step of Tour', | |
text: 'Feature another element in the second step of the tour.', | |
selector: '#another-element-id' | |
}}; | |
var siteTourOptions = { | |
data: siteTourData | |
}; | |
$(document).ready(function(){ | |
$.siteTour(siteTourOptions); | |
$.siteTour("start"); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment