Code pour diaporama simple sur site.

Résolu
dreamcatcher Messages postés 193 Statut Membre -  
psystorm65 Messages postés 2 Statut Membre -
Bonjour,

S'il vous plait, quelqu'un pourrait il me donner le code html à mettre sur ma page pour insérer un diaporama silmple, le plus simple qui soit, sans fioriture ? Il figurerait sur ma banniere de site, donc il sera de petite taille.

Merci d'avance pour votre aide.
Configuration: Windows XP
Internet Explorer 7.0

17 réponses

  1. RAD ZONE Messages postés 5362 Statut Contributeur 1 360
     
    SALUT

    VOILA ;-))

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
      <head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
        <title>RAD ZONE Webcreation
        </title>
        <meta name="author" content="http://radservebeer.free.fr">
        <meta name="generator" content="PSPad editor, www.pspad.com">
      </head>
      <body>
    <script language="JavaScript" type="text/javascript">
    <!--
    //chemin vers les images
    src = ["img1.jpg", "img2.jpg", "img3.jpg", "img4.jpg"]
    
    //les liens sur chaque images
    url = ["http://radservebeer.free.fr", "http://rad2.free.fr", "https://www.commentcamarche.net/", "https://www.google.fr/?gws_rd=ssl"]
    
    
    //temp de chaque image
    duration = 4;
    
    
    //ne rien toucher en dessous 
    ads=[]; ct=0;
    function switchAd() {
    var n=(ct+1)%src.length;
    if (ads[n] && (ads[n].complete || ads[n].complete==null)) {
    document["Ajout_Image"].src = ads[ct=n].src;
    }
    ads[n=(ct+1)%src.length] = new Image;
    ads[n].src = src[n];
    setTimeout("switchAd()",duration*1000);
    }
    function liens(){
    location.href = url[ct];
    } onload = function(){
    if (document.images)
    switchAd();
    }
    //-->
    </script>
        <div align="center">
          <a href="javascript:liens();" onmouseover="status=url[ct];return true;" onmouseout="status=''">
            <img name="Ajout_Image" src="img1.jpg" border="0" id="Ajout_Image"></a>
        </div>
      </body>
    </html>


    RAD
    15
    1. dreamcatcher Messages postés 193 Statut Membre
       
      Salut,

      Merci beaucoup pour le code.

      Pourquoi dis tu qu'il ne faut pas modifier la partie du dessous ? Pourquoi y a t'il des liens vers un site ?

      Merci encore.
      0
    2. cmcjma
       
      Bonjour RAD,
      I cannot remember where I downloaded your css for watching pictures through miniatures.
      First of all, thanks for this wonderful code that is exactly what I was looking for.
      I just have a slight problem.
      On a same page I use multiple galleries locations where I can watch pictures.
      On these different locations, I have to use different galleries sizes (some with one column, some with 2, 3 or 4 columns).
      The problem is when the picture is displayed on a 1 or 2 gallery columns, the thumbs on 3 or 4 gallery columns are (partially) covering the displayed picture.
      What I would like is to have the displayed picture always on forefront, and never be covered by thumbs.
      Any idea to to code that?
      I thank you in advance.
      0