I used AJAX to populate a div and then, cycle plugin it !
here is the page, and here is the code calling cycle:
Instead of initializing cycle in $(document).ready(), do it in a load callback so that it doesn't execute until your ajax call has completed and built the #ani div:
$(function() {
$("#photoviewer").load("photo-list.shtml #ani", function() {
$('#ani').cycle({ fx: 'turnDown',
speed: 'fast',
timeout: 0,
pager: '#nav' });
});
});
As it stands, the cycle plugin initialization is executing before the images have loaded (before the load function has finished).