Ok, try something like the below configuration code (replacing what you have right now on the page):
Code:
<script type="text/javascript">
var largeimages=[]
largeimages[0]="large1.gif"
largeimages[1]="large2.gif"
largeimages[2]="large3.gif"
largeimages[3]="large4.gif"
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
panelbehavior: {speed:500, wraparound:false, persist:true},
defaultbuttons: {enable: true, moveby: 1, leftnav: ['images/minus.gif', -30, 16], rightnav: ['images/plus.gif', 16, 16]},
statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
contenttype: ['inline'], //content setting ['inline'] or ['external', 'path_to_external_file']
oninit:function(){
myiframeimg=window.frames["main"].document.getElementsByTagName("img")[0] //reference 1st image within iframe "main" on page
},
onslide:function(){
myiframeimg.setAttribute("src", largeimages[statusA-1])
}
})
</script>
This is only a proof of concept. Change the image paths referenced inside largeimages[] to working examples. Then as you step through the Carousel, the IFRAME should be dynamically populated with the enlarged image specified based on its order.
Bookmarks