I want to display some images but, at the of that, I would like to redirect.
$(document).ready(function() {
$('.intro').cycle({
fx: 'fade'
});
window.location.replace("http://www.something.com");
});
This will not work, it seems that js don't wait for the intro to finishes. Should I use a callback here?
Can I have some help here?
UPDATE:
The alert string never appears! :(
$(document).ready(function() {
$('.intro').cycle({
fx: 'fade',
window.location.replace("http://www.something.com"); }
end: function() {window.alert("ola");}
});
});