j'ai un code qui marche sous ie mais pas sur ns
lorqu'il est ds la fct aller-retour() ou boucle(), il rentre ds la boucle for mais s'arrete qd l'indice est égale à 1 et sort de la fonction
function affichage_diapo(){
texte='<html> <SCRIPT language="JavaScript">';
secondes*=1000;
texte+=' function aller_retour(){\n var j; \n setTimeout("aller_retour()","'+secondes+'");\n nb=tableau.length;\n for(j=0;j<nb;j++){\n if(window.opener.cpt == j) diapo.src=tableau[j];}\n if (window.opener.sens==0) window.opener.cpt++;\n else window.opener.cpt --;\n if(window.opener.cpt==tableau.length) {\nwindow.opener.sens=1; \nwindow.opener.cpt--;} \n if (window.opener.cpt==-1) {\nwindow.opener.sens=0 ;\n window.opener.cpt++} } ';
texte+='function boucle(){ setTimeout("boucle()","'+secondes+'");for(i=0;i<tableau.length;i++){ if(window.opener.cpt==i) diapo.src=tableau[i]; } window.opener.cpt++; if(window.opener.cpt==tableau.length) window.opener.cpt=0; }';
texte+=' function slideShow() { if (window.opener.passages==1) boucle() ; else aller_retour (); }';
texte+=' function Terminer() { window.opener.location.reload(); opener=self; self.close();}';
texte+=' </'+'SCRIPT> <body onKeyPress="Terminer()"> <table border =2 align="center" width=100%"> <tr> <td> <p align="center"> <IMG NAME="diapo" SRC="'+tabselect[0]+'"> </tr> <td> </table>';
texte+=' <script type="text/javascript">tableau=new Array() ; for(i=0;i<window.opener.tabselect.length;i++){tableau[i]= window.opener.tabselect[i];} slideShow();</'+'SCRIPT> </body> <html>';
if(affichages==0) popupdiap=window.open('','','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=yes,fullscreen=1');
else popupdiap=window.open('','','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=yes');
popupdiap.document.clear();
popupdiap.document.write(texte);
popupdiap.document.close();
//setTimeout("boucle()","'+secondes+'");
}