1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
| <script type="text/javascript">
<!--
var tab = ["http://s1.e-monsite.com/2009/07/30/5549139google400x300-jpg.jpg", "http://s1.e-monsite.com/2009/07/29/6427189pause-cafe-400x300-jpg.jpg", "http://s1.e-monsite.com/2009/07/29/96275985ticoune-400x300-jpg.jpg", "http://s2.e-monsite.com/2010/03/01/64197555freeson400x300-jpg.jpg", "http://s1.e-monsite.com/2009/07/29/20423422colibri-400x300-jpg.jpg", "http://s1.e-monsite.com/2009/07/29/13564138nadia-400x300-jpg.jpg"];
var secondes = 5;
var numero = -1;
var
aleatoire = false;
function changerImage () {
if (aleatoire) {
var n = numero;
while (n == numero) {
n = Math.floor(Math.random() *
tab.length);
}
numero = n;
}
else {
numero++;
if (numero >= tab.length) numero =0;
}
document.getElementById('image1').src =
tab[numero];
setTimeout("changerImage();", secondes*1000);
}
// -->
</script>
<img src="" id="image1" />
<script type="text/javascript">
<!--
changerImage();
// -->
</script> |