FORUM Tom's Hardware » Programmation » HTML / Javascript » création d'un diaporama
 

création d'un diaporama

Il y a 266 utilisateurs connus et inconnus. Pour voir la liste des connectés connus, cliquez ici
Ajouter une réponse



 Mot :   Pseudo :  
 
Bas de page
Auteur
 Sujet : création d'un diaporama
 
Plus d'informations

Slt tout le monde,
 
Je suis en train de créer un site et je voudrais faire apparaitre un diaporama que j'ai réalisé avec IrfanView, j'obtiens donc un dossier en .exe.
 
Quelqu'un pourrait m'indiquer la formule à utiliser pour les faire apparaitre sur mon site.
 
Merci d'avance ;)

Profil : Pointeur
Plus d'informations

c'est pas avec un exe que ca fonctionnera :o
 
faut faire ca via js
et la je te laisse chercher :o


---------------
Da Bidz Triad©®™: Bidz Interceptor
.:: Smileyz version 4.2 [050625]::. -- Code source disponible sous licence GPL.
[u
Plus d'informations

Ok merci pour l'info, jvais rechercher ça...  :)

Plus d'informations

Excuse Kangol, tu pourrais pas m'aider un peu, jsuis un peu perdu avec le JavaScript :pt1cable:  
 
Merci

zeb
Profil : Modérateur libre
Plus d'informations

M'enfin.
Si tu as créé un exécutable binaire avec un logiciel, tu peux toujours le proposer au téléchargement, mais c'est ridicule :
1°) Je ne télécharge jamais un exécutable, même si on m'assure que c'est inoffensif.
2°) Cet exécutable ne peut fonctionner que sur un système équivalent au tien. (Win / Mac / Linux ?)
 
Tu ne peux pas lui faire défiler tes photos sur internet.
 
Il faut passer par d'autres moyens (le JavaScript en est un). Mais on ne s'improvise pas développeur de site web comme ça. En fait si, mais cela nécessite un engagement personnel important.
 
Il existe des solutions toutes faites pour site perso. Je pense notamment à des diaporamas en PHP.
 
Il existe aussi des sites à qui tu confies tes photos et qui en font un diaporama. Mais ce n'est plus ton site à toi.

Profil : Pointeur
Plus d'informations

meme les diaporamas en php utilisent le javascript (meme s'il y a moyen de s'en passer)
 
je me demande meme s'il en existe des diaporamas sans js (ou autres joyeusetés coté client) ...


---------------
Da Bidz Triad©®™: Bidz Interceptor
.:: Smileyz version 4.2 [050625]::. -- Code source disponible sous licence GPL.
[u
Plus d'informations

Slt,
 
Merci pour vos réponses, j'ai ici une formule que j'ai appliquée, le problème c'est que je ne vois pas les photos, est ce que vous voyez une erreur???
 
<head>
<!-- DEBUT DU SCRIPT SLIDESHOW-->
 
<script>
// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this header
// NS4-6,IE4-6
// Fade effect only in IE; degrades gracefully
 
 
// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 5000
 
// Duration of crossfade (seconds)
var crossFadeDuration = 3
 
// Specify the image files
var Pic = new Array() // don't touch this
// to add more images, just continue
// the pattern, adding to the array below
 
Pic[0] = '1.gif'
Pic[1] = '2.gif'
Pic[2] = '3.gif'
Pic[3] = '4.gif'
Pic[4] = '5.gif'
 
 
var t
var j = 0
var p = Pic.length
 
var preLoad = new Array()
for (i = 0; i < p; i++){
preLoad[i] = new Image()
preLoad[i].src = Pic[i]
}
 
function runSlideShow(){
if (document.all){
document.images.SlideShow.style.filter="blendTrans(duration=2)"
document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
document.images.SlideShow.filters.blendTrans.Apply()  
}
document.images.SlideShow.src = preLoad[j].src
if (document.all){
document.images.SlideShow.filters.blendTrans.Play()
}
j = j + 1
if (j > (p-1)) j=0
t = setTimeout('runSlideShow()', slideShowSpeed)
}
</script>
<!-- FIN DU SCRIPT SLIDESHOW--></head>
 
<body><!-- DEBUT DU SCRIPT -->
<body onload="runSlideShow()">
<!-- FIN DU SCRIPT -->
 
 
<!-- DEBUT DU SCRIPT SLIDESHOW-->
<p align="center"><table border="0" cellpadding="0" cellspacing="0">
<tr>
<td id="VU" height=150 width=150>
<img src="1.gif" name='SlideShow' width=150 height=150></td>
</tr>
</table></p>
<!-- FIN DU SCRIPT SLIDESHOW--></body>
 
Merci pour votre aide :)

zeb
Profil : Modérateur libre
Plus d'informations

http://site.voila.fr/zulu-echo-bravo/img/balisecodeppc.png

Plus d'informations

Code :
  1. <head>
  2. <!-- DEBUT DU SCRIPT SLIDESHOW-->
  3. <script>
  4. // (C) 2000 www.CodeLifter.com  
  5. // http://www.codelifter.com  
  6. // Free for all users, but leave in this header  
  7. // NS4-6,IE4-6  
  8. // Fade effect only in IE; degrades gracefully  
  9. // Set slideShowSpeed (milliseconds)  
  10. var slideShowSpeed = 5000
  11. // Duration of crossfade (seconds)  
  12. var crossFadeDuration = 3
  13. // Specify the image files  
  14. var Pic = new Array() // don't touch this  
  15. // to add more images, just continue  
  16. // the pattern, adding to the array below  
  17. Pic[0] = '1.gif'
  18. Pic[1] = '2.gif'
  19. Pic[2] = '3.gif'
  20. Pic[3] = '4.gif'
  21. Pic[4] = '5.gif'
  22. var t
  23. var j = 0
  24. var p = Pic.length
  25. var preLoad = new Array()
  26. for (i = 0; i < p; i++){
  27. preLoad[i] = new Image()
  28. preLoad[i].src = Pic[i]
  29. }
  30. function runSlideShow(){
  31. if (document.all){
  32. document.images.SlideShow.style.filter="blendTrans(duration=2)"
  33. document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
  34. document.images.SlideShow.filters.blendTrans.Apply() 
  35. }
  36. document.images.SlideShow.src = preLoad[j].src
  37. if (document.all){
  38. document.images.SlideShow.filters.blendTrans.Play()
  39. }
  40. j = j + 1
  41. if (j > (p-1)) j=0
  42. t = setTimeout('runSlideShow()', slideShowSpeed)
  43. }
  44. </script>
  45. <!-- FIN DU SCRIPT SLIDESHOW--></head>
  46. <body><!-- DEBUT DU SCRIPT -->
  47. <body onload="runSlideShow()">
  48. <!-- FIN DU SCRIPT -->
  49. <!-- DEBUT DU SCRIPT SLIDESHOW-->
  50. <p align="center"><table border="0" cellpadding="0" cellspacing="0">
  51. <tr>
  52. <td id="VU" height=150 width=150>
  53. <img src="1.gif" name='SlideShow' width=150 height=150></td>
  54. </tr>
  55. </table></p>
  56. <!-- FIN DU SCRIPT SLIDESHOW--></body>


 
Merci

Profil : Pointeur
Plus d'informations

lis les lignes 20 et 21 :o


---------------
Da Bidz Triad©®™: Bidz Interceptor
.:: Smileyz version 4.2 [050625]::. -- Code source disponible sous licence GPL.
[u
Plus d'informations

j'ai lu et traduit mais je ne vois toujours pas, désolé

zeb
Profil : Modérateur libre
Plus d'informations

Code :
  1. Pic[5] = '5.gif'
  2. Pic[6] = '6.gif'
  3. Pic[7] = '7.gif'
  4. Pic[8] = '8.gif'
  5. Pic[9] = '9.gif'

Après je ne sais plus [:spamafote]

Plus d'informations

Va voir du coté de Copermine photo Gallery ;)

Profil : Pointeur
Plus d'informations

encore faut il avoir php a sa disposition ...


---------------
Da Bidz Triad©®™: Bidz Interceptor
.:: Smileyz version 4.2 [050625]::. -- Code source disponible sous licence GPL.
[u
Plus d'informations

Merci pour vos réponses,  :) je vous dirais que c'est un peu la galère pour faire ce diaporama, j'ai utilisé plusieurs formules mais à chaque fois je ne vois pas les images, mais une croix... :??:  

Plus d'informations

J'ai repris le script initial en affichant les images d'une manière alternée sur trois vignettes successives
 

Code :
  1. <!-- DEBUT DU SCRIPT SLIDESHOW-->
  2. <script>
  3. // (C) 2000 www.CodeLifter.com
  4. // http://www.codelifter.com
  5. // Free for all users, but leave in this header
  6. // NS4-6,IE4-6
  7. // Fade effect only in IE; degrades gracefully
  8. // Chemin vers le répertoire des images
  9. var chemin = "slide/";
  10. // Set slideShowSpeed (milliseconds)
  11. var slideShowSpeed = 2000
  12. // Effet de transition Fonctionne seulement avec IE - Duration of crossfade (seconds)
  13. var crossFadeDuration = 1
  14. // Un tableau pour stocker le nom des images à afficher
  15. var Pic = new Array()
  16. // La liste des noms de fichiers images
  17. // La variable Pic de 0 à n
  18. Pic[0] = 'visuel1.jpg'
  19. Pic[1] = 'visuel2.jpg'
  20. Pic[2] = 'visuel3.jpg'
  21. Pic[3] = 'visuel4.jpg'
  22. Pic[4] = 'visuel5.jpg'
  23. Pic[5] = 'visuel6.jpg'
  24. Pic[6] = 'visuel7.jpg'
  25. Pic[7] = 'visuel8.jpg'
  26. Pic[8] = 'visuel9.jpg'
  27. Pic[9] = 'visuel10.jpg'
  28. Pic[10] = 'visuel1.jpg'      // Première image répétée pour ScndLoad
  29. Pic[11] = 'visuel2.jpg'      // Deuxième image répétée pour ThrdLoad
  30. //
  31. var t
  32. // Compteur des images
  33. var j = 0             // pour PreLoad
  34. var k = 0             // pour ScndLoad
  35. var m = 0             // pour ThrdLoad
  36. // Nombre d'images dans le diaporama
  37. var p = Pic.length
  38. // Tableau Preload pour les images 0 à n-1 -- 1ere Vignette
  39. var preLoad = new Array()
  40. for (i = 0; i < p-2; i++){
  41. preLoad[i] = new Image()
  42. preLoad[i].src = chemin + Pic[i]
  43. }
  44. // Tableau Scndload pour les images 1 à n  -- 2e Vignette
  45. var scndLoad = new Array()
  46. for (i = 0; i < p-2; i++){
  47. scndLoad[i] = new Image()
  48. scndLoad[i].src = chemin + Pic[(i+1)]
  49. }
  50. // Tableau Thrdload pour les images 1 à n  -- 3e Vignette
  51. var thrdLoad = new Array()
  52. for (i = 0; i < p-2; i++){
  53. thrdLoad[i] = new Image()
  54. thrdLoad[i].src = chemin + Pic[(i+2)]
  55. }
  56. // ---------------------------------------------------------------------
  57. // ---------- La fonction runSlideShow ---------------
  58. // -------- Le slide est en boucle -------------------------------------
  59. function runSlideShow(){
  60. // ============= 1ere Vignette : SlideShow pour le tableau preload[j]
  61. if (document.all){
  62. document.images.SlideShow.style.filter="blendTrans(duration=2)"
  63. document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
  64. document.images.SlideShow.filters.blendTrans.Apply() 
  65. }
  66. document.images.SlideShow.src = preLoad[j].src
  67. if (document.all){
  68. document.images.SlideShow.filters.blendTrans.Play()
  69. }
  70. j = j + 1
  71. // ============= 2e Vignette : Slide pour le tableau scndload[k]
  72. if (document.all){
  73. document.images.Slide.style.filter="blendTrans(duration=2)"
  74. document.images.Slide.style.filter="blendTrans(duration=crossFadeDuration)"
  75. document.images.Slide.filters.blendTrans.Apply()
  76. }
  77. document.images.Slide.src = scndLoad[k].src
  78. if (document.all){
  79. document.images.Slide.filters.blendTrans.Play()
  80. }
  81. k = k + 1
  82. // ============= 3e Vignette : Sli pour le tableau thrdload[m]
  83. if (document.all){
  84. document.images.Sli.style.filter="blendTrans(duration=2)"
  85. document.images.Sli.style.filter="blendTrans(duration=crossFadeDuration)"
  86. document.images.Sli.filters.blendTrans.Apply()
  87. }
  88. document.images.Sli.src = thrdLoad[m].src
  89. if (document.all){
  90. document.images.Sli.filters.blendTrans.Play()
  91. }
  92. m = m + 1
  93. // -------- Remise à zéro des compteurs pour n-3 images
  94. if (m > p-3){j = 0; k = 0; m = 0}
  95. // Fin RAZ
  96. t = setTimeout('runSlideShow()', slideShowSpeed)
  97. }
  98. </script>
  99. <!-- FIN DU SCRIPT SLIDESHOW-->
  100. <!-- DEBUT DU SCRIPT -->
  101. <body onload="runSlideShow()">
  102. <!-- FIN DU SCRIPT -->
  103. <!-- DEBUT DU SCRIPT SLIDESHOW-->
  104. <p align="center">
  105. <table border="0" cellpadding="0" cellspacing="0">
  106.        <tr>
  107.            <td id="VU" width="190" height="200">
  108.            <img src="slide/visuel1.jpg" name='SlideShow' width="190" height="200"></td>
  109.            <td id="VU" width="190" height="200">
  110.            <img src="slide/visuel2.jpg" name='Slide' width="190" height="200"></td>
  111.            <td id="VU" width="190" height="200">
  112.            <img src="slide/visuel3.jpg" name='Sli' width="190" height="200"></td>
  113.        </tr>
  114. </table>
  115. </p><br>
  116. <!-- FIN DU SCRIPT SLIDESHOW-->
  117. </body>


Aller à :
Ajouter une réponse
  FORUM Tom's Hardware » Programmation » HTML / Javascript » création d'un diaporama
 

Annonces Google
Publicité
Les téléchargements