So would the code look like this ? :
function ajaxpage(url, containerid) {
var $container= $('#' + containerid);
$container.hide().load(url, function() {
$container.fadeIn();
$('.slideshow').cycle({
fx: 'fade',
speed: 'slow',
timeout: 0,
next: '#next2',
prev: '#prev2'
after: function() {
var alt = $(this).attr('alt');
// do something with alt text
$('#someElement').html(alt);
}
});
});
}
This doesn't seem to work...
Oh and, i've changed my code to this :
function ajaxpage(url, containerid) {
var $container= $('#' + containerid);
$container.hide().load(url, function() {
$container.fadeIn();
$('.slideshow')
.after('<div id="nav">')
.cycle({
fx: 'blindX',
speed: 'slow',
delay: -2000,
pager: '#nav'
});
});
}
So...
if you could show me where to write the 'after' function I would be grateful!
Thanks again.