Salut,
Pas de problème pour donner mon code,
le but de ce topic étant que chacun apporte son "+" afin que de nouvelles idées originales jaillissent et que cela puisse inspirer nos (dont moi) Xoopsiens.
Pour le menu du haut, AUCUNE modification dans le fichier template,
j'ai "juste" ajouté quelques lignes dans les 2 fichers css liés au menu dynamique css horizontal.
Ces 2 fichiers sont :
/modules/multiMenu/modules/multiMenu/script/08/basic_dd.css (Firefox et autres naigateurs)
/modules/multiMenu/modules/multiMenu/script/08/basic_dd_ie.css (IE)
de plus j'ai ajouté 2 images :
vu_vert.gif (la coche jaune ombrée) sur fond bleu
vu-gris.gif , le fond bleu sans coche
Bien sur, vu-gris.gif peut-être une coche grisée, mais j'ai préféré ne rien mettre, car sinon, l'affichage est un peu chargé.
Enfin, pour la bande bleue, c'est un lien type "note"
Ci-dessous le fichier basic_dd.css
Citation :
/* common styling */
/* set up the overall width of the menuhcss div, the font and the margins */
li { margin-left: 0;}
.menuhcss {
font-family: arial, sans-serif;
margin:0 0;
}
/* remove the bullets and set the margin and padding to zero for the unordered list */
.menuhcss ul {
padding:0;
margin:0;
list-style-type: none;
}
/* float the list so that the items are in a line and their position relative so that the drop down list will appear in the right place underneath each list item */
.menuhcss ul li {
float:left;
position:relative;
list-style-type: none;
}
/* style the links to be 104px wide by 30px high with a top and right border 1px solid white. Set the background color and the font size. */
.menuhcss ul li a, .menuhcss ul li a:visited {
display: block;
text-align: left;
text-decoration: none;
height: 20px;
color: #093F7D;
border: 1px solid #FFCC33;
border-width: 0px 1px 0px 1px;
background: transparent;
line-height: 20px;
font-size: 11px;
padding-left: 5px;
}
/* make the dropdown ul invisible */
.menuhcss ul li ul {
display: none;
}
/* specific to non IE browsers */
/* set the background and foreground color of the main menuhcss li on hover */
.menuhcss ul li:hover a {
color: #FFCC33; /*background:#b3ab79;*/
background: #6096d4;
}
/* make the sub menuhcss ul visible and position it beneath the main menuhcss list item */
.menuhcss ul li:hover ul {
display:block;
position:absolute;
top:21px;
}
/* style the background and foreground color of the submenu links */
.menuhcss ul li:hover ul li a {
display: block;
background: #FFCC33;
color: #093F7D;
padding-left: 17px;
text-align: left;
background-image: url(vu_gris.gif);
background-repeat: repeat-y;
background-position: left;
}
/* style the background and forground colors of the links on hover */
.menuhcss ul li:hover ul li a:hover {
padding-left: 17px;
background-image: url(vu_vert.gif);
background-repeat: no-repeat;
background-position: left;
}
/*
.menuhcss ul li:hover ul li.cat a {
background:#ffffff;
color:red;
}
.menuhcss ul li:hover ul li.note a {
background:#ffffff;
color:green;
}
*/
.menuhcss ul li:hover a.cat {
background:#ffffff;
color:red;
}
.menuhcss ul li:hover a.cat:hover{
background:#ffffff;
color:blue;
}
.menuhcss ul li:hover a.note {
background: #6096d4;
color: #ffCC33;
font-style: italic;
background-image: url(vu_gris.gif);
}
.menuhcss ul li:hover a.note:hover {
background:#ffCC33;
color:blue;