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

HTML Discussion :

comment rajouter un menu


Sujet :

HTML

  1. #1
    Membre à l'essai
    Profil pro
    Inscrit en
    Mai 2009
    Messages
    4
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mai 2009
    Messages : 4
    Par défaut comment rajouter un menu
    Bonjour je viens de faire un nouveau menu pour un site mais voila le dernier onglet jeux n'apparais pas sur la page d'accueil il me manque quoi merci de vos réponses.

    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
    <html>
     
    <head>
    <meta http-equiv="Content-Language" content="fr">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>Nouvelle page 1</title>
    </head>
     
    <body>
     
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <title>Page1</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <style type="text/css" media="screen">
    <!--
    body {
    margin: 0;
    padding: 0;
    background: white;
    font: 80% verdana, arial, sans-serif;
    }
    li {
    margin: 0;
    padding: 0;
    list-style-type: none;
    }
    ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    }
    dd {
    margin: 0;
    padding: 0;
    list-style-type: none;
    }
    dt {
    margin: 0;
    padding: 0;
    list-style-type: none;
    }
    dl {
    margin: 0;
    padding: 0;
    list-style-type: none;
    }
    #menu {
    position: absolute; /* placement du menu, à modifier selon vos besoins */
    top: 0;
    left: 0;
    }
    #menu {
    width: 15em;
    }
    #menu dt {
    cursor: pointer;
    margin: 2px 0;;
    height: 20px;
    line-height: 20px;
    text-align: center;
    font-weight: bold;
    border: 1px solid gray;
    background: #ccc;
    }
    #menu dd {
    border: 1px solid gray;
    }
    #menu li {
    text-align: center;
    background: #fff;
    }
    #menu dt a {
    color: #000;
    text-decoration: none;
    display: block;
    border: 0 none;
    height: 100%;
    }
    #menu li a {
    color: #000;
    text-decoration: none;
    display: block;
    border: 0 none;
    height: 100%;
    }
    #menu dt a:hover {
    background: #eee;
    }
    #menu li a:hover {
    background: #eee;
    }
    -->
    </style>
     
    <script type="text/javascript">
    <!--
    window.onload=montre;
    function montre(id) {
    var d = document.getElementById(id);
    for (var i = 1; i<=10; i++) {
    if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
    }
    if (d) {d.style.display='block';}
    }
    //-->
    </script>
     
    <div id="menu" style="width: 15em; position: absolute; top: 46px; left: 51px; height: 54991px; background-color: #FFFFFF">
    <dl style="list-style-type: none; margin: 0; padding: 0">
    <dt onmouseover="javascript:montre();" style="cursor: pointer; height: 20px; line-height: 20px; text-align: center; font-weight: bold; list-style-type: none; border: 1px solid gray; margin: 2px 0; padding: 0; background: #FFFFFF">
    <a title="Retour à l'accueil" style="color: #000; text-decoration: none; display: block; height: 100%; border: 0 none" href="file:///C:/alain/nouveau%20dossier%20grs/baby_gym%202.htm">
    Accueil</a></dt>
    </dl>
    <dl style="list-style-type: none; margin: 0; padding: 0">
    <dt onmouseover="javascript:montre('smenu1');" style="cursor: pointer; height: 20px; line-height: 20px; text-align: center; font-weight: bold; list-style-type: none; border: 1px solid gray; margin: 2px 0; padding: 0; background: #FFFFFF">
    <a style="color: #000; text-decoration: none; display: block; height: 100%; border: 0 none" href="file:///C:/alain/nouveau%20dossier%20grs/Baby%20Gym.htm">
    Baby Gym</a></dt>
    <dd id="smenu1" style="list-style-type: none; border: 1px solid gray; margin: 0; padding: 0">
    <ul style="list-style-type: none; margin: 0; padding: 0">
    <li style="text-align: center; list-style-type: none; margin: 0; padding: 0; background: #fff">
    <a style="color: #0066FF; text-decoration: none; display: block; height: 100%; border: 0 none" href="#">
    photo</a></li>
    <li style="text-align: center; list-style-type: none; margin: 0; padding: 0; background: #fff">
    <a style="color: #0066FF; text-decoration: none; display: block; height: 100%; border: 0 none" href="#">
    Sous-Menu 1.2</a></li>
    <li style="text-align: center; list-style-type: none; margin: 0; padding: 0; background: #fff">
    <a style="color: #0066FF; text-decoration: none; display: block; height: 100%; border: 0 none" href="#">
    Sous-Menu 1.3</a></li>
    <li style="text-align: center; list-style-type: none; margin: 0; padding: 0; background: #fff">
    <a style="color: #0066FF; text-decoration: none; display: block; height: 100%; border: 0 none" href="#">
    Sous-Menu 1.4</a></li>
    <li style="text-align: center; list-style-type: none; margin: 0; padding: 0; background: #fff">
    <a style="color: #0066FF; text-decoration: none; display: block; height: 100%; border: 0 none" href="#">
    Sous-Menu 1.5</a></li>
     
    </ul>
    </dd>
    </dl>
    <dl style="list-style-type: none; margin: 0; padding: 0">
    <dt onmouseover="javascript:montre('smenu3');" style="cursor: pointer; height: 20px; line-height: 20px; text-align: center; font-weight: bold; list-style-type: none; border: 1px solid gray; margin: 2px 0; padding: 0; background: #FFFFFF">
    Gym</dt>
    </dl>
    <dl style="list-style-type: none; margin: 0; padding: 0">
    <dd id="smenu3" style="list-style-type: none; border: 1px solid gray; margin: 0; padding: 0">
    <ul style="list-style-type: none; margin: 0; padding: 0">
    <li style="text-align: center; list-style-type: none; margin: 0; padding: 0; background: #fff">
    <a style="color: #0066FF; text-decoration: none; display: block; height: 100%; border: 0 none" href="#">
    Sous-Menu 3.1</a></li>
    <li style="text-align: center; list-style-type: none; margin: 0; padding: 0; background: #fff">
    <a style="color: #0066FF; text-decoration: none; display: block; height: 100%; border: 0 none" href="#">
    Sous-Menu 3.2</a></li>
    <li style="text-align: center; list-style-type: none; margin: 0; padding: 0; background: #fff">
    <a style="color: #0066FF; text-decoration: none; display: block; height: 100%; border: 0 none" href="#">
    Sous-Menu 3.3</a></li>
    <li style="text-align: center; list-style-type: none; margin: 0; padding: 0; background: #fff">
    <a style="color: #0066FF; text-decoration: none; display: block; height: 100%; border: 0 none" href="#">
    Sous-Menu 3.4</a></li>
    <li style="text-align: center; list-style-type: none; margin: 0; padding: 0; background: #fff">
    <a style="color: #0066FF; text-decoration: none; display: block; height: 100%; border: 0 none" href="#">
    Sous-Menu 3.5</a></li>
    </ul>
    </dd>
    </dl>
    <dl style="list-style-type: none; margin: 0; padding: 0">
    <dt onmouseover="javascript:montre('smenu4');" style="cursor: pointer; height: 20px; line-height: 20px; text-align: center; font-weight: bold; list-style-type: none; border: 1px solid gray; margin: 2px 0; padding: 0; background: #FFFFFF">
    Grs</dt>
    <dd id="smenu4" style="list-style-type: none; border: 1px solid gray; margin: 0; padding: 0">
    <ul style="list-style-type: none; margin: 0; padding: 0">
    <li style="text-align: center; list-style-type: none; margin: 0; padding: 0; background: #fff">
    <a style="color: #0066FF; text-decoration: none; display: block; height: 100%; border: 0 none" href="#">
    Sous-Menu 4.1</a></li>
    <li style="text-align: center; list-style-type: none; margin: 0; padding: 0; background: #fff">
    <a style="color: #0066FF; text-decoration: none; display: block; height: 100%; border: 0 none" href="#">
    Sous-Menu 4.2</a></li>
    <li style="text-align: center; list-style-type: none; margin: 0; padding: 0; background: #fff">
    <a style="color: #0066FF; text-decoration: none; display: block; height: 100%; border: 0 none" href="#">
    Sous-Menu 4.3</a></li>
    <li style="text-align: center; list-style-type: none; margin: 0; padding: 0; background: #fff">
    <a style="color: #0066FF; text-decoration: none; display: block; height: 100%; border: 0 none" href="#">
    Sous-Menu 4.3</a></li>
    <li style="text-align: center; list-style-type: none; margin: 0; padding: 0; background: #fff">
    <a style="color: #0066FF; text-decoration: none; display: block; height: 100%; border: 0 none" href="#">
    Sous-Menu 4.3</a></li>
    <dl style="list-style-type: none; margin: 0; padding: 0">
    <dt onmouseover="javascript:montre('smenu4');" style="cursor: pointer; height: 20px; line-height: 20px; text-align: center; font-weight: bold; list-style-type: none; border: 1px solid gray; margin: 2px 0; padding: 0; background: #FFFFFF">
    Jeux</dt>
    </dl>
    </div>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
     
    </body>
     
    </html>

  2. #2
    Membre Expert
    Avatar de Jumano
    Profil pro
    Inscrit en
    Février 2007
    Messages
    1 163
    Détails du profil
    Informations personnelles :
    Âge : 56
    Localisation : France, Rhône (Rhône Alpes)

    Informations forums :
    Inscription : Février 2007
    Messages : 1 163
    Par défaut
    Bonjour,
    Fais attention lorsque tu ouvres des balises à bien les refermer ensuite.
    Ici tu as oublié de refermer les balises de ton "sous-menu 4" correspondant à "GRS" :
    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
    <dl style="list-style-type: none; margin: 0; padding: 0">
    <dt onmouseover="javascript:montre('smenu4');" style="cursor: pointer; height: 20px; line-height: 20px; text-align: center; font-weight: bold; list-style-type: none; border: 1px solid gray; margin: 2px 0; padding: 0; background: #FFFFFF">
    Grs</dt>
    <dd id="smenu4" style="list-style-type: none; border: 1px solid gray; margin: 0; padding: 0">
    <ul style="list-style-type: none; margin: 0; padding: 0">
    <li style="text-align: center; list-style-type: none; margin: 0; padding: 0; background: #fff">
    <a style="color: #0066FF; text-decoration: none; display: block; height: 100%; border: 0 none" href="#">
    Sous-Menu 4.1</a></li>
    <li style="text-align: center; list-style-type: none; margin: 0; padding: 0; background: #fff">
    <a style="color: #0066FF; text-decoration: none; display: block; height: 100%; border: 0 none" href="#">
    Sous-Menu 4.2</a></li>
    <li style="text-align: center; list-style-type: none; margin: 0; padding: 0; background: #fff">
    <a style="color: #0066FF; text-decoration: none; display: block; height: 100%; border: 0 none" href="#">
    Sous-Menu 4.3</a></li>
    <li style="text-align: center; list-style-type: none; margin: 0; padding: 0; background: #fff">
    <a style="color: #0066FF; text-decoration: none; display: block; height: 100%; border: 0 none" href="#">
    Sous-Menu 4.3</a></li>
    <li style="text-align: center; list-style-type: none; margin: 0; padding: 0; background: #fff">
    <a style="color: #0066FF; text-decoration: none; display: block; height: 100%; border: 0 none" href="#">
    Sous-Menu 4.3</a></li>
    </ul> //Cette Balise
    </dd> //Cette Balise
    
    </dl> //Cette Balise
    <dl style="list-style-type: none; margin: 0; padding: 0">
    <dt onmouseover="javascript:montre('smenu4');" style="cursor: pointer; height: 20px; line-height: 20px; text-align: center; font-weight: bold; list-style-type: none; border: 1px solid gray; margin: 2px 0; padding: 0; background: #FFFFFF">
    Jeux</dt>
    </dl>

  3. #3
    Membre à l'essai
    Profil pro
    Inscrit en
    Mai 2009
    Messages
    4
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mai 2009
    Messages : 4
    Par défaut
    merci de ta reponse mais je suis un novice dans ce domaine et j'essaye d'apprendre et surtout de comprendre mais c'est durdur et vous super avec votre patiente pour apprendre

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

Discussions similaires

  1. Comment rajouter le menu Oracle sous gnome/OEL
    Par ZashOne dans le forum Installation
    Réponses: 0
    Dernier message: 08/07/2010, 13h53
  2. Réponses: 5
    Dernier message: 25/12/2004, 23h17
  3. comment rajouter un caractère " ' " dans une requê
    Par GDVL dans le forum MS SQL Server
    Réponses: 5
    Dernier message: 30/07/2004, 16h58
  4. Comment créer un menu popup style XP ?
    Par chaours dans le forum Composants VCL
    Réponses: 4
    Dernier message: 29/09/2003, 09h38
  5. [langage] Comment rajouter des champs dans une liste
    Par toto_titi dans le forum Langage
    Réponses: 4
    Dernier message: 28/08/2003, 14h09

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