imgPath = new Array; SiClickGoTo = new Array; version = navigator.appVersion.substring(0,1); if (version >= 3) { =CURRENT_DATE() ORDER BY RAND() LIMIT 0,1"; $sql=" SELECT * FROM spip_bannieres "; $query=mysql_query($sql) or die('erreur sur la requête'); $arr_site=array(); $arr_img=array(); while ($data=mysql_fetch_array($query)) { $arr_site[] =$data[site]; $arr_img[] =$data[image]; } $num_row=mysql_num_rows($query); $j=0; /// while ($data=mysql_fetch_array($query)) { for($j=0; $j<$num_row; $j++) { $k=$j+1 ?> i = new Image; i.src = 'IMG/'; SiClickGoTo[] = ""; imgPath[] = i.src; } a = 0; function StartAnim() { document.write('Menu'); defilimg(); } function defilimg() { if (a ==) { a = 0; } if (version >= 3) { document.defil.src = imgPath[a]; tempo3 = setTimeout("defilimg()",3000); a++; } } function ImgDest() { ///document.location.href = SiClickGoTo[a-1]; document.location.href="trait_clic.php?my_url="+SiClickGoTo[a-1]; }