Bonjour,
Voila tous est dans l'intitulé. J'ai un carrousel avec 4 images et j'aimerais lui mettre le nom au dessous de chaque images.
Voici mon code complet:
Je vous remercie de votre aide
Code HTML : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54 <style type="text/css"> /* Carousel */ .slideshow { position: absolute; top: 185px;left: 330px; width: 207px; height: 267px; margin: 3em auto; overflow: hidden; /* border: 3px solid #c400ff;*/ } .slideshow ul { width: 50%; height: 200px; padding:0; margin:0; list-style:none; } .slideshow li { float: left; } .ad { margin-top: 5em; padding: 10px; height: 125px; text-align: center; } .ad ins { margin: 0 2em; } #titre{ position: absolute;top: 370px; color: #fff;} /* Fin Carousel */ </style> <!--////////////////// Carousel ////////////////////////// --> <div class="slideshow"> <ul> <li><img src="../dossier_armorial/Blason_france/blasons_a_t/AMANCE-54.png" alt="AIGLUN-04" width="207" height="267" /><div id="titre">Titre</div></li> <li><img src="../dossier_armorial/Blason_france/blasons_a_t/ACHERES-78.png" alt="AIGLUN-06" width="207" height="267" /></li> <li><img src="../dossier_armorial/Blason_france/blasons_a_t/AIGUES_MORTES-30.png" alt="AIGNAN-32" width="207" height="267" /></li> <li><img src="../dossier_armorial/Blason_france/blasons_a_t/ALLEGRE-43.png" alt="AIGNAY_LE_DUC-21" width="207" height="267" /></li> </ul> </div> <script type="text/javascript" src="js/carousel_jquery.min.js"></script> <script type="text/javascript"> $(function(){ setInterval(function(){ $(".slideshow ul").animate({marginLeft:-350},800,function(){ $(this).css({marginLeft:0}).find("li:last").after($(this).find("li:first")); }) }, 3500); }); </script>
Max
Partager