<span class="va">b</span>.<span class="at">connect</span>()<span class="op">;</span>
<span class="op">}</span></code></pre></div>
<p>Fonction qui sera liée à l'<em>événement</em> <code>onclick</code> d'un bouton proposant justement le chargement de l'animation...</p>
-<div class="sourceCode"><pre class="sourceCode html"><code class="sourceCode html"><span class="kw"><div</span><span class="ot"> id=</span><span class="st">"anim2"</span>
-<span class="ot"> style=</span><span class="st">"margin:10px auto;padding:10px;width:354px;border:2px solid #AAA;border-radius:4px"</span><span class="kw">></span>
- <span class="kw"><img</span><span class="ot"> src=</span><span class="st">"../ellipsographe/svg/ellipsographe-1.svg"</span><span class="ot"> alt=</span><span class="st">"animation1"</span><span class="ot"> style=</span><span class="st">"width:330px;height:240px"</span><span class="kw">/></span>
+<div class="sourceCode"><pre class="sourceCode html"><code class="sourceCode html"><span class="kw"><div</span><span class="ot"> id=</span><span class="st">"anim2"</span><span class="ot"> style=</span><span class="st">"..."</span><span class="kw">></span>
+ <span class="kw"><img</span><span class="ot"> src=</span><span class="st">"../ellipsographe/svg/ellipsographe-1.svg"</span><span class="ot"> alt=</span><span class="st">"animation1"</span><span class="ot"> style=</span><span class="st">"..."</span><span class="er">"</span><span class="kw">/></span>
<span class="kw"><div</span><span class="ot"> class=</span><span class="st">"message"</span><span class="ot"> id=</span><span class="st">"anim2_message"</span><span class="kw">></span>Ellipsographe<span class="kw"></div></span>
- <span class="kw"><div</span><span class="ot"> id=</span><span class="st">"anim2_boutons"</span><span class="kw">><button</span><span class="ot"> onclick=</span><span class="st">"charge_anim2();"</span><span class="kw">></span>Charger l'animation<span class="kw"></button></div></span>
+ <span class="kw"><div</span><span class="ot"> id=</span><span class="st">"anim2_boutons"</span><span class="kw">></span>
+ <span class="kw"><button</span><span class="ot"> onclick=</span><span class="st">"charge_anim2();"</span><span class="kw">></span>Charger l'animation<span class="kw"></button></span>
+ <span class="kw"></div></span>
<span class="kw"></div></span></code></pre></div>
<p>Dans le même temps, le <em>style</em> des éléments englobants a été adapté.</p>
<div id="anim2" style="margin:10px auto;padding:10px;width:354px;border:2px solid #AAA;border-radius:4px">
justement le chargement de l'animation...
~~~~~~~ { .html }
-<div id="anim2"
- style="margin:10px auto;padding:10px;width:354px;border:2px solid #AAA;border-radius:4px">
- <img src="../ellipsographe/svg/ellipsographe-1.svg" alt="animation1" style="width:330px;height:240px"/>
+<div id="anim2" style="...">
+ <img src="../ellipsographe/svg/ellipsographe-1.svg" alt="animation1" style="...""/>
<div class="message" id="anim2_message">Ellipsographe</div>
- <div id="anim2_boutons"><button onclick="charge_anim2();">Charger l'animation</button></div>
+ <div id="anim2_boutons">
+ <button onclick="charge_anim2();">Charger l'animation</button>
+ </div>
</div>
~~~~~~~
}
</script>
-<div id="anim3" style="margin:10px auto;padding:10px;width:354px;border:2px solid #AAA;border-radius:4px">
+<div id="anim3" style="margin:10px auto;padding:10px;width:354px;border:2px solid #AAA;border-radius:4px">
<img src="../ellipsographe/svg/ellipsographe-1.svg" alt="animation1" style="width:330px;height:240px"/>
<div class="message" id="anim3_message">Ellipsographe</div>
<div id="anim3_boutons"><button onclick="charge_anim3()">Charger l'animation</button></div>