Modifications pour le document TestTransitions
Modifié par Paul Libbrecht le 2013/09/11 12:57
<
>
modifié par Paul Libbrecht (admin)
sur 2013/09/10 14:15
sur 2013/09/10 14:15
modifié par Paul Libbrecht
sur 2013/09/11 21:46
sur 2013/09/11 21:46
Commentaire de modification :
miniature attempt
Résumé
Détails
- Propriétés de la Page
-
- Auteur du document
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. adminPolx1 +XWiki.polx - Contenu
-
... ... @@ -1,17 +1,34 @@ 1 -{{html clean="false"}} 1 + {{velocity}} 2 +#* $xwiki.jsfx.use('js/scriptaculous/scriptaculous.js') 3 +$xwiki.jsfx.use('js/scriptaculous/effects.js') 4 +$xwiki.jsfx.use('js/protoshow/protoshow.js') 5 +## $xwiki.ssx.use('js/protoshow/protoshow.css') 6 +*# 7 +{{/velocity}} 2 2 3 - <div id="myshow"><!-- protoshowcontainer-->4 - ulclass="show"><!-- slideshowitself -->5 - farm3.static.flickr.com/2531/4121218751_ac8bf49d5d.jpg"></li>6 - farm3.static.flickr.com/2597/4121218611_040cd7b3f2.jpg"></li>7 - farm3.static.flickr.com/2610/4148988872_990b6da667.jpg"></li>8 - /ul>9 +{{html clean="false"}} 10 +<div style="height:200; width:200"> 11 +<div id="slideshow1" class="slide"><div><img src="http://scouts.forbach.fr/xwiki/bin/download/Bleus_Camp2013/WebHome/P7270061.JPG?width=200"></div></div> 12 +<div id="slideshow2" class="slide" style="display: none"><div><img src="http://scouts.forbach.fr/xwiki/bin/download/Bleus_Camp2013/WebHome/P7270062.JPG?width=200"></div></div> 13 +<div id="slideshow3" class="slide" style="display: none"><div><img src="http://scouts.forbach.fr/xwiki/bin/download/Bleus_Camp2013/WebHome/P7270060.JPG?width=200"></div></div> 14 +<div id="slideshow4" class="slide" style="display: none"><div>frame 4</div></div> 9 9 </div> 10 - 11 11 <script type="text/javascript"> 12 -document.observe('load', function() { 13 - // reference ID of our show container 14 - var show = new protoShow('myshow'); 15 -}); 17 + 18 + start_slideshow(1, 4, 2000); 19 + 20 + function start_slideshow(start_frame, end_frame, delay) { 21 + setTimeout(switch_slides(start_frame,start_frame,end_frame, delay), delay); 22 + } 23 + 24 + function switch_slides(frame, start_frame, end_frame, delay) { 25 + return (function() { 26 + Effect.Fade('slideshow' + frame); 27 + if (frame == end_frame) { frame = start_frame; } else { frame = frame + 1; } 28 + setTimeout("Effect.Appear('slideshow" + frame + "');", 850); 29 + setTimeout(switch_slides(frame, start_frame, end_frame, delay), delay + 850); 30 + }) 31 + } 32 + 16 16 </script> 17 17 {{/html}}