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
| <?php header('Content-Language: en'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Vertical expanding menu in CSS</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<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>
<style type="text/css">
<!--
body {
margin: 0;
padding: 0;
background: white;
font: 80% verdana, arial, sans-serif;
}
dl, dt, dd, ul, li {
margin: 0;
padding: 0;
list-style-type: none;
}
#menu {
position: absolute;
top: 0;
left: 0;
}
dl#menu {
width: 90%;
}
dl#menu dt {
cursor: pointer;
margin: 2px 0;;
height: 20px;
line-height: 20px;
text-align: center;
font-weight: bold;
border: 1px solid gray;
background: #ccc;
}
dl#menu dd {
border: 1px solid gray;
}
dl#menu li {
text-align: center;
background: #fff;
}
dl#menu li a, dl#menu dt a {
color: #000;
text-decoration: none;
display: block;
border: 0 none;
height: 100%;
}
dl#menu li a:hover, dl#menu dt a:hover {
background: #eee;
}
#mentions {
font-family: verdana, arial, sans-serif;
position: absolute;
bottom : 200px;
left : 10px;
color: #000;
background-color: #ddd;
}
#mentions a {text-decoration: none;
color: #222;
}
#mentions a:hover{text-decoration: underline;
}
-->
</style>
</head>
<body>
<dl id="menu">
<dt onclick="javascript:montre(smenu2);">Présentation</dt>
<dd id="smenu2">
<ul>
<li><a href="#">Mot du Directeur</a></li>
<li><a href="#">L'Ecole en bref</a></li>
<li><a href="#">Infrastructure</a></li>
<li><a href="#">Témoignage</a></li>
</ul>
</dd>
<dt onclick="javascript:montre('smenu3');">Formation</dt>
<dd id="smenu3">
<ul>
<li><a href="#">Cursus des études</a></li>
<li><a href="#">Programmes</a></li>
</ul>
</dd>
<dt onclick="javascript:montre('smenu4');">Admission</dt>
<dd id="smenu4">
<ul>
<li><a href="#">Modalités d'admission</a></li>
<li><a href="#">Formulaires de préinscrption</a></li>
<li><a href="#">Concours</a></li>
</ul>
</dd>
<dt onclick="javascript:montre('smenu5');">Départements</dt>
<dd id="smenu5">
<ul>
<li><a href="#">Génie Informatique</a></li>
<li><a href="#">Génie Industriel</a></li>
<li><a href="#">OffShoring</a></li>
</ul>
</dd>
</dl>
</dl>
</body>
</html> |
Partager