A better way to deal with those other issues would be to remove the events from the list and links entirely, use this style (though some IE browsers may have a problem with this style, an alternate may need to be found for them):
Code:
.menuli a {
display: block;
width: 100%;
height: 100%;
}
This will better take care of the links because they will now cover the entire area of their parent li element.
And for the mouseover events, add this code (highlighted) as shown:
Code:
<script type="text/javascript">
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: false, moveby: 1, pause: 3000 },
panelbehavior: { speed: 500, wraparound: false, persist: true },
defaultbuttons: { enable: true, moveby: 1, leftnav: ['i/arrow-left.png', -8, 145], rightnav: ['i/arrow-right.png', -34, 145] },
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() {
contentcontainer = document.getElementById('Text') //reference DIV used to contain related content
},
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.innerHTML = contentarray[statusA - 1]
}
}
)
jQuery(function($){
$('.menuli').each(function(i){
$(this).bind('mouseover', function(){
stepcarousel.stepTo('mygallery', i + 1);
});
});
});
</script>
Bookmarks