/* --------------------------------------------- HEADER */
#main_header .content{
- border-bottom: solid 1px #d9d9d9;
- padding: 10px 0;
+ border-bottom: solid 1px #e9e9e9;
+ padding: 10px 0 3px 0;
}
#main_header .content h1{
#menu_top ul li a:hover{
color: #000066;
- background-color: #f1f1f1;
+ background-color: #f7f7f7;
}
-#menu_top ul li ul{
+#menu_top ul li .menu{
+ padding: 11px 0 0 0;
position: absolute;
top: 100%;
left: 0;
display: none;
+ background-image: url(../images/sub_menu.png);
+ background-position: 1em 6px;
+ background-repeat: no-repeat;
+}
+
+#menu_top ul li ul{
+ border: solid 1px #e9e9e9;
+ border-radius: 2px;
+ background-color: #ffffff;
}
#menu_top ul li ul li{
float: none;
+ padding: 0;
}
-#menu_top ul li ul li ul{
+#menu_top ul li ul li a{
+ border: none;
+}
+
+#menu_top ul li ul li .menu{
+ padding: 0 0 0 6px;
top: 0;
left: 100%;
+ background-image: url(../images/sub_sub_menu.png);
+ background-position: 1px 0.8em;
+ background-repeat: no-repeat;
}
/* --------------------------------------------- CONTENUS */
/* --------------------------------------------- FOOTER */
#main_footer .content{
- border-top: solid 1px #d9d9d9;
+ border-top: solid 1px #e9e9e9;
padding-bottom: 20px;
}
function get_menu_ul($menu, $indent = ""){
$html = "";
if($menu["subs"]){
- $html .= $indent."<ul>\n";
+ $html .= $indent."<div class=\"menu\"><ul>\n";
foreach($menu["subs"] as $sub){
$html .= $indent." <li>\n";
$html .= $indent." <a href=\"".$sub["url"]."\">".$sub["intitule"]."</a>\n";
$html .= get_menu_ul($sub, $indent." ");
$html .= $indent." </li>\n";
}
- $html .= $indent."</ul>\n";
+ $html .= $indent."</ul></div>\n";
}
return $html;
}
function init_menu_top(){
$("#menu_top ul li").hover(
function(){
- $(this).find("ul").first().slideDown(200);
+ $(this).find(".menu").first().slideDown(200);
},
function(){
- $(this).find("ul").first().slideUp(200);
+ $(this).find(".menu").first().slideUp(200);
}
);
}
mtweb - base de programmation pour application web
- copyright 2010-2012 by dj3c1t
+ copyright 2010-2013 by dj3c1t
This program is free software: you can redistribute it and/or modify