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 :

probleme avec ce code html


Sujet :

HTML

  1. #1
    Futur Membre du Club
    Profil pro
    Inscrit en
    Mai 2009
    Messages
    4
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mai 2009
    Messages : 4
    Points : 5
    Points
    5
    Par défaut probleme avec ce code html
    Bonsoir j'ai besoin d'un petit renseignement au sujet de ce code .
    j'aimerai savoir comment faire pour que celui ci revienne au point de depart sans a avoir besoin de cliquée sur Accueil
    les sous menu reste ouvert
    merci de votre aide.

    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
    <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; /
    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; 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="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">
            Baby Gym</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>
                <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.6</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>   
        </dd>
        <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="#">
                Photos</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="#">
                Photos</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>
            </ul>
            </dd>
        </dl>
    </div>
     
    <p>&nbsp;</p>
    <p>&nbsp;</p>
     
    </body>
     
    </html>

  2. #2
    Expert éminent
    Avatar de 12monkeys
    Homme Profil pro
    Webmaster
    Inscrit en
    Novembre 2006
    Messages
    4 093
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 47
    Localisation : France, Puy de Dôme (Auvergne)

    Informations professionnelles :
    Activité : Webmaster
    Secteur : Service public

    Informations forums :
    Inscription : Novembre 2006
    Messages : 4 093
    Points : 9 031
    Points
    9 031
    Par défaut
    Bonsoir

    Ton code n'est pas correcte, voici la structure que devrait avoir ton document :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    <DOCTYPE>
    <html>
    <head>
    <title>Nouvelle page 1</title>
    </head>
     
    <body>
     
    </body>
    </html>
    Balises meta dans la balise body, de même pour la balise <style type="text/css"> à placer entre les balises head.

    De plus voici une liste des doctype corrects : http://xhtml.developpez.com/faq/?pag...#html_doctypes

    Pour ton problème je n'ai rien compris

  3. #3
    Futur Membre du Club
    Profil pro
    Inscrit en
    Mai 2009
    Messages
    4
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mai 2009
    Messages : 4
    Points : 5
    Points
    5
    Par défaut réponse
    Merci a toi mais je suis novice et j'apprends avec frontpage et j'aimerai bien faire avancer mon site.
    http://pagesperso-orange.fr/grs.st.caprais/

  4. #4
    Rédacteur

    Avatar de danielhagnoul
    Homme Profil pro
    Étudiant perpétuel
    Inscrit en
    Février 2009
    Messages
    6 389
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 74
    Localisation : Belgique

    Informations professionnelles :
    Activité : Étudiant perpétuel
    Secteur : Enseignement

    Informations forums :
    Inscription : Février 2009
    Messages : 6 389
    Points : 22 933
    Points
    22 933
    Billets dans le blog
    125
    Par défaut
    Bonsoir.

    Il faudrait apprendre également à utiliser les styles CSS, margin et padding notamment, plutôt que d'écrire :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>

  5. #5
    Expert éminent
    Avatar de 12monkeys
    Homme Profil pro
    Webmaster
    Inscrit en
    Novembre 2006
    Messages
    4 093
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 47
    Localisation : France, Puy de Dôme (Auvergne)

    Informations professionnelles :
    Activité : Webmaster
    Secteur : Service public

    Informations forums :
    Inscription : Novembre 2006
    Messages : 4 093
    Points : 9 031
    Points
    9 031
    Par défaut
    Citation Envoyé par alaindu_33 Voir le message
    Merci a toi mais je suis novice et j'apprends avec frontpage et j'aimerai bien faire avancer mon site.
    http://pagesperso-orange.fr/grs.st.caprais/
    Je comprends, mais cela ne t'empêche pas de poser une question claire...

    En attendant tu peut déjà regarder les cours HTML et CSS.

  6. #6
    Expert confirmé
    Avatar de laurentSc
    Homme Profil pro
    Webmaster débutant perpétuel !
    Inscrit en
    Octobre 2006
    Messages
    10 470
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 60
    Localisation : France, Isère (Rhône Alpes)

    Informations professionnelles :
    Activité : Webmaster débutant perpétuel !
    Secteur : Industrie

    Informations forums :
    Inscription : Octobre 2006
    Messages : 10 470
    Points : 5 830
    Points
    5 830
    Billets dans le blog
    1
    Par défaut
    Bonjour,

    quelques remarques :
    - "accueil" ne s'écrit pas "acceuil" (écrit comme ça partout sauf sur la page d'accueil)
    - sur la page "liens", il vaudrait mieux ouvrir les liens dans une nouvelle fenêtre (target="_blank")
    - à plusieurs endroits, le lien "compétitions" ne marche pas.

    Je connais un logiciel (Lauyan Toweb, pour environ 30 euros) qui m'a permis de faire notamment ça. Il génère notamment automatiquement le menu (c'est du html et du javascript, générés par le logiciel), le bandeau et les notes de bas de page. Pour en savoir plus. (le gars qui me l'a fait connaître l'utilise sans même connaître le html).

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

Discussions similaires

  1. Problème avec mon code et avec gcc
    Par JavaAcro dans le forum Linux
    Réponses: 3
    Dernier message: 13/06/2006, 22h47
  2. Probleme avec un formulaire html
    Par SarahT dans le forum Balisage (X)HTML et validation W3C
    Réponses: 6
    Dernier message: 05/06/2006, 13h47
  3. Probleme avec mes formulaire html dans mes pages web
    Par foungnigue dans le forum Balisage (X)HTML et validation W3C
    Réponses: 3
    Dernier message: 28/12/2005, 19h07
  4. Probleme avec le code
    Par vivu dans le forum C++
    Réponses: 10
    Dernier message: 29/10/2005, 20h52
  5. [Struts] Problème de génération code HTML
    Par GNK dans le forum Struts 1
    Réponses: 4
    Dernier message: 08/09/2005, 16h10

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