IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Conception Web Discussion :

Liste déroulante sous forme de dossier


Sujet :

Conception Web

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre très actif
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Avril 2009
    Messages
    391
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Avril 2009
    Messages : 391
    Par défaut Liste déroulante sous forme de dossier
    Bonjour à tous,


    j'aimerais savoir s'il y aurait un moyen de transformer l'apparence d'une liste déroulante en ce qu'on peut voir quand on ouvre un dossier windows ?

    Par exemple si ma liste contient 5 éléments, ma page web afficherait 5 fichiers (icône + libellé) l'un à côté de l'autre ?

    Merci d'avance

    edit : J'ai fais une petite image pour illustrer ma question lol
    Nom : exemple30.png
Affichages : 84
Taille : 94,2 Ko

  2. #2
    Membre Expert
    Avatar de pc75
    Profil pro
    Inscrit en
    Septembre 2004
    Messages
    3 662
    Détails du profil
    Informations personnelles :
    Âge : 70
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Septembre 2004
    Messages : 3 662
    Par défaut
    Bonjour,

    Un truc comme ça ?

    Code : 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
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    	<title>Combo avec images</title>
    	<script src="jquery.min.js" type="text/javascript"></script>
    	<script type="text/javascript" language="javascript">
    
    	var flashvars = {
    		colorSea: "97C4FF",
    		colorEnableCountry: "084c8d",
    		colorCountry: "6292c9",
    		colorOverCountry: "ffc65a",
    		colorAlphaSea: "1",
    		yCamera: "100",
    		startRotation: "90",
    		alwaysSelectedCountries: (document.URL.split("?")[1])
    	};
    	var params = {};
    	params.play = "true";
    	params.loop = "true";
    	params.menu = "true";
    	params.quality = "high";
    	params.scale = "exactfit";
    	params.wmode = "window";
    	params.bgcolor = "#ffffff";
    	params.devicefont = "false";
    	params.swliveconnect = "true";
    	params.allowfullscreen = "false";
    	params.allowscriptaccess = "always";
    	var attributes = {};
    
    //	swfobject.embedSWF("earth/swf/EarthMap.swf", "earthMap", "900", "360", "10.0.0", "earth/swf/expressInstall.swf", flashvars, params, attributes);
    
    
    	function getFlashMovie(movieName) {
    		var isIE = navigator.appName.indexOf("Microsoft") != -1;
    		return (isIE) ? window[movieName] : document[movieName];
    	}
    
    
    	function getCountriesList() {
    		var xmlString  ="";
    		var countryListClone = $("#countryList").clone();
    
    		countryListClone.find("li").each(function (i) {
    			$(this).find('img:first').remove()
    			xmlString += "<li>" + $(this).html() + "</li>" + '\n';
    		});
    		xmlString = xmlString.replace(/<A/g, "<a");
    		xmlString = xmlString.replace(/<\/A>/g, "</a>");
    		xmlString = xmlString.replace(/SPAN/g, "span");
    		xmlString = xmlString.replace(/<\/SPAN/g, "</span>");
    		xmlString = xmlString.replace(/class=value/g, "class=\"value\"");
    		return xmlString;
    	}
    
    	function selectCountry(countryUrl) {
    		window.location.href = countryUrl;
    	}
    
    	function stopPlanet (){
    		$("#earthMap").css("margin-top","1000px");
    		//	getFlashMovie("earthMap").stopMovie();
    	}
    
    	function startPlanet (){
    		$("#earthMap").css("margin-top","0");
    		//	getFlashMovie("earthMap").startMovie();
    	}
    	</script>
    	<script type="text/javascript">
    	$(document).ready(function() {
    
    		var planetRunning = true;
    		$(".dropdown img.flag").addClass("flagvisibility");
    
    		$(".dropdown dt a").click(function() {
    
    			$(".dropdown dd ul").toggle();
    
    			if (planetRunning) {
    				stopPlanet();
    			} else {
    				startPlanet();
    			}
    			planetRunning = !planetRunning;
    
    
    		});
    
    		$(".dropdown dd ul li a").click(function() {
    			var text = $(this).html();
    			$(".dropdown dt a span").html(text);
    			$(".dropdown dd ul").hide();
    
    		});
    
    		function getSelectedValue(id) {
    			return $("#" + id).find("dt a span.value").html();
    		}
    
    		$(document).bind('click', function(e) {
    			var $clicked = $(e.target);
    			if (! $clicked.parents().hasClass("dropdown")){
    
    				startPlanet();
    				planetRunning = true;
    
    				$(".dropdown dd ul").hide();
    			}
    
    		});
    
    
    		$("#earth/images/jr-country/flagswitcher").click(function() {
    			$(".dropdown img.flag").toggleClass("flagvisibility");
    		});
    	});
    	</script>
    	<style type="text/css">
    	body {
    		font-family: Verdana, Arial, sans-serif;
    		background-color:#FFF;
    	}
    	h1 {
    		text-indent: -9999px;
    		background: transparent url('logo.gif') no-repeat;
    		height: 75px;
    		width: 300px;
    		margin-left: auto;
    		margin-right: auto;
    		display:block;
    	}
    	select {
    		font-size: 12pt;
    	}
    	#earthMap:focus {
    		outline:none;
    	}
    	option.icon-option {
    		background:#FFF no-repeat 2px 4px;
    		padding-left: 30px;
    		margin: 2px;
    	}
    	div.center {
    		width:900px;
    		margin-left: auto;
    		margin-right: auto;
    		text-align:center;
    	}
    	p.copyright {
    		font-size:14px;
    		color:#666;
    	}
    
    	#staticEarthMap {
    
    		overflow:hidden;
    
    	}
    
    
    	#listContainer {
    		font-family:Verdana, Arial, Sans-Serif;
    		font-size:0.75em;
    		color:#000;
    	}
    	.desc {
    		color:#6b6b6b;
    	}
    	.desc a {
    		color:#0092dd;
    	}
    	.dropdown dd, .dropdown dt, .dropdown ul {
    		margin:0px;
    		padding:0px;
    	}
    	.dropdown dd {
    		position:relative;
    	}
    	.dropdown a, .dropdown a:visited {
    		color:#816c5b;
    		text-decoration:none;
    		outline:none;
    	}
    	.dropdown a:hover {
    		color:#5d4617;
    	}
    	.dropdown dt a:hover {
    		color:#5d4617;
    		border: 1px solid #a19696;
    	}
    	.dropdown dt a {
    		background:#fff url('arrow.png') no-repeat scroll right center;
    		display:block;
    		padding-right:20px;
    		border:1px solid #d5cdcd;
    		width:250px;
    	}
    	.dropdown dt a span {
    		cursor:pointer;
    		display:block;
    		padding:5px;
    		font-size:16px;
    	}
    	.dropdown dd ul {
    		background:#e6f1ff;
    		border:1px solid #93bbee;
    		color:#C5C0B0;
    		display:none;
    		left:0px;
    		padding:5px 0px;
    		position:absolute;
    		top:2px;
    		width:270px;
    		min-width:270px;
    		list-style:none;
    		height: 290px;
    		overflow:auto;
    	}
    	.dropdown span.value {
    		display:none;
    	}
    	.dropdown dd ul li{
    		display:inline;
    	}
    	.dropdown dd ul li a {
    		padding: 4px 0px;
    		display:block;
    	}
    	.dropdown dd ul li a:hover {
    		background-color: #ffc65a;
    		color: #FFF;
    	}
    	.dropdown img.flag {
    		border:none;
    		vertical-align:middle;
    		margin-left:5px;
    		margin-right: 5px;
    	}
    	.flagvisibility {
    	}
    	.container_dropdown {
    		margin: 0 auto;
    		width: 275px;
    		text-align:left;
    	}
    	html {
    		overflow: auto;
    	}
    
    	#staticEarthMap {
    		width: 900px;
    		height: 360px;
    		//background-image: url('earth/images/jr-country/static_earth.jpg');
    	}
    
    
    .email {
        background:url(Algeria.png) left top no-repeat #fff;
        padding-left: WITH_OF_YOUR_ICON;
    }
    .phone {
        background:url(Angola.png) left top no-repeat #fff;
        padding-left: WITH_OF_YOUR_ICON;
    }
    
    	</style>
    </head>
    <body>
    
    	<div class="center">
    		<h1>JobRapido</h1>
    
    		<div class="container_dropdown">
    			<dl id="listContainer" class="dropdown">
    				<dt><a href="#"><span>Selection</span></a></dt>
    				<dd>
    
    					<ul id="countryList" style="">
    						<li><a href="#"><img src="Algeria.png" class="flag" alt="Algeria" >Algeria<span class="value">DZA</span></a></li>
    						<li><a href="#"><img src="Angola.png" class="flag" alt="Angola" >Angola<span class="value">AGO</span></a></li>
    					</ul>
    				</dd>
    			</dl>
    	</div>
    </body>
    </html>

  3. #3
    Membre très actif
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Avril 2009
    Messages
    391
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Avril 2009
    Messages : 391
    Par défaut
    Merci pour ta réponse. J'en ai pris compte mais j'ai trouvé plus simple sur un autre site .

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. [MySQL] Liste déroulante sous forme de fonction
    Par Mikke dans le forum PHP & Base de données
    Réponses: 26
    Dernier message: 29/02/2008, 12h20
  2. Problème d'affichage d'une liste déroulante sous IE
    Par devdebutante dans le forum Balisage (X)HTML et validation W3C
    Réponses: 11
    Dernier message: 09/07/2007, 16h29
  3. Réponses: 4
    Dernier message: 04/05/2007, 13h23
  4. Réponses: 1
    Dernier message: 03/01/2007, 22h34

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo