Ah, le détail qui tue...
[svganimation.git] / doc / page.md
index 9e3503b..0cffee1 100644 (file)
@@ -9,7 +9,7 @@
     player.connect();
   }
   function charge_anim2() {
-    var a = new Animation('anim2');
+    var a = new Animation('anim2','../ellipsographe/svg/ellipsographe-',1,91);
     a.loopOnload();
     var b = new Controle(a);
     b.connect();
@@ -206,7 +206,7 @@ Il est possible de différer le chargement de l'animation en créant une fonctio
 
 ~~~~~~~ { .javascript }
 function charge_anim2() {
-  var a = new Animation('anim2');
+  var a = new Animation('anim2','svg/ellipsographe-',1,91);
   a.loopOnload();
   var b = new Controle(a);
   b.connect();
@@ -230,7 +230,7 @@ On peut en profiter pour adapter le *style* des éléments englobants.
 <div id="anim2"  style="margin:10px auto;padding:10px;width:350px;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="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>
 
 

Licence Creative Commons Les fichiers de Syracuse sont mis à disposition (sauf mention contraire) selon les termes de la
Licence Creative Commons Attribution - Pas d’Utilisation Commerciale - Partage dans les Mêmes Conditions 4.0 International.