Alors voila:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0025)http://localhost/shop.php -->
<HTML lang=fr xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>Bienvenue sur le site de </TITLE><LINK
href="sit test_fichiers/vl.css" type=text/css rel=stylesheet>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<SCRIPT language=javascript src="sit test_fichiers/js"></SCRIPT>
<SCRIPT type=text/javascript>
<!--
window.onload=montre;
function montre(id) {
var d = document.getElementById(id);
for (var i = 1; i<=15; i++) {
if (document.getElementById("smenu"+i)) {document.getElementById("smenu"+i).style.display="none";}
}
if (d) {d.style.display="block";}
}
//-->
</SCRIPT>
<META content="MSHTML 6.00.2900.2838" name=GENERATOR></HEAD>
<BODY>
<DIV id=global>
<DIV id=header></DIV>
<DIV id=haut>
<UL class=menuhaut>
<LI><A href="http://localhost/shop.php?mode=A"><IMG
src="sit test_fichiers/accueil1.gif"></A> </LI>
<LI><A href="http://localhost/shop.php?mode=P">Promos</A> </LI>
<LI><A href="http://localhost/shop.php?mode=N">Neuf</A> </LI>
<LI><A href="http://localhost/shop.php?mode=O">Occasions</A> </LI>
<LI><A href="http://localhost/shop.php?mode=R">Recherche</A> </LI>
<LI><A href="http://localhost/marques.php">Nos Marques</A> </LI>
<LI><A href="http://localhost/visite.php">Visite Shop</A> </LI>
<LI><A href="http://localhost/meteo.php">Météo</A> </LI>
<LI><A href="http://localhost/contact.php">Contact</A> </LI></UL></DIV>
<DIV id=main>
<DIV id=gauche>
<DL id=menu>
<DT onmouseover="javascript:montre('smenu1');"
onmouseout=javascript:montre();><A
href="http://localhost/shop.php?mode=A">Tous les produits</A>
<DT onmouseover="javascript:montre('smenu2');"
onmouseout=javascript:montre();><A
href="http://localhost/shop.php?mode=A&cat=2&subcat=10_12_13">Flotteurs</A>
</DT>
<DD id=smenu2 onmouseover="javascript:montre('smenu2');"
onmouseout=javascript:montre();>
<UL>
<LI><A
href="http://localhost/shop.php?mode=A&cat=2&subcat=13">Vague</A>
</LI>
<LI><A
href="http://localhost/shop.php?mode=A&cat=2&subcat=10">Slalom</A><
li> </LI>
<LI><A
href="http://localhost/shop.php?mode=A&cat=2&subcat=12">Freeride</A><
li> </LI></UL>
<DT onmouseover="javascript:montre('smenu3');"
onmouseout=javascript:montre();><A
href="http://localhost/shop.php?mode=A&cat=2&subcat=14_15_16">Voiles</A>
</DT>
<DD id=smenu3 onmouseover="javascript:montre('smenu3');"
onmouseout=javascript:montre();>
<UL>
<LI><A
href="http://localhost/shop.php?mode=A&cat=2&subcat=16">Vague</A>
</LI>
<LI><A
href="http://localhost/shop.php?mode=A&cat=2&subcat=14">Slalom</A><
li> </LI>
<LI><A
href="http://localhost/shop.php?mode=A&cat=2&subcat=15">Freeride</A><
li> </LI></UL>
<DT onmouseover="javascript:montre('smenu4');"
onmouseout=javascript:montre();><A
href="http://localhost/shop.php?mode=A&cat=2&subcat=17">Mats</A>
</DL></DIV>
<DIV id=milieu>A</DIV>
<DIV id=droite></DIV></DIV>
<DIV id=bas>
<DIV id=panier></DIV>
<DIV id=pied></DIV></DIV></DIV></BODY></HTML>
et le css
* {
margin: 0;
padding: 0;
border: 0;
/*font-family: sans-serif;
font-size: 1em;
font-weight: normal;
font-style: normal;
text-decoration: none;*/
}
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 0.8em;
margin: 0;
padding: 0;
background-image:url(images/background.jpg);
height:100%;
}
#header {
height: 50px;
background-image:url(images/bando1.gif);
}
#global {
position: relative;
width: 980px;
/*left: 50%;
margin-left: -515px;
*/margin-top:0px;
margin-left:auto;
margin-right: auto;
}
#haut {
height: 50px;
background-image:url(images/bando2.gif);
}
.menuhaut {
list-style-type: none;
margin: 0;
padding:0;
}
.menuhaut li {
float:left;
margin-right:1px;
}
.menuhaut a {
width: 100px;
height: 22px;
display: block;
text-align: center;
border: none;
text-decoration: none;
}
.menuhaut a img {border: none;}
.menuhaut a:hover {
text-decoration: none;
}
#main{
width: 980px;
height:500px;
}
#gauche {
position: absolute;
height: 500px;
width:150px;
/*background-color: yellow;*/
}
dl, dt, dd, ul, li {
margin: 0;
padding: 0;
list-style-type: none;
}
#menu {
position: absolute;
top: 1em;
left: 1em;
width: 10em;
z-index:1;
}
#menu dt {
cursor: pointer;
/*background: #A9BFCB;*/
min-height: 20px;
/*line-height: 20px;*/
margin: 2px 0;
border: 1px solid red;
text-align: center;
font-weight: bold;
}
#menu dd {
position: absolute;
left: 8em;
margin-top: -1.4em;
width: 10em;
background: #A9BFCB;
/*color:red;*/
border: 1px solid yellow;
font-weight: bold;
}
#menu ul {
padding: 2px;
}
#menu li {
border: 1px solid yellow;
text-align: center;
font-size: 100%;
height: 18px;
line-height: 18px;
}
#menu li a {
color: yellow;
text-decoration: none;
display: block;
}
#menu dt a {
color: red;
text-decoration: none;
display: block;
}
#menu li a:hover {
color: yellow;
text-decoration: underline;
}
/*p {margin: 0 0 10px 0;}*/
#milieu{
position: absolute;
margin-left: 150px;
height: 500px;
width: 680px;
background-color:red;
}
#milieu2{
position: absolute;
margin-left: 150px;
height: 500px;
width: 830px;
background-color:red;
}
#droite{
position: absolute;
margin-left: 830px;
height: 500px;
width: 150px;
background-color:blue;
}
#bas{
width: 980px;
height:70px;
}
#panier {
position: absolute;
width: 150px;
height:70px;
background-image:url(images/panier1.gif);
}
#pied {
position: absolute;
margin-left: 150px;
height: 70px;
background-image:url(images/bck-menu.jpg);
width:830px;
}
désolé, ca fait beaucoup de code...
Modifié par tio (11 Mar 2006 - 20:07)