Salut, j'ai trouver ce code sur le net mais je voudrai qu'il soit sur la meme ligne que mon tchatt (xat) c'est a dire cote a cote ! de plus quand je poste le code tel qu'il est tout seul rien n'apparait sur mon site !
<head>
<script type="text/javascript">
var imgs=new Array();
imgs[0]="http://www.mac4ever.com/images/images_actu/42287_62_iphone_4g_concept.jpg";
imgs[1]="http://www.blogiphone.fr/wp-content/uploads/2009/02/iphone-4g-3.jpg";
imgs[2]="http://demonter.net/wp-content/uploads/2009/11/iphone-4g-concept3.jpg";
imgs[3]="exemples/photos/4.jpg";
imgs[4]="exemples/photos/5.jpg";
imgs[5]="exemples/photos/6.jpg";
var cpt=0;
function changeimages()
{
document.getElementById("ima").src=imgs[cpt];
cpt++;
if(cpt>=imgs.length) cpt=0;
setTimeout("changeimages()",1500);
}
function changeimages2()
{
document.getElementById("ima").src=imgs[cpt];
cpt--;
if(cpt<=0) cpt=imgs.length;
}
</script>
</head>
<body onLoad="changeimages()">
<p>
<img src="" onHover="clearTimeout()" id="ima" />
<a href="#" onclick="changeimages2()"><img src="image d'une fleche gauche" /></a>
<a href="#" onclick="changeimages()"><img src="image d'une fleche droite" /></a>
</p>
</body>
Merci
Rémi STEINMANN
