Your problem arises because the step carousel is remembering where it was, but the content above the carousel is not.
The carousel does this with cookies. It would probably be a bad idea to disable that because then, when you get to a sub page for a specific ring, the carousel would then be in the wrong place. It wouldn't make sense to remember the page you were on, because then clicking on rings would do nothing, though that could be arranged and might be a better solution, depending upon your personal preference. Let me know.
What we can to do is prevent the carousel from reacting to the cookie, but only on 'home' ring page:
http://www.jacksdesign.co.uk/rings/e...3xdrops18Y.php
To do that, replace this on that page only:
Code:
<script language="JavaScript" src="../../js/stepcarousel_03.js" type="text/javascript"></script>
with:
Code:
<script type="text/javascript">
stepcarousel.setup({
galleryid: 'bottom', //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:false, moveby:1, pause:3000},
panelbehavior: {speed:500, wraparound:false, persist:false, scrolling:false},
defaultbuttons: {enable: true, moveby: 8, leftnav: ['../../images/arrow_left.gif', 10, 80], rightnav: ['../../images/arrow_right.gif', -30, 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(){
var config = stepcarousel.configholder['bottom'];
jQuery(window).unbind('unload');
jQuery(window).bind('unload', function(){ //clean up on page unload and set cookie
stepcarousel.resetsettings($, config);
stepcarousel.setCookie(config.galleryid+"persist", config.currentpanel);
jQuery.each(config, function(ai, oi){
oi=null;
})
config=null;
});
}
})
</script>
Bookmarks