Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente Dernière révision Les deux révisions suivantes | ||
wiki:ressources:narration-interactive [2020/11/20 19:09] damien.muti [Programmation HTML/CSS : Étude d'un exemple] |
wiki:ressources:narration-interactive [2020/11/20 19:21] damien.muti [Programmation HTML/CSS : Étude d'un exemple] |
||
---|---|---|---|
Ligne 333: | Ligne 333: | ||
< | < | ||
- | node.onclick=function() | + | node.onclick=function() { |
- | { | + | |
this.className = (this.className == " | this.className = (this.className == " | ||
} | } | ||
</ | </ | ||
- | Lorsqu' | + | Lorsqu' |
< | < | ||
this.className = (this.className == " | this.className = (this.className == " | ||
</ | </ | ||
- | **Si** le nom de la classe (// | + | **Si** le nom de la classe (// |
+ | === La page d' | ||
+ | Lorsqu' | ||
+ | {{ : | ||
+ | Cette page contient un seul bouton //" | ||
+ | |||
+ | == Code HTML == | ||
+ | Le code HTML est le suivant : | ||
+ | < | ||
+ | < | ||
+ | <html xmlns=" | ||
+ | < | ||
+ | <meta http-equiv=" | ||
+ | < | ||
+ | <style type=" | ||
+ | #text { | ||
+ | vertical-align: | ||
+ | border: 0px; | ||
+ | width: | ||
+ | margin-left: | ||
+ | margin-right: | ||
+ | margin-bottom: | ||
+ | } | ||
+ | body { | ||
+ | background: url(0bg.gif) fixed repeat-x bottom; | ||
+ | margin-bottom: | ||
+ | margin-left: | ||
+ | margin-top: | ||
+ | margin-right: | ||
+ | |||
+ | } | ||
+ | </ | ||
+ | <link rel=" | ||
+ | |||
+ | </ | ||
+ | |||
+ | < | ||
+ | |||
+ | < | ||
+ | < | ||
+ | |||
+ | < | ||
+ | <div id=" | ||
+ | <img src=" | ||
+ | <a href=" | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | On remarque que le bouton " | ||
+ | < | ||
+ | <a href=" | ||
+ | </ | ||
+ | |||
+ | Ce lien renvoie vers la page " | ||
===== Ressources et exemples ===== | ===== Ressources et exemples ===== |