Use callback function


Slide no.1 Slide no.2 Slide no.3

Source

HTML:
<div id="CustomSlideshow">
    <a href="img/image_0.jpg" title="Camomile">Slide no.1</a>
    <a href="img/image_1.jpg" title="Bumblebees">Slide no.2</a>
    <a href="img/image_2.jpg" title="Wood Toothpicks">Slide no.3</a>
</div>
JavaScript:
<script type="text/javascript">
//<![CDATA[
    $('#CustomSlideshow').slideshow({
        callback:function(i,txt) {
            $('h3').html('Slide #' + (i+1) + ': ' + txt);
        }
    });
//]]>
</script>