Aller au contenu

script diaporama


oz999

Sujets conseillés

bonjour, j'ai un script pour afficher un diaporama, mais il ne fonctionne que sous IE :(

comment le modifier pour qu'il soit compatible avec mozilla et netscape?

je vous met le code

en fait il se décompose en 2 fichiers:

un 1er, correspondant au bandeau où défile les vignettes

un 2nd qui affiche la photo selectionné par clic.

---1---

<html>
<head>
<script>
function afficher(NomFichier) {
parent.photo.src=NomFichier + ".jpg";
}
</script>
</head>
<body>
 <img src="photo1.jpg" width="152" height="100" onClick="afficher('photo1')"><br>
 <img src="photo2.jpg" width="152" height="100" onClick="afficher('photo2')"><br>
 <img src="photo3.jpg" width="152" height="100" onClick="afficher('photo3')"><br>
 <img src="photo4.jpg" width="152" height="100" onClick="afficher('photo4')"><br>
 <img src="photo5.jpg" width="152" height="100" onClick="afficher('photo5')"><br>
 <img src="photo6.jpg" width="152" height="100" onClick="afficher('photo6')"><br>
 <img src="photo7.jpg" width="152" height="100" onClick="afficher('photo7')">
</body>
</html>

---2----

<html>
<head>
</head>
<body>
<p>Cliquez sur une vignette </p>
<table width="740" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><iframe src="bandeaugauche.htm" width="172" marginwidth="0" height="369" marginheight="0" scrolling="yes" frameborder="0">  </iframe></td>
<td><img src="photo1.jpg" width="556" height="369" id="photo"></td>
</tr>
</table>
</body>
</html>

je pencherai vers le fait que la balise <iframe> soitle pb, mais j'en suis pas sur

merci pour votre aide

Modifié par oz999
Lien vers le commentaire
Partager sur d’autres sites

Veuillez vous connecter pour commenter

Vous pourrez laisser un commentaire après vous êtes connecté.



Connectez-vous maintenant
×
×
  • Créer...