Modifications pour le document TestTransitions
Modifié par Paul Libbrecht le 2013/09/11 12:57
<
>
modifié par Paul Libbrecht
sur 2013/09/11 21:49
sur 2013/09/11 21:49
modifié par Paul Libbrecht (admin)
sur 2013/09/10 13:59
sur 2013/09/10 13:59
Commentaire de modification :
x
Résumé
Détails
- Propriétés de la Page
-
- Auteur du document
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. polx1 +XWiki.adminPolx - Contenu
-
... ... @@ -1,14 +1,15 @@ 1 -{{html clean="false"}} 2 - blablablla3 -<div style="height:500 px; width:500px; float:right">4 -<div id="slideshow1" class="slide"><div><img src=" http://scouts.forbach.fr/xwiki/bin/download/Bleus_Camp2013/WebHome/P7270061.JPG?width=300"></div></div>5 -<div id="slideshow2" class="slide" style="display: none"><div><img src=" http://scouts.forbach.fr/xwiki/bin/download/Bleus_Camp2013/WebHome/P7270062.JPG?width=300"></div></div>6 -<div id="slideshow3" class="slide" style="display: none"><div><img src=" http://scouts.forbach.fr/xwiki/bin/download/Bleus_Camp2013/WebHome/P7270060.JPG?width=300"></div></div>7 -<div id="slideshow4" class="slide" style="display: none"><div> frame1 +{{html clean="false"}} 2 + 3 +<div style="height:500"> 4 +<div id="slideshow1" class="slide"><div><img src="/xwiki/bin/download/Louveteaux_Camp2013/Photos/DSC05093.JPG?width=300" width="300"></div></div> 5 +<div id="slideshow2" class="slide" style="display: none"><div><img src="/xwiki/bin/download/Louveteaux_Camp2013/Photos/DSC05093.JPG?width=300" width="300"></div></div> 6 +<div id="slideshow3" class="slide" style="display: none"><div><img src="/xwiki/bin/download/Louveteaux_Camp2013/Photos/DSC05019.JPG?width=300" width="300"></div></div> 7 +<div id="slideshow4" class="slide" style="display: none"><div><img src="/xwiki/bin/download/Louveteaux_Camp2013/Photos/DSC04972.JPG?width=300" width="300"></div></div> 8 8 </div> 9 + 9 9 <script type="text/javascript"> 10 10 11 - start_slideshow(1, 4, 5000);12 + start_slideshow(1, 4, 2000); 12 12 13 13 function start_slideshow(start_frame, end_frame, delay) { 14 14 setTimeout(switch_slides(start_frame,start_frame,end_frame, delay), delay); ... ... @@ -15,13 +15,32 @@ 15 15 } 16 16 17 17 function switch_slides(frame, start_frame, end_frame, delay) { 18 - return (function() { 19 + // return (function() { 20 + if (console) console.log("Switching."); 19 19 Effect.Fade('slideshow' + frame); 20 20 if (frame == end_frame) { frame = start_frame; } else { frame = frame + 1; } 21 21 setTimeout("Effect.Appear('slideshow" + frame + "');", 850); 22 22 setTimeout(switch_slides(frame, start_frame, end_frame, delay), delay + 850); 23 - }) 25 + // }) 24 24 } 25 25 26 26 </script> 29 + 30 + 31 +div class="fadein"> 32 + <img src="http://farm3.static.flickr.com/2531/4121218751_ac8bf49d5d.jpg"> 33 + <img src="http://farm3.static.flickr.com/2597/4121218611_040cd7b3f2.jpg"> 34 + <img src="http://farm3.static.flickr.com/2610/4148988872_990b6da667.jpg"> 35 +</div> 36 + 37 +<script> 38 +setInterval(function(){ 39 + var imgs = $$('.fadein img'), 40 + visible = imgs.findAll(function(img){ return img.visible(); }); 41 + if(visible.length>1) visible.last().fade({ duration: .3 }); 42 + else imgs.last().appear({ duration: .3, 43 + afterFinish: function(){ imgs.slice(0,imgs.length-1).invoke('show'); } }); 44 +}, 3000); 45 +</script> 46 + 27 27 {{/html}}