diff options
Diffstat (limited to 'files/fr/web/api/document/images/index.html')
| -rw-r--r-- | files/fr/web/api/document/images/index.html | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/files/fr/web/api/document/images/index.html b/files/fr/web/api/document/images/index.html index 56ae7fba48..1b127eb980 100644 --- a/files/fr/web/api/document/images/index.html +++ b/files/fr/web/api/document/images/index.html @@ -6,23 +6,28 @@ tags: translation_of: Web/API/Document/images --- <p>{{ ApiRef() }}</p> -<h2 id="R.C3.A9sum.C3.A9" name="R.C3.A9sum.C3.A9">Résumé</h2> -<p><a class="internal" href="/fr/DOM/document.images" title="Fr/DOM/Document.images"><code>document.images</code></a> renvoie une collection des images du document HTML courant.</p> -<h2 id="Syntaxe" name="Syntaxe">Syntaxe</h2> -<pre class="eval"><a class="internal" href="/fr/DOM/HTMLCollection" title="fr/DOM/HTMLCollection"><em>HTMLCollection</em></a> = <a class="internal" href="/fr/DOM/document.images" title="Fr/DOM/Document.images">document.images</a> -</pre> -<h2 id="Exemple" name="Exemple">Exemple</h2> -<pre class="eval">var listeimg = document.images; + +<p><code>document.images</code> renvoie une collection des images du document HTML courant.</p> + +<h2 id="Syntaxe">Syntaxe</h2> + +<pre class="brush: js">HTMLCollection =document.images</pre> + +<h2 id="Exemple">Exemple</h2> + +<pre class="brush:js">var listeimg = document.images; for(var i = 0; i < listeimg.length; i++) { if(listeimg[i] == "banner.gif") { // l'image banner a été trouvée } } </pre> -<h2 id="Notes" name="Notes">Notes</h2> -<p><a class="internal" href="/fr/DOM/document.images" title="Fr/DOM/Document.images"><code>document.images</code></a> fait partie du DOM HTML, et fonctionne uniquement pour les document HTML.</p> -<h2 id="Sp.C3.A9cification" name="Sp.C3.A9cification">Spécification</h2> + +<h2 id="Notes">Notes</h2> + +<p><a href="/fr/DOM/document.images"><code>document.images</code></a> fait partie du DOM HTML, et fonctionne uniquement pour les document HTML.</p> +<h2 id="Sp.C3.A9cification">Spécification</h2> <ul> - <li>Spécification DOM Level 2 HTML : <a class="external" href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-90379117">HTMLDocument.images</a></li> - <li>Traduction en français (non normative) : <a class="external" href="http://www.yoyodesign.org/doc/w3c/dom2/html/html.html#ID-90379117">HTMLDocument.images</a></li> + <li>Spécification DOM Level 2 HTML : <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-90379117">HTMLDocument.images</a></li> + <li>Traduction en français (non normative) : <a href="http://www.yoyodesign.org/doc/w3c/dom2/html/html.html#ID-90379117">HTMLDocument.images</a></li> </ul> |
