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

Dreamweaver Discussion :

PROBLEME AFFICHAGE BARRE DE MENU SPRY HORIZONTALE


Sujet :

Dreamweaver

  1. #1
    Nouveau Candidat au Club
    Inscrit en
    Mars 2009
    Messages
    2
    Détails du profil
    Informations forums :
    Inscription : Mars 2009
    Messages : 2
    Points : 1
    Points
    1
    Par défaut PROBLEME AFFICHAGE BARRE DE MENU SPRY HORIZONTALE
    Bonjour a tous,



    le probleme que je rencontre se situe au niveau de la barre de menu spry.
    quand j'affiche ma page sur IE ou firefox, les sous menu reste tout le temps visible.
    ce que je souhaiterai c est avoir le menu visible et les sous menus visible qu au survol de la souris!
    le pire c 'est qu'au depart ils s'affichaient correctement, mais j'ai tellement bidouillé les propriété et les style CSS que je n arrive pas a trouver l'erreur que j ai faite . et ca fait 2 jours que je suis dessus a comparer avec des tutos... et je ne trouve rien!

    ainsi ma question est la suivante: qu'est ce que j ai modifié??? et comment faire s'afficher correctement les sous menus?

    Merci d'avance!

  2. #2
    Membre averti

    Inscrit en
    Mai 2008
    Messages
    348
    Détails du profil
    Informations forums :
    Inscription : Mai 2008
    Messages : 348
    Points : 397
    Points
    397
    Par défaut
    cela doit se passer au niveau du code javascript je suppose.
    Mais tu devrais poster l'url de ta page ou au minimum le code source pour que l'on puisse t'aider.

  3. #3
    Nouveau Candidat au Club
    Inscrit en
    Mars 2009
    Messages
    2
    Détails du profil
    Informations forums :
    Inscription : Mars 2009
    Messages : 2
    Points : 1
    Points
    1
    Par défaut
    VOICI LE CODE SOURCE:
    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
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>LB Home Style</title>
    <style type="text/css">
    <!--
    #CADREBLANC {
    	height: 380px;
    	width: 620px;
    	margin-top: 0px;
    	margin-left: 285px;
    }
    #PIED {
    	height: 75px;
    	width: 377px;
    	margin-top: 0px;
    	margin-left: 302px;
    	padding: 0px;
    	border-top-width: 0px;
    	border-right-width: 0px;
    	border-bottom-width: 0px;
    	border-left-width: 0px;
    	text-align: center;
    }
    #ARRIEREPLAN {
    	background-image: url(site%20web/jpeg/JAPONISANT/FOND%20copie.jpg);
    	height: 600px;
    	width: 1200px;
    	margin-right: auto;
    	margin-left: auto;
    }
    #MENU {
    	height: 45px;
    	width: 475px;
    	font-family: Impact, Verdana, "Arial Black", Arial;
    	font-size: 17px;
    	text-align: center;
    	margin-top: 0px;
    	margin-left: 360px;
    	font-style: normal;
    	font-weight: 400;
    	color: #000;
    }
    #ARRIEREPLAN #PIED2 ul a {
    	color: #000;
    	text-decoration: none;
    }
    #ARRIEREPLAN #VERSION ul {
    	list-style-type: none;
    	display: inline;
    	margin: 0px;
    	font-family: Verdana, Geneva, sans-serif;
    	font-size: 12px;
    	font-weight: bold;
    	padding-top: 50px;
    }
    #ARRIEREPLAN #PIED2 ul a:hover {
    	color: #FF8000;
    }
    #PIED2 {
    	height: 75px;
    	width: 205px;
    	margin-top: -75px;
    	margin-left: 680px;
    	text-align: center;
    }
    #ARRIEREPLAN #PIED2 ul {
    	list-style-type: none;
    	margin: 0px;
    	padding-right: 0px;
    	padding-left: 0px;
    	font-family: Impact, Verdana, "Arial Black", Arial;
    	font-size: 16px;
    	color: #000;
    	padding-top: 51px;
    }
    #ARRIEREPLAN #VERSION ul li a {
    	color: #000;
    	text-decoration: none;
    }
    #ARRIEREPLAN #VERSION ul li a:hover {
    }
    .ESPACE2 {
    	margin-right: 10px;
    }
    #ARRIEREPLAN #PIED2 ul li {
    	display: inline;
    }
    .ESPACE {
    	margin-right: 15px;
    }
    .GRAS {
    	font-weight: bold;
    }
    #ARRIEREPLAN #PIED p {
    	font-family: Verdana, Geneva, sans-serif;
    	font-size: 10px;
    	font-weight: normal;
    	margin: 0px;
    	padding-top: 58px;
    }
    #VERSION {
    	height: 55px;
    	width: 120px;
    	margin-left: 810px;
    	margin-top: 0px;
    	text-align: center;
    }
    #ARRIEREPLAN #VERSION ul li {
    	padding-top: 37px;
    	margin: 0px;
    }
    -->
    </style>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    </head>
    
    <body>
    <div id="ARRIEREPLAN">
      <div id="VERSION">
      <ul>
        <li><a href="homeenglish.html">English version</a></li>
        </ul>
      </div>
      <div id="MENU">
        <ul id="MenuBar1" class="MenuBarHorizontal">
          <li><a href="#">HOME</a>      </li>
          <li><a href="#" class="MenuBarItemSubmenu">ARCHITECTURE D'INTERIEUR</a>
            <ul>
              <li><a href="#">Prestations</a></li>
              <li><a href="#">R&eacute;alisations</a></li>
            </ul>
          </li>
          <li><a class="MenuBarItemSubmenu" href="#">HOME STAGING</a>
            <ul>
              <li><a href="#">Prestations</a>          </li>
              <li><a href="#">R&eacute;alisations</a></li>
    </ul>
          </li>
          <li><a href="#">CONTACT</a></li>
        </ul>
      </div>
      <div id="CADREBLANC">Placez ici le contenu de  id "CADREBLANC"</div>
      <div id="PIED">
        <p><span class="GRAS">LB Home Style</span> rue Cacel 82500 LARRAZET Tél: 06.75.05.01.51</p>
      </div>
      <div id="PIED2">
        <ul>
          <li class="ESPACE2"><a href="liens.html">LIENS</a></li>
          <li><a href="mentionslegales.html">MENTIONS LEGALES</a></li>
        </ul>
      </div>
    </div>
    <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    </body>
    </html>
    ET VOICI LE SPRYMENUBARHORIZONTAL
    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
    @charset "UTF-8";
    
    /* SpryMenuBarHorizontal.css - version 0.6 - Spry Pre-Release 1.6.1 */
    
    /* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */
    
    /*******************************************************************************
    
     LAYOUT INFORMATION: describes box model, positioning, z-order
    
     *******************************************************************************/
    
    /* The outermost container of the Menu Bar, an auto width box with no margin or padding */
    ul.MenuBarHorizontal
    {
    	margin: 0;
    	padding: 0;
    	list-style-type: none;
    	font-size: 100%;
    	cursor: default;
    	width: auto;
    }
    /* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
    ul.MenuBarActive
    {
    	z-index: 1000;
    }
    /* Menu item containers, position children relative to this container and are a fixed width */
    ul.MenuBarHorizontal li
    {
    	margin: 0;
    	list-style-type: none;
    	font-size: 100%;
    	position: relative;
    	text-align: left;
    	width: auto;
    	float: left;
    	padding: 0;
    }
    /* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
    ul.MenuBarHorizontal ul
    {
    	margin: 0;
    	list-style-type: none;
    	font-size: 100%;
    	z-index: 1020;
    	cursor: default;
    	position: absolute;
    	padding: 0;
    	width: 8.2em;
    	left: -1000;
    	visibility: visible;
    }
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
    {
    	left: auto;
    	background-color: #FFF;
    
    }
    /* Menu item containers are same fixed width as parent */
    ul.MenuBarHorizontal ul li
    {
    	width: 8.2em;
    }
    /* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
    ul.MenuBarHorizontal ul ul
    {
    	position: absolute;
    	margin: -5% 0 0 95%;
    }
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible
    {
    	left: auto;
    	top: 0;
    }
    
    /*******************************************************************************
    
     DESIGN INFORMATION: describes color scheme, borders, fonts
    
     *******************************************************************************/
    
    /* Submenu containers have borders on all sides */
    ul.MenuBarHorizontal ul
    {
    	border: 1px solid #CCC;
    }
    /* Menu items are a light gray block with padding and no text decoration */
    ul.MenuBarHorizontal a
    {
    	display: block;
    	cursor: pointer;
    	color: #000;
    	text-decoration: none;
    	padding-right: 14px;
    	padding-left: 14px;
    	font-family: Impact, Verdana, "Arial Black", Arial;
    	font-size: 16px;
    }
    /* Menu items that have mouse over or focus have a blue background and white text */
    ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
    {
    	color: #FF8000;
    	background-color: #333;
    }
    /* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
    ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible
    {
    	color: #FF8000;
    	background-color: #333;
    }
    
    /*******************************************************************************
    
     SUBMENU INDICATION: styles if there is a submenu under a given menu item
    
     *******************************************************************************/
    
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenu
    {
    	background-image: url(url(SpryMenuBarDown.gif);
    
    ); 		background-repeat: no-repeat;
    	background-position: 95% 50%;
    
    }
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenu
    {
    	background-image: url(url(SpryMenuBarDown.gif);
    
    ); 		background-repeat: no-repeat;
    	background-position: 95em 50em;
    	background-color: #FFF;
    
    }
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenuHover
    {
    	background-image: url(url(SpryMenuBarDown.gif);
    ); 	background-repeat: no-repeat;
    	background-position: 95% 50%;
    
    }
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover
    {
    	background-image: url(url(SpryMenuBarDown.gif);
    ); 	background-repeat: no-repeat;
    	background-position: 95px 50px;
    
    }
    
    /*******************************************************************************
    
     BROWSER HACKS: the hacks below should not be changed unless you are an expert
    
     *******************************************************************************/
    
    /* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
    ul.MenuBarHorizontal iframe
    {
    	position: absolute;
    	z-index: 1010;
    
    
    	filter:alpha(opacity:0.1);
    }
    /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
    {
    	ul.MenuBarHorizontal li.MenuBarItemIE
    	{
    		display: inline;
    		f\loat: left;
    		background: #FFF;
    	}
    }
    ESPERANT QUE CA VOUS AIDE A RESOUDRE MON PB!!!!

    MERCI ENCORE!

Discussions similaires

  1. Barre de menu spry
    Par ludopene dans le forum Mise en page CSS
    Réponses: 2
    Dernier message: 26/09/2009, 07h36
  2. Affichage d'un menu spry sous IE7
    Par Jul11410 dans le forum Mise en page CSS
    Réponses: 1
    Dernier message: 13/05/2009, 13h21
  3. [CS4] problème barre de menu spry
    Par ratat dans le forum Dreamweaver
    Réponses: 3
    Dernier message: 03/03/2009, 11h40
  4. [IE] Problème d'affichage barre de menu
    Par Le Pharaon dans le forum Autres Logiciels
    Réponses: 11
    Dernier message: 23/06/2006, 16h11
  5. [Conception] Probleme affichage 1ere rubrique menu
    Par vincedjs dans le forum PHP & Base de données
    Réponses: 2
    Dernier message: 27/03/2006, 11h23

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