Oups!
Donc le expandingMenu.js est:
function expandingMenu(num) {
var speed = 500;
var item_title = $("#menu ul").eq(num).children(":first");
var items = $("#menu ul").eq(num).children().filter(function (index) { return index > 0; });
/* hide items if not active */
if (items.is(".active") == false) {
items.hide();
}
/* add click functions + pointer to title */
item_title.css({cursor:"pointer"}).toggle(
function () {
items.show(speed);
}, function () {
items.hide(speed);
}
)
}[/code]
Le style.css est:
Code HTML :
/**
* CSS
*
* @version 1.0
* @author Vaska
* @author Gregory Cadar
*/
* {
margin: 0;
padding: 0;
}
body {
font-size: 10px;
font-family: Verdana, sans-serif;
background-color: #FFFFFF;
}
#content .container a, .dyn, #menu li a:hover, #menu li.active a {
color:#66CCCC;
}
body.section-1 {
background-image: url(images/background.jpg);
background-repeat: no-repeat;
background-position: 215px 0;
background-attachment: fixed;
}
body.section-2 { }
body.section-3 { }
a:link { text-decoration: none; color:#666666; font-size:11px; }
a:active { text-decoration: none; color:#66CCCC; }
a:visited { text-decoration: line-through; color:#999999; }
a:hover { text-decoration: none; color:#66CCCC; }
a img { border: none; }
#menu {
width: 215px;
overflow: auto;
top: 0;
bottom: 0;
left: 0;
position: fixed;
height: 100%;
margin-left: 28px;
margin-top: 0px;
margin-bottom: 0px;
margin-right: 25px;
background-image:url(images/fondmenu.gif);
}
#menu ul {
list-style: none;
margin: 0 0 0 0;
}
#menu ul li.section-title {
border-bottom: 1px solid #999999;
color:#000000
text-decoration:none;
text-indent:0px;
font-family:Arial, Helvetica, sans-serif;
font-size:11px;
font-style: normal;
font-weight:300;
line-height:1.7em;
}
.menucontainer {
padding: 0px 15px 0px 0px;
}
#menutext {
padding: 0px 15px 0px 15px;
}
#content {
height: 100%;
margin: 0 0 0 250px;
top: 0;
clear: left;
}
.container {
padding: 119px 25px 25px 75px;
}
#content p { width: 400px; margin-bottom: 9px; }
#header {
padding: 20px 10px 0px 0px;
height: 70px;
width:192px;
}
p {
margin: 0 0 9px 0;
}
h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 16px; }
h4 { font-size: 10px; font-weight:100; color:#666666;}
h5 {
font-size: 11px;
line-height:1.5em;
font-family: Arial, Helvetica, sans-serif;
color:#999999;
font-style:normal;
font-weight:normal;
}
#img-container { margin: 0; padding: 0; }
#img-container p { width: 400px; margin: 0; padding: 0 0 12px 0; }
#once { clear: left; }