diaporamer is not a function.
Bonjour !
J'ai la fonction :
Code:
1 2 3 4 5 6
|
Image.prototype.diaporamer=function(thesaurus,delai)
{
this.suivante=new Image; this.suivante.src=thesaurus.tirer();
setInterval(function(){this.src=this.suivante.src; this.suivante.src=thesaurus.tirer();},delai);
} |
Et l'image :
Code:
1 2
|
<img id="carrousel" src="http://www.biosfaire.com/nLivres/10/80/16/2858297215.jpg" /> |
Et :
Code:
1 2 3
|
var illustrations=['Illustrations/Grotte6.png', 'Illustrations/canetons.jpg'];
bider('carrousel').diaporamer(illustrations,3000); |
(bider, c'est getElementById)
Firefox me renvoie :
bider(...).diaporamer is not a function
Comment se fait-ce ???
Merci !