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

Mise en page CSS Discussion :

z-index sous ie


Sujet :

Positionnement en CSS avec z-index

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre averti Avatar de develop' peur !
    Profil pro
    Inscrit en
    Février 2008
    Messages
    16
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2008
    Messages : 16
    Par défaut z-index sous ie
    Bonjour à tous
    Je crois qu'il y déjà une discussion à ce sujet mais dans le sens inverse pour moi le z-index sous Firefox fonctionne normalement
    ex :


    alors que sous ie 6 ou 7 j'obtiens cela :



    Je fais en sorte que le z-index soit calculé en fonction de la taille du point et ensuite il est additionné de 1000 si la div carte_paris est affichée
    le code :

    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
    <div class="class_map">
    	<img src={'cartes/idf.jpg'| ezimage} alt="Carte d'Ile de France" />
     
    	{* Cette div ne s'affiche que pour le zoom sur la région parisienne *}
    	<div class="carte_paris" style="display: none;"><div class="carte_paris_img"></div><a href=""><div id="closer" onClick="javascript:clickIt('carte_paris');return false;"><p>Fermer</p></div></a></div>
     
    	<div id="legende"></div>
    		<div id="paris" onClick="javascript:clickIt('carte_paris');return false;"><a href="#"></a></div>
     
     
    		{foreach $idf_area as $key => $item}
     
    			{def $site = fetch( 'content', 'list', hash( 'parent_node_id', $item.node_id,
    														'sort_by', $subitem.sort_array,
    														'class_filter_type', 'include',
    														'class_filter_array', array('site_gis'),
    														'depth', '2') )
    			}
     
    		{def $this_surface = 0}
     
    			{foreach $site as $this_site}
    				{def $this_id = concat('site_',$this_site.node_id)}
    				{def $this_img_id = concat('img_site_',$this_site.node_id)}
    				{def $this_text_id = concat('txt_site_',$this_site.node_id)}
     
    				{* calcul des tailles des sites sur la carte *}
    				{if eq($item.node_id,247) }
    					{def $this_taille = 10}
    					{if $this_site.data_map.surface_totale.value | gt(20000) }
    						{def $this_taille_p = 30}
    					{else}
    						{if $this_site.data_map.surface_totale.value | lt(5000)}
    							{def $this_taille_p = 15}
    						{else}
    							{def $this_taille_p = sum(round(mul($this_site.data_map.surface_totale.value,0.001)),15) }
    						{/if}
    					{/if}
    				{else}
    					{if $this_site.data_map.surface_totale.value | gt(20000) }
    						{def $this_taille = 30}
    					{else}
    						{if $this_site.data_map.surface_totale.value | lt(5000)}
    							{def $this_taille = 7}
    						{else}
    							{def $this_taille = sum(round(mul($this_site.data_map.surface_totale.value,0.0015)),7) }
    						{/if}
    					{/if}
    				{/if}
     
    				{* Calcul de la position en fonction des longitude et latitudes données par GIS *}
    				{def $this_top = sub(abs(round(mul(div(sub(49.29, $this_site.data_map.gis.content.latitude),1.2052),491))), div($this_taille,2))}
    				{def $this_left = sub(abs(round(mul(div(sub(1.34, $this_site.data_map.gis.content.longitude),2.40465),640))), div($this_taille,2))}
     
    				{* calcul de la position pour le zoom de la carte de Paris *}
    				{def $this_top_p = sub(abs(round(mul(div(sub(48.96, $this_site.data_map.gis.content.latitude),0.18),350))), div($this_taille_p,2))}
    				{def $this_left_p = sub(abs(round(mul(div(sub(2.128, $this_site.data_map.gis.content.longitude),0.3683),450))), div($this_taille_p,2))}
     
    				{* Calcul du z-index en fonction de la taille des sites pour éviter qu'un petit site ne soit recouvert par un plus grand *}
    				{def $this_zindex = sum(round(mul(div(1,$this_taille),1000)),round(mul(div(1,$this_top),10000)))}
    				{def $this_zindex_p = sum($this_zindex,1000)}
     
    				{set $this_surface = $this_site.data_map.surface_dispo.value}
    					{if $this_surface | gt(0)}
    						{*def $this_class = 'dispo'*}
    						<div id="{$this_id}" style="z-index: {$this_zindex}; top: {$this_top}px; left: {$this_left}px;" class="dispo">
    						<a href={$this_site.url_alias | ezurl()}>
    							<img src={'cartes/point_site_vert.png'| ezimage} alt="{$this_site.name | wash()}" width="{$this_taille}" height="{$this_taille}" />
    							<div class="cadre" style="left: {div($this_taille,2)}px;">
    								<div class="cadre_g"></div>
    								<div class="cadre_c">
    									<p>{$this_site.name | upcase() | wash()}</p>
    								</div>
    								<div class="cadre_d"></div>
    							</div>
    						</a>
    						</div>
     
    						{if eq($item.node_id,247) }
    						<div class="carte_paris" style="display: none;">
    						<div id="{$this_id}" style="z-index: {$this_zindex_p}; top: {$this_top_p}px; left: {$this_left_p}px;" class="dispo">
    						<a href={$this_site.url_alias | ezurl()}>
    							<img src={'cartes/point_site_vert.png'| ezimage} alt="{$this_site.name | wash()}" width="{$this_taille_p}" height="{$this_taille_p}" />
    							<div class="cadre" style="left: {div($this_taille_p,2)}px;">
    								<div class="cadre_g"></div>
    								<div class="cadre_c">
    									<p>{$this_site.name | upcase() | wash()}</p>
    								</div>
    								<div class="cadre_d"></div>
    							</div>
    						</a>
    						</div>
    						</div>
    						{/if}
     
    					{else}
    						{*def $this_class = 'nodispo'*}
    						<div id="{$this_id}" style="z-index: {$this_zindex}; top: {$this_top}px; left: {$this_left}px;" class="nodispo">
    						<a href={$this_site.url_alias | ezurl()}>
    							<img src={'cartes/point_site_violet.png'| ezimage}  alt="{$this_site.name | wash()}" width="{$this_taille}" height="{$this_taille}" />
    							<div class="cadre" style="left: {div($this_taille,2)}px;">
    								<div class="cadre_g"></div>
    								<div class="cadre_c">
    									<p>{$this_site.name | upcase() | wash()}</p>
    								</div>
    								<div class="cadre_d"></div>
    							</div>
    						</a>
    						</div>
     
    						{if eq($item.node_id,247) }
    						<div class="carte_paris" style="display: none;">
    						<div id="{$this_id}" style="z-index: {$this_zindex_p}; top: {$this_top_p}px; left: {$this_left_p}px;" class="nodispo">
    						<a href={$this_site.url_alias | ezurl()}>
    							<img src={'cartes/point_site_violet.png'| ezimage} alt="{$this_site.name | wash()}" width="{$this_taille_p}" height="{$this_taille_p}" />
    							<div class="cadre" style="left: {div($this_taille_p,2)}px;">
    								<div class="cadre_g"></div>
    								<div class="cadre_c">
    									<p>{$this_site.name | upcase() | wash()}</p>
    								</div>
    								<div class="cadre_d"></div>
    							</div>
    						</a>
    						</div>
    						</div>
    						{/if}
    					{/if}
    			{/foreach}
    		{/foreach}
     
    		<div id="check_dispo"><input type="checkbox" id="checkbox_1" onclick="switch_visibility('checkbox_1','nodispo')"  checked="checked" />Patrimoine total (d&eacute;cochez pour voir uniquement la disponibilit&eacute;)</div>
    </div>
    le css :
    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
    .carte_paris {
    	position:			absolute;
    	display:			none;
    	top:				77px;
    	left:				100px;
    	width:				450px;
    	height:				350px;
    }
    .carte_paris_img {
    	position:			absolute;
    	top:				24px;
    	left:				0px;
    	width:				450px;
    	height:				350px;
    	z-index:			1000;
    	background-image:	url('../images/cartes/paris.png');
    	background-repeat:	no-repeat;
    }
    #closer {
    	position:			absolute;
    	top:				0px;
    	right:				10px;
    	background-image:	url('../images/cartes/closer.gif');
    	background-repeat:	no-repeat;
    	width:				141px;
    	height:				24px;
    	z-index:			998;
    }
     
    #closer p {
    	padding:				0px 0px 0px 65px;
    	text-decoration:		none;
    	font-weight:			bold;
    	font-size:				12px;
    	font-family:			Verdana, Arial, Helvetica, sans-serif;
    	color:					#FFFFFF;
    	z-index:				1001;
    }
    Si quelqu'un a une solution à ce pb de z-index sous ie je suis preneur sachant que j'ai l'impression que les enfants d'une div perdent la notion de profondeur sous ie et pas sous firefox

    merci

  2. #2
    Membre confirmé
    Homme Profil pro
    Développeur Web
    Inscrit en
    Décembre 2006
    Messages
    105
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Bas Rhin (Alsace)

    Informations professionnelles :
    Activité : Développeur Web

    Informations forums :
    Inscription : Décembre 2006
    Messages : 105
    Par défaut
    Bonsoir,


    alors j'ai deux questions a poser:

    - pourquoi assignes tu des valeurs de Z-index aussi grande dans le css ?
    - quel est ce langage de script utilisé dans ton html ? (on dirait un langage de moteur de template version evoluée)

  3. #3
    Membre averti Avatar de develop' peur !
    Profil pro
    Inscrit en
    Février 2008
    Messages
    16
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2008
    Messages : 16
    Par défaut
    Bonjour,
    Tout d'aord désolé pour le retard de ma réponse,
    Je mets des valeurs élevées pour les Z-index parce que je la div qui au desssus doit contenir un nombre de sites que je ne connais pas à l'avance, je positionne donc volontairement des z-index au dessus de 1000 cela me permets de gérer au moins 999 sites sur la même carte

    Pour le language c'est du EZPublish c'est effectivement de la gestion de template

  4. #4
    Membre averti Avatar de develop' peur !
    Profil pro
    Inscrit en
    Février 2008
    Messages
    16
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2008
    Messages : 16
    Par défaut Me revoilà sur mon post !!!
    Après quelques jours de recherche sur ce bug persistent avec Internet Explorer 6 je reviens à la charge en me demandant si une bonne âme pourrait me venir en aide. J'ai décidé de mettre en ligne mon site en version demo. Si vous testez le lien ci-dessous sous Firefox (mac et PC) et IE 7 tout fonctionne à merveille (ou presque !) par contre sous IE 5.5 ou 6, quand on clique sur l'ile de France au milieu de la carte, les sites d'Ile de France n'apparaissent pas !???

    Le lien :
    Cliquez ici

    le code de mon CSS
    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
    291
    292
    293
    #thismarker {
    	width:				200px;
    	background-color:	#fff;
    }
     
     
    #image1 {
    	width:				240px;
    }
    #image2, #image3 {
    	width:				180px;
    	margin:				5px 30px 0 30px;
    }
     
    .img_site {
    	border:				solid 1px #fff;
    }
     
    #roundCorner {
    	position:			relative;
    	float:				left;
    	width:				280px;
    	background-color:	#cccccc;
    }
     
    #lt_corner, #rt_corner, #lb_corner, #rb_corner {
    	height:				20px;
    	width:				20px;
    	background-repeat:	no-repeat;
    	font-size:			1px; /* correction du bug IE */
    }
     
    #lt_corner {
    	background-image:	url('../images/cartes/lt_corner.gif');
    }
     
    #rt_corner {
    	float:				right;
    	background-image:	url('../images/cartes/rt_corner.gif');
    }
     
    #lb_corner {
    	background-image:	url('../images/cartes/lb_corner.gif');
    }
     
    #rb_corner {
    	float:				right;
    	background-image:	url('../images/cartes/rb_corner.gif');
    }
     
    #roundCorner_contenu {
    	padding:			0px 20px 0px 20px;
    }
     
    #partie_droite {
    	position:			relative;
    	width:				340px;
    	top:				0px;
    }
     
    .with_img {
    	margin:				0 0 0 300px;
    }
     
    .without_img {
    	margin:				0 0 0 150px;
    }
     
    #partie_droite .t1 {
    	border-top:				thin dotted #000;
    	padding:				10px 0 10px 0;
    	font-weight:			bold;
    	font-size:				20px;
    	font-family:			Verdana, Arial, Helvetica, sans-serif;
    	color:					#00428d;
    }
     
    #partie_droite .t2 {
    	border-top:				thin dotted #000;
    	padding:				10px 0 10px 0;
    	font-weight:			bold;
    	font-size:				14px;
    	font-family:			Verdana, Arial, Helvetica, sans-serif;
    	color:					#000;
    }
     
    #partie_droite .t3 {
    	border-top:				thin dotted #000;
    	padding:				5px 0 5px 0;
    }
     
    #partie_droite .t3 h1 {
    	font-weight:			normal;
    	font-size:				13px;
    	font-family:			Verdana, Arial, Helvetica, sans-serif;
    	color:					#000;
    }
    #partie_droite .t3 h2 {
    	margin:					-0.5em 0 -0.5em 0;
    	font-weight:			bold;
    	font-size:				15px;
    	font-family:			Verdana, Arial, Helvetica, sans-serif;
    	color:					#00428d;
    }
     
    #partie_droite .t3 h4 {
    	font-weight:			bold;
    	margin:					-0.8em 0 0.5em 0;
    	font-size:				12px;
    	font-family:			Verdana, Arial, Helvetica, sans-serif;
    	color:					#8d007c;
    }
    #partie_droite .t3 h5 {
    	font-weight:			bold;
    	margin:					-0.5em 0 0.5em 0;
    	font-size:				12px;
    	font-family:			Verdana, Arial, Helvetica, sans-serif;
    	color:					#8ab100;
    }
     
    #partie_droite .t4 {
    	border-top:				thin dotted #000;
    	padding:				5px 0 5px 0;
    }
     
    #partie_droite p {
    	font-weight:			normal;
    	font-size:				11px;
    	font-family:			Verdana, Arial, Helvetica, sans-serif;
    	color:					#000;
    }
     
    #site {
    	position:			relative;
    	width:				640px;
    }
     
    #site_gauche {
    	position:			absolute;
    	background-color:	#CCCCCC;
    	width:				280px;
    	left:				10px;
    }
     
    #site_droite{
    	position:			absolute;
    	width:				300px;
    	left:				320px;
    }
     
    #carte_paris_cart {
    	position:				absolute;
    	top:					101px !important;
    	left:					100px;
    	width:					440px;
    	height:					336px !important;
    	background-image:		url('../images/cartes/paris.jpg') !important;
    	background-repeat:		no-repeat;
    	z-index:				1001;
    }
    .carte_paris {
    	position:				absolute;
    }
     
    #closer {
    	position:				absolute;
    	right:					7px;
    	top:					9px;
    	background-image:		url('../images/cartes/closer_off.gif');
    	background-repeat:		no-repeat;
    	background-position:	right;
    	width:					20px;
    	height:					21px;
    }
     
     
    #paris a {
    	position:				absolute;
    	background-image:		url('../images/cartes/zoom.png');
    	background-repeat:		no-repeat;
    	display:				block;
    	top:					140px;
    	left:					214px;
    	width:					98px;
    	height:					73px;
    	z-index:				999;
    }
     
    #paris a:hover {
    	background-image:		url('../images/cartes/zoom_hover.png');
    	background-repeat:		no-repeat;
    }
     
    .dispo {
    	position:				absolute;
    }
     
    .dispo a img {
    	border-top-style: 		none;
    	border-right-style:		none;
    	border-bottom-style: 	none;
    	border-left-style: 		none;
    }
     
    .nodispo {
    	position:				absolute;
     
    }
     
    .nodispo a img {
    	border-top-style: 		none;
    	border-right-style:		none;
    	border-bottom-style: 	none;
    	border-left-style: 		none;
    }
     
    .cadre {
    	position:				relative;
    	display:				none;
    	z-index:				1100;
    }
     
    .dispo a:link, .dispo a:hover {
    	text-decoration:		none;
    }
     
    .dispo a:hover div.cadre {
    	display:				block;
    	width:					200px;
    }
     
    .dispo a:hover div.cadre_g, .cadre_c, .cadre_d {
    	height:					58px;
    }
     
    .dispo a:hover div.cadre_g {
    	background-image:		url('../images/cartes/bulle_villes_gauche.png');
    	background-repeat:		no-repeat;
    	width:					26px;
    	float:					left;
    }
     
    .dispo a:hover div.cadre_c {
    	background-image:		url('../images/cartes/bulle_villes_centre.png');
    	background-repeat:		repeat-x;
    	padding-right:			15px;
    	padding-top:			29px;
    	/padding-top:		37px;
    	float:				left;
    }
     
    .dispo a:hover div.cadre_d {
    	background-image:	url('../images/cartes/bulle_villes_droite.png');
    	background-repeat:	no-repeat;
    	width:				8px;
    	float:				left;
    }
     
    .nodispo a:hover {
    	text-decoration:	none;
    }
     
    .nodispo a:hover div.cadre {
    	display:			block;
    	width:				200px;
    }
     
    .nodispo a:hover div.cadre_g, .cadre_c, .cadre_d {
    	height:				58px;
    }
     
    .nodispo a:hover div.cadre_g {
    	background-image:	url('../images/cartes/bulle_villes_gauche.png');
    	background-repeat:	no-repeat;
    	width:				26px;
    	float:				left;
    }
     
    .nodispo a:hover div.cadre_c {
    	background-image:	url('../images/cartes/bulle_villes_centre.png');
    	background-repeat:	repeat-x;
    	padding-right:		15px;
    	padding-top:		29px;
    	/padding-top:		37px;
    	float:				left;
    }
     
    .nodispo a:hover div.cadre_d {
    	background-image:	url('../images/cartes/bulle_villes_droite.png');
    	background-repeat:	no-repeat;
    	width:				8px;
    	float:				left;
    }
    et en fin le code de ma page (c'est du EZPublish)
    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
    {* Image - maps *}
     
    {def $idf_area = fetch('content','list',hash('parent_node_id',246,
    												'sort_by', $french_area.sort_array,
    												'class_filter_array', array('regions')))
    }
    {$idf_area_count = $idf_area|count()}
     
    <div class="class_map">
    	<img src={'cartes/idf.jpg'| ezimage} alt="Carte d'Ile de France" />
     
    	{* Cette div ne s'affiche que pour le zoom sur la région parisienne *}
    	<div id="carte_paris_cart" class="carte_paris" style="display: none;">
    		<a href="#">
    			<div id="closer" onClick="javascript:clickIt('carte_paris');return false;">
    			</div>
    		</a>
    	</div>
     
    		<div id="paris" onClick="javascript:clickIt('carte_paris');return false;"><a href="#"></a></div>
     
     
    		{foreach $idf_area as $key => $item}
     
    			{def $site = fetch( 'content', 'list', hash( 'parent_node_id', $item.node_id,
    														'sort_by', $subitem.sort_array,
    														'class_filter_type', 'include',
    														'class_filter_array', array('site_gis'),
    														'depth', '2') )
    			}
     
    		{def $this_surface = 0}
     
    			{foreach $site as $this_site}
    				{def $this_id = concat('site_',$this_site.node_id)}
    				{def $this_img_id = concat('img_site_',$this_site.node_id)}
    				{def $this_text_id = concat('txt_site_',$this_site.node_id)}
     
    				{* calcul des tailles des sites sur la carte *}
    				{if eq($item.node_id,247) }
    					{def $this_taille = 10}
    					{if $this_site.data_map.surface_totale.value | gt(20000) }
    						{def $this_taille_p = 30}
    					{else}
    						{if $this_site.data_map.surface_totale.value | lt(5000)}
    							{def $this_taille_p = 15}
    						{else}
    							{def $this_taille_p = sum(round(mul($this_site.data_map.surface_totale.value,0.001)),15) }
    						{/if}
    					{/if}
    				{else}
    					{if $this_site.data_map.surface_totale.value | gt(20000) }
    						{def $this_taille = 30}
    					{else}
    						{if $this_site.data_map.surface_totale.value | lt(5000)}
    							{def $this_taille = 7}
    						{else}
    							{def $this_taille = sum(round(mul($this_site.data_map.surface_totale.value,0.0015)),7) }
    						{/if}
    					{/if}
    				{/if}
     
    				{* Calcul de la position en fonction des longitude et latitudes données par GIS *}
    				{def $this_top = sub(abs(round(mul(div(sub(49.29, $this_site.data_map.gis.content.latitude),1.2052),491))), div($this_taille,2))}
    				{def $this_left = sub(abs(round(mul(div(sub(1.34, $this_site.data_map.gis.content.longitude),2.40465),640))), div($this_taille,2))}
     
    				{* calcul de la position pour le zoom de la carte de Paris *}
    				{def $this_top_p = sum(round(sub(abs(round(mul(div(sub(48.96, $this_site.data_map.gis.content.latitude),0.18),350))), div($this_taille_p,2))),75)}
    				{def $this_left_p = sum(round(sub(abs(round(mul(div(sub(2.128, $this_site.data_map.gis.content.longitude),0.3683),450))), div($this_taille_p,2))),100)}
     
    				{* Calcul du z-index en fonction de la taille des sites pour éviter qu'un petit site ne soit recouvert par un plus grand *}
    				{def $this_zindex = sum(round(mul(div(1,$this_taille),1000)),round(mul(div(1,$this_top),10000)))}
    				{def $this_zindex_p = sum($this_zindex,1000)}
     
    				{set $this_surface = $this_site.data_map.surface_dispo.value}
    					{if $this_surface | gt(0)}
    						{*def $this_class = 'dispo'*}
    						<div id="{$this_id}" style="z-index: {$this_zindex}; top: {$this_top}px; left: {$this_left}px;" class="dispo">
    						<a href={$this_site.url_alias | ezurl()}>
    							<img src={'cartes/point_site_vert.png'| ezimage} alt="{$this_site.name | wash()}" width="{$this_taille}" height="{$this_taille}" />
    							<div class="cadre" style="left: {round(div($this_taille,2))}px;">
    								<div class="cadre_g"></div>
    								<div class="cadre_c">
    									<p>{$this_site.name | upcase() | wash()}</p>
    								</div>
    								<div class="cadre_d"></div>
    							</div>
    						</a>
    						</div>
     
    						{if eq($item.node_id,247) }
    						<div class="carte_paris"  style="z-index: {$this_zindex_p}; top: {$this_top_p}px; left: {$this_left_p}px; width: {$this_taille_p}px; height:{$this_taille_p}px; display: none;">
    							<div id="{$this_id}_p" class="dispo" >
    								<a href={$this_site.url_alias | ezurl()}>
    								<img src={'cartes/point_site_vert.png'| ezimage} alt="{$this_site.name | wash()}" width="{$this_taille_p}" height="{$this_taille_p}" />
    								<div class="cadre" style="left: {round(div($this_taille_p,2))}px;">
    									<div class="cadre_g"></div>
    									<div class="cadre_c">
    										<p>{$this_site.name | upcase() | wash()}</p>
    									</div>
    									<div class="cadre_d"></div>
    								</div>
    								</a>
    							</div>
    						</div>
    						{/if}
     
    					{else}
    						{*def $this_class = 'nodispo'*}
    						<div id="{$this_id}" style="z-index: {$this_zindex}; top: {$this_top}px; left: {$this_left}px;" class="nodispo">
    						<a href={$this_site.url_alias | ezurl()}>
    							<img src={'cartes/point_site_violet.png'| ezimage}  alt="{$this_site.name | wash()}" width="{$this_taille}" height="{$this_taille}" />
    							<div class="cadre" style="left: {round(div($this_taille,2))}px;">
    								<div class="cadre_g"></div>
    								<div class="cadre_c">
    									<p>{$this_site.name | upcase() | wash()}</p>
    								</div>
    								<div class="cadre_d"></div>
    							</div>
    						</a>
    						</div>
     
    						{if eq($item.node_id,247) }
    						<div class="carte_paris" style="z-index: {$this_zindex_p}; top: {$this_top_p}px; left: {$this_left_p}px; width: {$this_taille_p}px; height:{$this_taille_p}px; display: none; ">
    						<div id="{$this_id}_p" class="nodispo" >
    						<a href={$this_site.url_alias | ezurl()}>
    							<img src={'cartes/point_site_violet.png'| ezimage} alt="{$this_site.name | wash()}" width="{$this_taille_p}" height="{$this_taille_p}" />
    							<div class="cadre" style="left: {round(div($this_taille_p,2))}px;">
    								<div class="cadre_g"></div>
    								<div class="cadre_c">
    									<p>{$this_site.name | upcase() | wash()}</p>
    								</div>
    								<div class="cadre_d"></div>
    							</div>
    						</a>
    						</div>
    						</div>
    						{/if}
    					{/if}
    			{/foreach}
    		{/foreach}
    		<div id="check_dispo"><input type="checkbox" id="checkbox_1" onclick="switch_visibility('checkbox_1','nodispo')"  checked="checked" />
    			{if $current_locale.locale_code|eq('fre-FR')}
    				Patrimoine total (d&eacute;cochez pour voir uniquement la disponibilit&eacute;)
    			{elseif $current_locale.locale_code|eq('eng-GB')}
    				Total inheritance (uncheck to see only the availability)
    			{else}
    				Patrimoine total (d&eacute;cochez pour voir uniquement la disponibilit&eacute;)
    			{/if}
    		</div>
    </div>
    merci

  5. #5
    Membre averti Avatar de develop' peur !
    Profil pro
    Inscrit en
    Février 2008
    Messages
    16
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2008
    Messages : 16
    Par défaut On est jamais aussi bien servi que par soi-même
    Je crois que j'ai trouvé mon problème. Malgrés qu'IE6 supporte le display:none et display:block, je pense que mon problème venait du fait que l'apparition et la disparition était gérée par un javascript qui basculait de l'un à l'autre. IE 6 considère qu'un display:none n'existe pas alors qu'un visibility:hidden existe mais n'est pas visible. Du coup le javascript ne voit pas une div qui a été initialisée à display:none alors qu'il voit parfaitement cette même div avec un visibility:hidden.

    Résultat, j'ai changé tous les display none en visibility:hidden, j'ai modifié mon javascript en concéquence et tout est rentré dans l'ordre

    Si ça peut servir à quelqu'un



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

Discussions similaires

  1. problème avec z-index sous firefox ???
    Par SpaceFrog dans le forum Balisage (X)HTML et validation W3C
    Réponses: 3
    Dernier message: 22/09/2005, 20h39
  2. Réponses: 1
    Dernier message: 11/08/2005, 17h33
  3. Probleme définition d'index sous Paradox
    Par zinaif dans le forum Bases de données
    Réponses: 3
    Dernier message: 01/06/2005, 10h38
  4. comment s'incremente un index sous oracle ?
    Par elitol dans le forum Langage SQL
    Réponses: 4
    Dernier message: 16/07/2004, 16h16
  5. Les index sous Sybase
    Par Emdis dans le forum Autres SGBD
    Réponses: 2
    Dernier message: 02/06/2003, 15h21

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