Fondu d'image avec Jquery

Fondu d'image avec Jquery - HTML/CSS - Programmation

Marsh Posté le 28-03-2014 à 16:41:00    

Bonjour,
 
Mon script fonctionne (changer d'image à intervalle régulier) mais je voudrais faire un fondu entre chaque image avec jquery. Comment faire ?
 
Merci de votre aide.
slr56
 

Code :
  1. <html>
  2. <head>
  3. </head>
  4. <body>
  5. <img src="1.jpg" width="950" height="120" id="image" />
  6. <script src="jquery.js"></script>
  7. <SCRIPT language="JavaScript" type="text/javascript">
  8. // Mon tableau qui contient toutes tes images.
  9. var images = new Array();
  10. images.push("1.jpg" );
  11. images.push("2.jpg" );
  12. images.push("3.jpg" );
  13. var pointeur = 0;
  14. function ChangerImage(){
  15. document.getElementById("image" ).src = images[pointeur];
  16. if(pointeur < images.length - 1){
  17. pointeur++;
  18. }
  19. else{
  20. pointeur = 0;
  21. }
  22. setTimeout("ChangerImage()", 5000)
  23. }
  24. // Charge la fonction
  25. window.onload = function(){
  26. ChangerImage();
  27. }
  28. </SCRIPT>
  29. </body>
  30. </html>



---------------
Configurations type du moment : https://forum.hardware.fr/hfr/Hardw [...] 1331_1.htm  https://www.jouannetphotographe.com
Reply

Marsh Posté le 28-03-2014 à 16:41:00   

Reply

Marsh Posté le 03-04-2014 à 15:55:57    

Pas d'idée ?


---------------
Configurations type du moment : https://forum.hardware.fr/hfr/Hardw [...] 1331_1.htm  https://www.jouannetphotographe.com
Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed