2 * Voir : http://developer.mozilla.org/fr/docs/R%C3%A9f%C3%A9rence_du_DOM_Gecko:Introduction#DOM_et_JavaScript
3 * et : http://developer.mozilla.org/fr/docs/R%C3%A9f%C3%A9rence_du_DOM_Gecko:element
7 * Callback appelé lorsque un film est clické.
8 * Affiche ou cache les informations détaillés pour ce film.
10 function detailFilm(id
)
12 var detail
= document
.getElementById("detail"+id
)
14 if (detail
.style
.visibility
== "visible")
16 detail
.style
.visibility
= "hidden"
17 detail
.style
.position
= "absolute"
21 detail
.style
.visibility
= "visible"
22 detail
.style
.position
= "relative"
27 * Effectue une recherche, n'affiche que les films qui contiennent le motif recherché.
29 function doRecherche()
31 var motif
= document
.getElementById("recherche").value
33 var liste
= document
.getElementById("liste")
34 var lignes
= liste
.childNodes
35 for(i
= 0; i
< lignes
.length
; i
++)
37 var titre
= lignes
[i
].getElements