• Clic et survol

    ..

    Pour tester ce code, j'ai repris mes photos de Vinsobre du 30 janvier dernier.

     

     

     

     

     

     

     

     

     

     

     

     

    Avec l'aide efficace de Stormalo, que d'aucuns connaissent par le forum Ekla, voici un montage où il faut cliquer sur chaque bouton pour afficher l'image correspondante dans le cadre central.
    Le survol de cette image centrale l'agrandira en plein cadre.


    Rappel: mes adresses en bleu sont redimensionnées en 1152x648px par @1152x648.jpg ajouté à l'adresse récupérée dans l'album Ekla, afin de faciliter le transfert mais ce n'est pas indispensable.
    L'adresse que vous récupérerez sera du style:http://ekladata.com/vvxoIDueEXGzcixAW2iSYAXI-Aw.jpg et donc à modifier.


    <div style="width: 60vw; height: 33.75vw; border:0.4vh ridge white; background: linear-gradient(to bottom, rgba(100,0,0,0.7) 0%, rgba(0,100,100,0.2) 100%); margin: 2vh auto;"><input id="x1" class="st" type="text" value="A" /><input id="x2" class="st" type="text" value="B" /><input id="x3" class="st" type="text" value="C" /><input id="x4" class="st" type="text" value="D" /><input id="x5" class="st" type="text" value="E" /><input id="x6" class="st" type="text" value="F" /><input id="x7" class="st" type="text" value="G" /><input id="x8" class="st" type="text" value="H" /><input id="x9" class="st" type="text" value="I" /><input id="x10" class="st" type="text" value="J" /><input id="x11" class="st" type="text" value="K" /><input id="x12" class="st" type="text" value="L" />
    <p id="par1">&nbsp;</p>
    <p id="par2">&nbsp;</p>
    <p id="par3">&nbsp;</p>
    <p id="par4">&nbsp;</p>
    <p id="par5">&nbsp;</p>
    <p id="par6">&nbsp;</p>
    <p id="par7">&nbsp;</p>
    <p id="par8">&nbsp;</p>
    <p id="par9">&nbsp;</p>
    <p id="par10">&nbsp;</p>
    <p id="par11">&nbsp;</p>
    <p id="par12">&nbsp;</p>
    <p id="par0">Avec l'aide efficace de Stormalo, que d'aucuns connaissent par le forum Ekla, voici un montage o&ugrave; il faut cliquer sur chaque bouton pour afficher l'image correspondante dans le cadre central.<br />Le survol de cette image centrale l'agrandira en plein cadre.</p>
    </div>

    <style><!--
    .st{position:absolute; z-index:10; width:1.3vw; height:1.3vw; border-radius:50%; font-size:1.5vw; text-align:center;}
    #x1 {transform:translate(58vw,2vw);}
    #x2 {transform:translate(58vw,4vw);}
    #x3 {transform:translate(58vw,6vw);}
    #x4 {transform:translate(58vw,8vw);}
    #x5 {transform:translate(58vw,10vw);}
    #x6 {transform:translate(58vw,12vw);}
    #x7 {transform:translate(58vw,14vw);}
    #x8 {transform:translate(58vw,16vw);}
    #x9 {transform:translate(58vw,18vw);}
    #x10 {transform:translate(58vw,20vw);}
    #x11 {transform:translate(58vw,22vw);}
    #x12 {transform:translate(58vw,24vw);}
    #par0{position:absolute; z-index:1; box-sizing:border-box; width:26vw; height:16.25vw; border:0.6vh ridge white; background:linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%); text-align:center; padding:1vw; font-size:1.1vw; color:white!important; text-shadow:0.1vh 0.1vh black; transform:translate(17vw,8.75vw);}
    #par1{position:absolute; z-index:1; width:12vw; height:6.75vw; background:url('http://ekladata.com/W7EIR1oz0igqrz58-StshicONsI@1152x648.jpg'); background-size:cover; transform:translate(3vw,0vw); transition:all 1s linear;}
    #par2{position:absolute; z-index:1; width:12vw; height:6.75vw; background:url('http://ekladata.com/vvxoIDueEXGzcixAW2iSYAXI-Aw@1152x648.jpg'); background-size:cover; transform:translate(17vw,0vw); transition:all 1s linear;}
    #par3{position:absolute; z-index:1; width:12vw; height:6.75vw; background:url('http://ekladata.com/uyrJSHdfzR2B7wvyfSpuOHUHs1I@1152x648.jpg'); background-size:cover; transform:translate(31vw,0vw); transition:all 1s linear;}
    #par4{position:absolute; z-index:1; width:12vw; height:6.75vw; background:url('http://ekladata.com/3m_S0Wu6pHlCE8NaTPxkscC_uVs@1152x648.jpg'); background-size:cover; transform:translate(45vw,0vw); transition:all 1s linear;}
    #par5{position:absolute; z-index:1; width:12vw; height:6.75vw; background:url('http://ekladata.com/jdCbJex4L7bNlMJ2vQ3Qv1tW1rs@1152x648.jpg'); background-size:cover; transform:translate(3vw,8.75vw); transition:all 1s linear;}
    #par6{position:absolute; z-index:1; width:12vw; height:6.75vw; background:url('http://ekladata.com/WLntNNW08Z9H2psiSTv3oWnSvXA@1152x648.jpg'); background-size:cover; transform:translate(3vw,18.25vw); transition:all 1s linear;}
    #par7{position:absolute; z-index:1; width:12vw; height:6.75vw; background:url('http://ekladata.com/ZHJVl_du3XWHvZgnklG_xmFnpKA@1152x648.jpg'); background-size:cover; transform:translate(45vw,8.75vw); transition:all 1s linear;}
    #par8{position:absolute; z-index:1; width:12vw; height:6.75vw; background:url('http://ekladata.com/sRAVGom54S5TnkTUjMcod06cRHo@1152x648.jpg'); background-size:cover; transform:translate(45vw,18.25vw); transition:all 1s linear;}
    #par9{position:absolute; z-index:1; width:12vw; height:6.75vw; background:url('http://ekladata.com/7al3OWrWyj_LwjCFPHjVmFFjJ5Q@1152x648.jpg'); background-size:cover; transform:translate(3vw,27vw); transition:all 1s linear;}
    #par10{position:absolute; z-index:1; width:12vw; height:6.75vw; background:url('http://ekladata.com/pzZn9PPiVreqZB5y_2MDdxnq9Pc@1152x648.jpg'); background-size:cover; transform:translate(17vw,27vw); transition:all 1s linear;}
    #par11{position:absolute; z-index:1; width:12vw; height:6.75vw; background:url('http://ekladata.com/XXMu3uvzV8pRNk1GwvBd-z57zkM@1152x648.jpg'); background-size:cover; transform:translate(31vw,27vw); transition:all 1s linear;}
    #par12{position:absolute; z-index:1; width:12vw; height:6.75vw; background:url('http://ekladata.com/D60F8mfxLs6a-huyKSLqZotfSx4@1152x648.jpg'); background-size:cover; transform:translate(45vw,27vw); transition:all 1s linear;}

    #x1:focus ~ #par1,#x2:focus ~ #par2,#x3:focus ~ #par3,#x4:focus ~ #par4,#x5:focus ~ #par5,#x6:focus ~ #par6,#x7:focus ~ #par7,#x8:focus ~ #par8,#x9:focus ~ #par9,#x10:focus ~ #par10,#x11:focus ~ #par11,#x12:focus ~ #par12{z-index:5; width:26vw; height:16.25vw; transform:translate(17vw,8.75vw);}

    #x1:focus ~ #par1:hover,#x2:focus ~ #par2:hover,#x3:focus ~ #par3:hover,#x4:focus ~ #par4:hover,#x5:focus ~ #par5:hover,#x6:focus ~ #par6:hover,#x7:focus ~ #par7:hover,#x8:focus ~ #par8:hover,#x9:focus ~ #par9:hover,#x10:focus ~ #par10:hover,#x11:focus ~ #par11:hover,#x12:focus ~ #par12:hover{width:60vw; height:33.75vw; transform:translate(0vw,0vw);}
    --></style>