[jQuery] instanciate Jcarousel after a setimeout()
Hello,
I'm trying to use jcarousel on a page where I have a first animation
and text and then want to launch jcarousel.
My code is :
function beginTimeout () {
setTimeout ('launchCarousel()',10000);
}
function launchCarousel() {
var cadreIntro = document.getElementById ("cadrePrincipalIntro");
cadreIntro.style['display']="none";
var cadrePrincipal = document.getElementById ("cadrePrincipal");
cadrePrincipal.style['display']="block";
var bandeauProduits = document.getElementById ("bandeauProduits");
bandeauProduits.style['display']="block";
jQuery(document).ready(function()
{jQuery('#mycarousel').jcarousel();});
}
The begintimeout() function runs on an "body onload".
It seems that in that case, the carousel doesn't initialise itself.
Anybody for a Hint ?
regards,
Damien