This:
Code:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
should be:
Code:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
And there's a missing comma (added in red in the below):
Code:
stepcarousel.setup({
galleryid: 'mygallery', //id of carousel DIV
beltclass: 'belt', //class of inner "belt" DIV containing all the panel DIVs
panelclass: 'panel', //class of panel DIVs each holding content
autostep: {enable:true, moveby:1, pause:3000},
panelbehavior: {speed:500, wraparound:false, wrapbehavior:'slide', persist:true},
defaultbuttons: {enable: true, moveby: 1, leftnav: ['http://www.escapebetweenthepages.com/test/leftnav.gif', -5, 80], rightnav: ['http://www.escapebetweenthepages.com/test/rightnav.gif', -20, 80]},
statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
contenttype: ['inline'], //content setting ['inline'] or ['ajax', 'path_to_external_file']
oninit:function(){
$contentcontainer=jQuery('#relatedcontent') //reference DIV used to contain related content
$posleft=$contentcontainer.position().left
},
onslide:function(){
//Update DIV with this panel's related content (notice imageA-1 as the array index, as imageA starts at 1, while array at 0
$contentcontainer.html(contentarray[statusA-1])
$contentcontainer.css({left:'100%'}).animate({left:0})
}
})
There could also be other problems.
Bookmarks