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 :

Image mal positionnée dans le menu


Sujet :

CSS

  1. #1
    Membre du Club
    Profil pro
    Inscrit en
    Juillet 2008
    Messages
    90
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juillet 2008
    Messages : 90
    Points : 47
    Points
    47
    Par défaut Image mal positionnée dans le menu
    Bonjour,

    J'ai un menu avec une image. L'image devrait se trouver en bas du menu

    Voici le code de mon menu
    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
     
      <div id="pageNav"> 
        <div id="sectionLinks"> 
          <a href="/site/GICM1pages/Evenement.asp">Evénements</a> <a href="/site/GICM1pages/Annu.asp">Annuaires</a> <a href="#">Gérer mon compte
    	  </a> <a href="/site/GICM1pages/Contact.asp">Nous contacter</a> <a href="/site/GICM1pages/AnnonceCongres.asp">Annoncer une manifestation</a> <a href="/site/GICM1pages/Partenaires.asp">Nos 
    	  partenaires</a> 
        </div> 
        <p>
     
        <div class="relatedLinks"> 
     
    <table >
      <tr> 
        <td colspan="7" align="center"> 
          <select onchange="window.location='?an=<%= an %>&mois='+this.value">
                   <option value="1" <% if mois=1 then response.write "selected" end if%> >Janvier</option>
                   <option value="2" <% if mois=2 then response.write "selected" end if%> >Février</option>
                   <option value="3" <% if mois=3 then response.write "selected" end if%> >Mars</option>
                   <option value="4" <% if mois=4 then response.write "selected" end if%> >Avril</option>
                   <option value="5" <% if mois=5 then response.write "selected" end if%> >Mai</option>
                   <option value="6" <% if mois=6 then response.write "selected" end if%> >Juin</option>
                   <option value="7" <% if mois=7 then response.write "selected" end if%> >Juillet</option>
                   <option value="8" <% if mois=8 then response.write "selected" end if%> >Août</option>
                   <option value="9" <% if mois=9 then response.write "selected" end if%> >Septembre</option>
                   <option value="10" <% if mois=10 then response.write "selected" end if%> >Octobre</option>
                   <option value="11" <% if mois=11 then response.write "selected" end if%> >Novembre</option>
                   <option value="12" <% if mois=12 then response.write "selected" end if%> >Décembre</option>
          </select>
           - 
          <select onchange="window.location='?mois=<%=mois%>&an='+this.value">
             <% 
             for i = an_deb to an_fin 
             %>
                <option value="<%= an_deb %>"
    					<% if an=an_deb then response.write "selected" end if%> ><%= an_deb %></option>
             <%
             an_deb = an_deb + 1
             next
             %>
          </select>
        </td>
      </tr>
      <tr>
      <BR>
      </tr>
      <tr bgcolor="#F4F28C" bordercolor="#F4F28C"> 
        <td align="center"><font color="#000000" size="2" face="Arial">L</font></td>
        <td align="center"><font color="#000000" size="2" face="Arial">M</font></td>
        <td align="center"><font color="#000000" size="2" face="Arial">M</font></td>
        <td align="center"><font color="#000000" size="2" face="Arial">J</font></td>
        <td align="center"><font color="#000000" size="2" face="Arial">V</font></td>
        <td align="center"><font color="#000000" size="2" face="Arial">S</font></td>
        <td align="center"><font color="#000000" size="2" face="Arial">D</font></td>
      </tr>
      <tr> 
        <% 
    for i = 1 to jours_mois
          ' --- incrémentation de ma variable cellule jusqu'à la valeur 7 ---
          c=c+1
     
          if l=0 then
             for p = 1 to pos_premier
             c=c+1
             %>
                 <td align="center"><font size="2" face="Arial"></font></td>
              <%
             next
          end if
          date_agenda = dateserial(an,mois,i)
          %>
           <td align="center" <% if date_agenda = date() then %> style="border-width:thin ; border-style:solid; color:#FF0000"<% end if %> >
             <font size="2" face="Arial">
    		 <a href="/site/GICM1pages/CDL.asp?dateserial=<%=Request.Querystring("date_agenda")%><%= date_agenda %>"><%= i %></a>
    		 </font>
           </td>
        <%
          ' --- gestion du retour à la ligne après 7 jours affichés ---
                if c=7 then 
                   response.write "</tr>"
                   c=0 
                end if 
          ' --- incrémente la variable l précisant le passage à la deuxième ligne ---
                l=1
          ' --- boucle de mon for to next ---
    next
     
    %>
      </tr>
    </table>
        </div> 
     
     
          <img src="/site/GICM1livres/placeholder/placeholder.gif" width="70" height="99">
    	      <h3 align="center"><a href="/site/GICM1pages/bdc2009.asp">Bon de commande 2009.</a></h3> 
      </div>
    actuellement elle s'affiche en haut du menu. Je pense qu'il faut modifier la page de style, mais je ne sais ou intervenir dans la page de style.

    Voici ma page de style
    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
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
     
    /***********************************************/
    /* emx_nav_left.css                            */
    /* Use with template Halo_leftNav.html         */
    /***********************************************/
     
    /***********************************************/
    /* HTML tag styles                             */
    /***********************************************/
    body{
    	font-family: Arial,sans-serif;
    	color: #333333;
    	line-height: 1.166;	
    	margin: 0px;
    	padding: 0px;
    	background: #cccccc url("bg_grad1.jpg") fixed;
    }
     
    /******* hyperlink and anchor tag styles *******/
     
    a:link, a:visited{
    	color: #08387A;
    	text-decoration: none;
    }
     
    a:hover{
    	text-decoration: underline;
    }
     
    /************** header tag styles **************/
     
    h1{
     font: bold 120% Arial,sans-serif;
     color: #334d55;
     margin: 0px;
     padding: 0px;
    }
     
    h2{
     font: bold 100% Arial,sans-serif;
     color: #08387A;
     margin: 0px;
     padding: 0px;
    }
     
    h3{
     font: bold 100% Arial,sans-serif;
     color: #08387A;
     margin: 0px;
     padding: 0px;
    }
     
    h4{
     font: 100% Arial,sans-serif;
     color: #08387A;
     margin: 0px;
     padding: 0px;
    }
     
    h5{
     font: 100% Arial,sans-serif;
     color: #334d55;
     margin: 0px;
     padding: 0px;
    }
     
     
    /*************** list tag styles ***************/
     
    ul{
     list-style-type: square;
    }
     
    ul ul{
     list-style-type: disc;
    }
     
    ul ul ul{
     list-style-type: none;
    }
     
    /********* form and related tag styles *********/
     
    /***********************************************/
    /* Layout Divs                                 */
    /***********************************************/
    #pagecell1{
    	position:absolute;
    	top: 113px;
    	left: 17px;
    	right: 2%;
    	width:95.6%;
    	background-color: #ffffff;
    }
     
    #tl {
    	position:absolute;
    	top: -1px;
    	left: -1px;
    	margin: 0px;
    	padding: 0px;
    	z-index: 100;
    	background-color: #F4F4F4;
    }
     
    #tr {
    	position:absolute;
    	top: -1px;
    	right: -1px;
    	margin: 0px;
    	padding: 0px;
    	z-index: 100;
    	background-color: #FFFFFF;
    }
     
    #masthead{
    	position: absolute;
    	top: 0px;
    	left: 2%;
    	right: 2%;
    	width:95.6%;
     
    }
     
    #pageNav{
    	float: left;
    	width:178px;
    	padding: 0px;
    	background-color: #81C9E0;
    	border-right: 1px solid #cccccc;
    	border-bottom: 1px solid #cccccc;
    	font: small Verdana,sans-serif;
    }
     
    #content{
    	padding: 0px 10px 0px 0px;
    	margin:0px 0px 0px 178px;
    	border-left: 1px solid #ccd2d2;
    }
     
     
    /***********************************************/
    /* Component Divs                              */
    /***********************************************/
     
    #siteName{
    	margin: 0px;
    	padding: 16px 0px 8px 0px;
    	color: #ffffff;
    	font-weight: normal;
    }
     
    /************** utility styles *****************/
     
    #utility{
    	font: 75% Verdana,sans-serif;
    	position: absolute;
    	top: 16px;
    	right: 0px;
    	color: #919999;
    }
     
    #utility a{
    	color: #ffffff;
    }
     
    #utility a:hover{
    	text-decoration: underline;
    }
     
    /************** pageName styles ****************/
     
    #pageName{
    	padding: 0px 0px 14px 10px;
    	margin: 0px;
    	border-bottom:1px solid #ccd2d2;
    }
     
    #pageName h2{
    	font: bold 100% Arial,sans-serif;
    	color: #08387A;
    	margin:0px;
    	padding: 0px;
     
    }
     
    #pageName img{
    	position: absolute;
    	top: 4px;
    	right: 6px;
    	padding: 0px;
    	margin: 0px;
    }
     
    /************* globalNav styles ****************/
     
    #globalNav{
    position: relative;
    width: 100%;
    min-width: 640px;
    height: 32px;
    color: #08387A;
    padding: 0px;
    margin: 0px;
    background-image:  url("glbnav_background1.gif");
    }
     
    #globalNav img{
    	margin-bottom: -4px;
     
    }
     
    #gnl {
    	position: absolute;
    	top: 0px;
    	left:0px;
    }
     
    #gnr {
    	position: absolute;
    	top: 0px;
    	right:0px;
    }
     
    #globalLink{
    	position: absolute;
    	top: 6px;
    	height: 22px;
    	min-width: 640px;
    	padding: 0px;
    	margin: 0px;
    	left: 23px;
    	z-index: 100;
    }
     
     
    a.glink, a.glink:visited{
      	font-size: small;
      	color: #08387A;
    	font-weight: bold;
    	margin: 0px;
    	padding: 2px 5px 4px 5px;
    	border-right: 1px solid #8FB8BC;
    }
     
    a.glink:hover{
      	background-image:   url("glblnav_selected1.gif");
    	text-decoration: none;
    }
     
    .skipLinks {display: none;}
     
    /************ subglobalNav styles **************/
     
    .subglobalNav{
    	position: absolute;
    	top: 83px;
    	left: 6px;
    	/*width: 100%;*/
    	min-width: 640px;
    	height: 20px;
    	padding: 0px 0px 0px 10px;
    	visibility: hidden;
    	color: #ffffff;
    }
     
    .subglobalNav a:link, .subglobalNav a:visited {
    	font-size: 80%;
    	color: #ffffff;
    }
     
    .subglobalNav a:hover{
    	color: #CCCCCC;
    }
     
    /*************** search styles *****************/
     
    #search{
    	position: absolute;
    	top: 5px;
    	right: 10px;
    	z-index: 101;
    }
     
    #search input{
      font-size: 70%;
      margin: 0px  0px 0px 10px;
     }
     
    #search a:link, #search a:visited {
    	font-size: 80%;
    	font-weight: bold;
    	color: #08387A;
     
    }
     
    #search a:hover{
    	margin: 0px;
    }
     
     
    /************* breadCrumb styles ***************/
     
     
     
     
    /************** feature styles *****************/
     
    .feature{
    	padding: 0px 0px 10px 10px;
    	font-size: 80%;
    	min-height: 200px;
    	height: 200px;
    }
    html>body .feature {height: auto;}
     
    .feature h3{
    	font: bold 175% Arial,sans-serif;
    	color: #000000;
    	padding: 30px 0px 5px 0px;
    }
     
    .feature img{
    	float: left;
    	padding: 0px 10px 0px 0px;
    }
     
     
    /*************** story styles ******************/
     
    .story {
    	padding: 0px 0px 0px 10px;
    	font-size: 80%;
    }
     
    .story h3{
    	font: bold 125% Arial,sans-serif;
    	color: #000000;
    }
     
    .story p {
    	padding: 10px 0px 10px 0px;
    }
     
    .story a.capsule{
    	font: bold 1em Arial,sans-serif;
    	color: #08387A;
    	display:block;
    	padding-bottom: 5px;
    }
     
    .story a.capsule:hover{
    	text-decoration: underline;
    }
     
    td.storyLeft{
    	padding-right: 12px;
    }
     
     
    /************** siteInfo styles ****************/
     
    #siteInfo{
    	clear: both;
    	border-top: 1px solid #cccccc;
    	font-size: small;
    	color: #08387A;
    	padding: 10px 10px 10px 10px;
    	margin-top: 0px;
    }
     
    #siteInfo img{
    	padding: 4px 4px 4px 0px;
    	vertical-align: middle;
    }
     
     
    /************ sectionLinks styles **************/
     
    #sectionLinks{
    	margin: 0px;
    	padding: 0px;
     
    }
     
    #sectionLinks h3{
    	padding: 10px 0px 2px 10px;
    	border-bottom: 1px solid #cccccc;
    }
     
    #sectionLinks a:link, #sectionLinks a:visited {
    	display: block;
    	color: #08387A;
    	border-top: 1px solid #ffffff;
    	border-bottom: 1px solid #cccccc;
    	background-image:   url("bg_nav1.jpg");
    	font-weight: bold;
    	padding: 3px 0px 3px 10px;
    }
     
    #sectionLinks a:hover{
    	border-top: 1px solid #cccccc;
    	background-color: #08387A;
    	background-image: none;
    	font-weight: bold;
    	text-decoration: none;
    	color: #81C9E0;
    }
     
     
    /************* relatedLinks styles **************/
     
    .relatedLinks{
    	margin: 0px;
    	padding: 0px 0px 10px 10px;
    	border-bottom: 1px solid #cccccc;
    }
     
    .relatedLinks h3{
    	padding: 10px 0px 2px 0px;
    }
     
    .relatedLinks a{
    	display: block; 
    }
     
     
    /**************** advert styles *****************/
     
    #advert{
    	padding: 10px;
    }
     
    #advert img{
    	display: block;
    }
     
    /********************* end **********************/
       .clearboth { margin-bottom: 148px; }
    Merci de votre aide.

    Vous pouvez visualiser la page ici :
    http://guide-congresmedicaux.com/sit...es/Accueil.asp

  2. #2
    Membre confirmé Avatar de desert
    Profil pro
    Inscrit en
    Mai 2007
    Messages
    414
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Mai 2007
    Messages : 414
    Points : 479
    Points
    479
    Par défaut
    Dans ta fonction JS ImageBook(), tu as
    Code javascript : Sélectionner tout - Visualiser dans une fenêtre à part
    Book_Div=document.getElementById("sectionLinks");
    Or sectionLinks est l'id du div qui encadre le menu au-dessus de ton calendrier.
    Il faut donc que tu crées un nouveau div à la place que tu désires (en-dessous du calendrier je suppose), que tu lui définisses un id et que tu changes dans ta fonction le mot sectionLinks par l'id du div nouvellement créé.

  3. #3
    Membre émérite Avatar de Erwan31
    Profil pro
    Inscrit en
    Février 2008
    Messages
    2 177
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2008
    Messages : 2 177
    Points : 2 444
    Points
    2 444
    Par défaut
    Bonjour,
    ça vient du JS: tu as
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    B_LI.style.position=B_MI.style.position=B_RI.style.position="absolute";
    Le positionnement extrait l'image du flux normal qui n'a par conséquent aucun impact sur le placement des éléments adjacents.
    D'autre part la placement en haut du menu vient d'un top:0 (la valeur 0 étant calculée par en JS).
    Essayes donc d'obtenir une valeur de top correspondant au moins à celle du menu (en em ou pixel) et ajouter une marge basse au menu correspondant à celle de l'image.

  4. #4
    Membre du Club
    Profil pro
    Inscrit en
    Juillet 2008
    Messages
    90
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juillet 2008
    Messages : 90
    Points : 47
    Points
    47
    Par défaut
    Bonjour desert,

    J'ai envie d'essayer ta solution. Ok je crée un nouveau DIV avec un ID dans ma page ASP. Mais pour ma page de style, comment faire ?

    Merci d'avance

    Cédric.

  5. #5
    Membre du Club
    Profil pro
    Inscrit en
    Juillet 2008
    Messages
    90
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juillet 2008
    Messages : 90
    Points : 47
    Points
    47
    Par défaut
    Bonjour Erwan31,

    J'ai changé les valeurs au niveau des (B_MI.style.top=0+"px" et (B_RI.style.top=0+"px". Effectivement, mon image se trouve en dessous du calendrier, mais mon menu est variable en hauteur. Si il est court l'image est trop basse et si il est plus long l'image cache le menu. Y a-t'-il une possibilité d'indiquer une valeur variable en fonction du menu.

    Merci d'avance

    Cédric.


    Voici mon JS
    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
     
    <script type="text/javascript">
     
     
    // 7 variables to control behavior
    	var Book_Image_Width=70;
    	var Book_Image_Height=99;
    	var Book_Border=true;
    	var Book_Border_Color="#FFFFCC";
    	var Book_Speed=15;
    	var Book_NextPage_Delay=1500; //1 second=1000
    	var Book_Vertical_Turn=0;	
     
    // array to specify images and optional links. At least 4
    // If Link is not needed keep it ""
     
    	Book_Image_Sources=new Array(
    		"http://www.guide-congresmedicaux.com/site/GICM1livres/IMG/IMG2.gif","",
    		"http://www.guide-congresmedicaux.com/site/GICM1livres/IMG/IMG.gif","",
     
    		"http://www.guide-congresmedicaux.com/site/GICM1livres/IMG/IMG4.gif","",
    		"http://www.guide-congresmedicaux.com/site/GICM1livres/IMG/IMG3.gif","",
    		"http://www.guide-congresmedicaux.com/site/GICM1livres/IMG/IMG6.gif","",
    		"http://www.guide-congresmedicaux.com/site/GICM1livres/IMG/IMG5.gif","",
    		"http://www.guide-congresmedicaux.com/site/GICM1livres/IMG/IMG8.gif","",
    		"http://www.guide-congresmedicaux.com/site/GICM1livres/IMG/IMG7.gif","",
    		"http://www.guide-congresmedicaux.com/site/GICM1livres/IMG/IMG10.gif","",
    		"http://www.guide-congresmedicaux.com/site/GICM1livres/IMG/IMG9.gif","",
    		"http://www.guide-congresmedicaux.com/site/GICM1livres/IMG/IMG12.gif","",
    		"http://www.guide-congresmedicaux.com/site/GICM1livres/IMG/IMG11.gif","",
    		"http://www.guide-congresmedicaux.com/site/GICM1livres/IMG/IMG14.gif","",
    		"http://www.guide-congresmedicaux.com/site/GICM1livres/IMG/IMG13.gif","",
    		"http://www.guide-congresmedicaux.com/site/GICM1livres/IMG/IMG16.gif","",
    		"http://www.guide-congresmedicaux.com/site/GICM1livres/IMG/IMG15.gif","",
    		"http://www.guide-congresmedicaux.com/site/GICM1livres/IMG/IMG18.gif","",
    		"http://www.guide-congresmedicaux.com/site/GICM1livres/IMG/IMG17.gif","",
    		"http://www.guide-congresmedicaux.com/site/GICM1livres/IMG/IMG20.gif","",
    		"http://www.guide-congresmedicaux.com/site/GICM1livres/IMG/IMG19.gif","",
    		"http://www.guide-congresmedicaux.com/site/GICM1livres/IMG/IMG22.gif","",
    		"http://www.guide-congresmedicaux.com/site/GICM1livres/IMG/IMG21.gif","",
    		"http://www.guide-congresmedicaux.com/site/GICM1livres/IMG/IMG24.gif","",
    		"http://www.guide-congresmedicaux.com/site/GICM1livres/IMG/IMG23.gif","",
    		"http://www.guide-congresmedicaux.com/site/GICM1livres/IMG/IMG26.gif","",
    		"http://www.guide-congresmedicaux.com/site/GICM1livres/IMG/IMG25.gif","",
    		"http://www.guide-congresmedicaux.com/site/GICM1livres/IMG/IMG28.gif","",
    		"http://www.guide-congresmedicaux.com/site/GICM1livres/IMG/IMG27.gif","",
    		"http://www.guide-congresmedicaux.com/site/GICM1livres/IMG/IMG30.gif","",
    		"http://www.guide-congresmedicaux.com/site/GICM1livres/IMG/IMG29.gif","",
    		"http://www.guide-congresmedicaux.com/site/GICM1livres/IMG/IMG32.gif","",
    		"http://www.guide-congresmedicaux.com/site/GICM1livres/IMG/IMG31.gif",""		
     
     
    );
     
    /***************** DO NOT EDIT BELOW **********************************/
    	var B_LI,B_MI,B_RI,B_TI,B_Angle=0,B_CrImg=6,B_MaxW,B_Direction=1;
    	var B_MSz,B_Stppd=false;B_Pre_Img=new Array(Book_Image_Sources.length);
     
    	function ImageBook(){
    		if(document.getElementById){
    			for(i=0;i<Book_Image_Sources.length;i+=2){
    				B_Pre_Img[i]=new Image();B_Pre_Img[i].src=Book_Image_Sources[i]}
    			Book_Div=document.getElementById("sectionLinks");
    			B_LI=document.createElement("img");Book_Div.appendChild(B_LI);	
    			B_RI=document.createElement("img");Book_Div.appendChild(B_RI);
    			B_MI=document.createElement("img");Book_Div.appendChild(B_MI);	
    			B_LI.style.position=B_MI.style.position=B_RI.style.position="absolute";
    			B_LI.style.zIndex=B_RI.style.zIndex=0;B_MI.style.zIndex=1;
    			B_LI.style.top=(Book_Vertical_Turn?Book_Image_Height+1:0)+"px";
    			B_LI.style.left=0+"px";
    			B_MI.style.top=0+"px";
    			B_MI.style.left=(Book_Vertical_Turn?0:Book_Image_Width+1)+"px";
    			B_RI.style.top=0+"px";
    			B_RI.style.left=(Book_Vertical_Turn?0:Book_Image_Width+1)+"px";
    			B_LI.style.height=Book_Image_Height+"px";
    			B_MI.style.height=Book_Image_Height+"px";
    			B_RI.style.height=Book_Image_Height+"px";
    			B_LI.style.width=Book_Image_Width+"px";
    			B_MI.style.width=Book_Image_Width+"px";
    			B_RI.style.width=Book_Image_Width+"px";
    			if(Book_Border){
    				B_LI.style.borderStyle=B_MI.style.borderStyle=B_RI.style.borderStyle="solid";
    				B_LI.style.borderWidth=1+"px";
    				B_MI.style.borderWidth=1+"px";
    				B_RI.style.borderWidth=1+"px";
    				B_LI.style.borderColor=B_MI.style.borderColor=B_RI.style.borderColor=Book_Border_Color}
    			B_LI.src=B_Pre_Img[0].src;
    			B_LI.lnk=Book_Image_Sources[1];
    			B_MI.src=B_Pre_Img[2].src;
    			B_MI.lnk=Book_Image_Sources[3];
    			B_RI.src=B_Pre_Img[4].src;
    			B_RI.lnk=Book_Image_Sources[5];
    			B_LI.onclick=B_MI.onclick=B_RI.onclick=B_LdLnk;
    			B_LI.onmouseover=B_MI.onmouseover=B_RI.onmouseover=B_Stp;
    			B_LI.onmouseout=B_MI.onmouseout=B_RI.onmouseout=B_Rstrt;
    			BookImages()}}
     
    	function BookImages(){
    		if(!B_Stppd){
    			if(Book_Vertical_Turn){
    				B_MSz=Math.abs(Math.round(Math.cos(B_Angle)*Book_Image_Height));
    				MidOffset=!B_Direction?Book_Image_Height+1:Book_Image_Height-B_MSz;
    				B_MI.style.top=MidOffset+"px";
    				B_MI.style.height=B_MSz+"px"}
    			else{	B_MSz=Math.abs(Math.round(Math.cos(B_Angle)*Book_Image_Width));
    				MidOffset=B_Direction?Book_Image_Width+1:Book_Image_Width-B_MSz;
    				B_MI.style.left=MidOffset+"px";
    				B_MI.style.width=B_MSz+"px"}
    			B_Angle+=Book_Speed/720*Math.PI;
    			if(B_Angle>=Math.PI/2&&B_Direction){
    				B_Direction=0;
    				if(B_CrImg==Book_Image_Sources.length)B_CrImg=0;
    				B_MI.src=B_Pre_Img[B_CrImg].src;
    				B_MI.lnk=Book_Image_Sources[B_CrImg+1];
    				B_CrImg+=2}
    			if(B_Angle>=Math.PI){
    				B_Direction=1;
    				B_TI=B_LI;
    				B_LI=B_MI;
    				B_MI=B_TI;
    				if(Book_Vertical_Turn)B_MI.style.top=0+"px";
    				else B_MI.style.left=Book_Image_Width+1+"px";			
    				B_MI.src=B_RI.src;
    				B_MI.lnk=B_RI.lnk;
     
    				setTimeout("Book_Next_Delay()",Book_NextPage_Delay)}
    			else setTimeout("BookImages()",50)}
    		else setTimeout("BookImages()",50)}
     
    	function Book_Next_Delay(){
    			if(B_CrImg==Book_Image_Sources.length)B_CrImg=0;
    			B_RI.src=B_Pre_Img[B_CrImg].src;
    			B_RI.lnk=Book_Image_Sources[B_CrImg+1];
    			B_MI.style.zIndex=2;
    			B_LI.style.zIndex=1;
    			B_Angle=0;
    			B_CrImg+=2;
    		setTimeout("BookImages()",50)}
     
    	function B_LdLnk(){if(this.lnk)window.location.href=this.lnk}
    	function B_Stp(){B_Stppd=true;this.style.cursor=this.lnk?"pointer":"default"}
    	function B_Rstrt(){B_Stppd=false}
    </script>

  6. #6
    Membre émérite Avatar de Erwan31
    Profil pro
    Inscrit en
    Février 2008
    Messages
    2 177
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2008
    Messages : 2 177
    Points : 2 444
    Points
    2 444
    Par défaut
    Bonjour pour comme ncer, essaye en supprimant la ligne générant la valeur top (
    un élément positionné en absolute sans propriété de positionnement se place ou il se trouve dans le code). A tester sur IE6/7.

    Sinon remplacer le positionnement absolute par un positionnement relatif
    mais là ça exige sans doute certaines adaptations...

Discussions similaires

  1. Changer image au survol dans un menu
    Par lelectronique.com dans le forum Mise en page CSS
    Réponses: 2
    Dernier message: 29/06/2012, 16h05
  2. Image mal ancrée dans gabarits
    Par bubu181 dans le forum WinDev
    Réponses: 2
    Dernier message: 17/02/2010, 15h38
  3. [W3C] FOOTER mal positionné dans une colonne
    Par miltonis dans le forum Balisage (X)HTML et validation W3C
    Réponses: 8
    Dernier message: 28/12/2005, 16h38
  4. code HTML pour mettre une image en background dans un menu
    Par Link14 dans le forum Balisage (X)HTML et validation W3C
    Réponses: 2
    Dernier message: 16/10/2005, 12h11

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