begin process at 2012 02 13 13:39:32
  Trouver un code source :
 
dans
 
Accueil > 

Code

 > 

Graphique

 > SLIDE SHOW

SLIDE SHOW


 Information sur la source

Note :
1 / 10 - par 1 personne
1,00 / 10

  • 1

  • 2

  • 3

  • 4

  • 5

  • 6

  • 7

  • 8

  • 9

  • 10
Catégorie :Graphique Niveau :Débutant Date de création :03/06/2002 Date de mise à jour :03/06/2002 04:39:24 Vu :16 741

Auteur : bob3000

Ecrire un message privé
Site perso
Ce membre participe au partage de revenus publicitaires
Commentaire sur cette source (2)
Ajouter un commentaire et/ou une note


 Description

Slide Show en javascript

Source

  • <p align="center"><img name="myPicture" src="img1.gif" width="100" height="57">
  • <script language="JavaScript">
  • var myPix = new Array("img1.gif","img2.gif","img3.gif")
  • var thisPic = 0
  • function doPrevious() {
  • if (document.images && thisPic > 0) {
  • thisPic--
  • document.myPicture.src=myPix[thisPic]
  • }
  • }
  • function doNext() {
  • if (document.images && thisPic < 2) {
  • thisPic++
  • document.myPicture.src=myPix[thisPic]
  • }
  • }
  • </script>
  • <br><small><font face="Verdana"><a href="javascript:doPrevious()">Précédent</a><font color="#FFFFFF">-</font> <a href="javascript:doNext()">Suivant</a></font></small>
<p align="center"><img name="myPicture" src="img1.gif" width="100" height="57">

<script language="JavaScript">
var myPix = new Array("img1.gif","img2.gif","img3.gif")
var thisPic = 0

function doPrevious() {
    if (document.images && thisPic > 0) {
        thisPic--
        document.myPicture.src=myPix[thisPic]
    }
}

function doNext() {
    if (document.images && thisPic < 2) {
        thisPic++
        document.myPicture.src=myPix[thisPic]
    }
}
</script>
<br><small><font face="Verdana"><a href="javascript:doPrevious()">Précédent</a><font color="#FFFFFF">-</font> <a href="javascript:doNext()">Suivant</a></font></small>

 Conclusion

C'est pas de moi mais j'ai trouvé ça sur

http://www.java-scripts.net/

bob3000


 Sources du même auteur

Source avec une capture POPUP SPECIAL(MODAL - MODELESS DIALOG)
EFFET DE CHARGEMENT
INFOS SUR LES UTILISATEURS
FACON LA PLUS FACILE AU MONDE D'ECRIRE LA DATE
COULEUR DE FOND ALEATOIRE + TITRE ALEATOIRE *UPDATED*

 Sources de la même categorie

Source avec Zip Source avec une capture EFFET DE ROTATION A 360° D'IMAGE AVEC ACCELERATION DECELERAT... par kazma
Source avec Zip Source avec une capture PETIT LOGICIEL DE DESSIN, RETOUCHE AVEC CANVAS par kazma
Source avec Zip Source avec une capture CALCULATRICE HEURE par m22001111
Source avec Zip Source avec une capture DRAG & DROP VERS UN CANVAS par kazma
Source avec Zip ROTATION D'UNE IMAGE, ANIMATION par william voirol

Commentaires et avis

Commentaire de meliubaf le 18/06/2008 15:31:28

Pour améliorer un peu :

<html>
<head>
<title>Slide Show Manuel</title>
<script language="JavaScript">
<!--
  var myPix = new Array("img1.gif","img2.gif","img3.gif");
  var thisPic = 0;
  var imgCt = myPix.length - 1;
  
  function chgSlide(direction) {
    if (document.images) {
       thisPic = thisPic + direction
       if (thisPic > imgCt) {
          thisPic = 0
       }
       if (thisPic < 0) {
          thisPic = imgCt
       }
       document.myPicture.src = myPix[thisPic]
    }
  }
//-->
</script>
</head>

<body>
<img name="myPicture" src="img1.gif" width="100" height="57">
<p><a href="javascript:chgSlide(-1)">Précédent</a> / <a href="javascript:chgSlide(+1)">Suivant</a></p>
</body>
</html>

Commentaire de meliubaf le 18/06/2008 16:21:46

ou bien voir mon code SLIDESHOW-MANUEL-AUTOMATIQUE-SIMPLIFIE_47053.aspx

 Ajouter un commentaire




Nos sponsors


Sondage...

CalendriCode

Février 2012
LMMJVSD
  12345
6789101112
13141516171819
20212223242526
272829    

Consulter la suite du CalendriCode

Photothèque

 
Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel (EBArtSoft), Merci à Vincent pour ses précieux conseils.
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés

Google Coop CodeS-SourceS Google Coop CodeS-SourceS
Temps d'éxécution de la page : 1,716 sec (3)

Nous contacter | Annoncer sur CodeS-SourceS | Mentions légales