1) Script Title: Step Carousel Viewer v1.9
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...epcarousel.htm
3) Describe problem: I'm trying to work out how keyboard navigation can be handled with prev and next buttons to scroll through the stack.
Code:
Thank youCode:<script type="text/javascript"> stepcarousel.setup({ galleryid: 'gallery', beltclass: 'belt', panelclass: 'image', panelbehavior: {speed:500, wraparound:true, wrapbehavior:'slide', persist:false}, defaultbuttons: false, statusvars: ['statusA', 'statusB', 'statusC'], contenttype: ['inline'] }) $('.stepcarousel').keydown(function(e){ if (e.keyCode == 37)$('stepcarousel').setup('statusA');else if (e.keyCode == 39)$('stepcarousel').setup('statusC'); });; </script>



Reply With Quote

Bookmarks