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 37
| function film(titre,annee,genre,lien,affiche)
{
this.titre = titre;
this.annee = annee;
this.genre = genre;
this.lien = lien;
this.affiche = affiche;
}
var video = new Array();
video[0] = new film('4 minutes',2006,'drame','4 minutes.avi','images/4 minutes.jpg');
video[1] = new film('7 vies',2008,'drame','7 vies.avi','images/7 vies.jpg');
video[2] = new film('7h58 ce samedi là',2007,'drame','7h58 ce samedi la.avi','images/7h58 ce samedi là.jpg');
video[3] = new film('10,000 BC',2008,'aventure','10 000 BC.avi','images/10 000 BC.jpg');
video[4] = new film('11ème heure',2007,'documentaire','11e heure.avi','images/11ème heure.jpg');
video[5] = new film('11ème heure',2007,'documentaire','11e heure.avi','images/11ème heure.jpg');
function changeContenu()
{
document.write("<table>");
for (i=0; i<6; i=i+3)
{
document.write("<tr>");
document.write("<td>");
document.write("<img scr = "+video[i].affiche+"/>"; //marche pas
document.write("</td>");
document.write("<td>");
document.write(video[i+1].affiche); //marque bien 10 000 BC.jpg par exemple
document.write("</td>");
document.write("<td>");
document.write(video[i+2].affiche);
document.write("</td>");
document.write("</tr>");
}
document.write("</table>");
} |
Partager