Código PHP:
<script type="text/javascript" src="jquery.cycle.all.min.js"></script>
<script type="text/javascript">
$(function() {
$('#slideshow').after('<div id="nav" class="nav">').cycle({
fx: 'fade',
speed: 1600,
timeout: 0,
pager: '#nav',
before: onBefore
});
function onBefore() {
$('#title').html(this.alt);
}
});
</script>