Skip to content

Instantly share code, notes, and snippets.

@madchops1
Created October 4, 2012 17:34
Show Gist options
  • Save madchops1/3835163 to your computer and use it in GitHub Desktop.
Save madchops1/3835163 to your computer and use it in GitHub Desktop.
How To Use jQuery Site Tour
<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