ecco il codice html..
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Title</title>
<link href="stile_sito.css" rel="stylesheet" type="text/css" />
<script type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>
<body onload="MM_preloadImages('immagini/tasti/news_on.gif','immagini/tasti/profiles_on.gif','immagini/tasti/product_on.gif','immagini/tasti/graphic_on.gif','immagini/tasti/web_on.gif','immagini/tasti/photo_on.gif')">
<div id="rettangolo_pagina_index">
<div id="logo"> </div>
<div id="news">[img]immagini/tasti/news_off.gif[/img]</div>
<div id="profiles">[img]immagini/tasti/profiles_off.gif[/img]</div>
<div id="product">[img]immagini/tasti/product_off.gif[/img]</div>
<div id="div_1">[img]immagini/tasti/divisore.gif[/img]</div>
<div id="graphic">[img]immagini/tasti/graphic_off.gif[/img]</div>
<div id="div_2">[img]immagini/tasti/divisore.gif[/img]</div>
<div id="web">[img]immagini/tasti/web_off.gif[/img]</div>
<div id="div_3">[img]immagini/tasti/divisore.gif[/img]</div>
<div id="photo">[img]immagini/tasti/photo_off.gif[/img]</div>
<div id="linea_news">[img]immagini/sfumatura_selezione.gif[/img]</div>
<div id="linea_profiles">[img]immagini/sfumatura_selezione.gif[/img]</div>
<div id="linea_product">[img]immagini/sfumatura_selezione.gif[/img]</div>
<div id="linea_graphic">[img]immagini/sfumatura_selezione.gif[/img]</div>
<div id="linea_web">[img]immagini/sfumatura_selezione.gif[/img]</div>
<div id="linea_photo">[img]immagini/sfumatura_selezione.gif[/img]</div>
</div>
</body>
</html>
e qst è il codice del css:
body {
background-image: url(immagini/riga_sfondo.gif);
margin-left: 40px;
margin-top: 40px;
margin-right: 80px;
margin-bottom: 100px;
}
#rettangolo_pagina_index {
position: static;
width: 2000px;
background-color: #00b7b7;
z-index: 2;
height: 400px;
}
#rettangolo_pagina_index #logo {
position: fixed;
left: 350px;
top: 60px;
height: 124px;
width: 300px;
z-index: 3;
background-image: url(immagini/logo.gif);
}
#rettangolo_pagina_index #news {
position: fixed;
left: 100px;
top: 185px;
height: 15px;
width: 49px;
}
.copyright {
font-family: "Trebuchet MS", Arial, Verdana;
font-size: 10px;
color: #FFFFFF;
text-decoration: none;
z-index: 3;
}
#rettangolo_pagina_index #linea_news {
position: fixed;
height: 1px;
width: 49px;
left: 100px;
top: 200px;
background-color: #FFFFFF;
}
#rettangolo_pagina_index #linea_profiles {
position: fixed;
height: 1px;
width: 76px;
left: 174px;
top: 200px;
}
#rettangolo_pagina_index #linea_product {
position: fixed;
height: 1px;
width: 76px;
left: 344px;
top: 200px;
}
#rettangolo_pagina_index #linea_graphic {
position: fixed;
height: 1px;
width: 72px;
left: 444px;
top: 200px;
}
.link_testo {
font-family: "Trebuchet MS", Arial, Verdana;
font-size: 12px;
font-style: normal;
line-height: 14px;
color: #C0FA05;
text-decoration: none;
}
.link_testo:hover {
font-family: "Trebuchet MS", Arial, Verdana;
font-size: 12px;
line-height: 14px;
color: c0fa05;
text-decoration: underline;
}
.testo {
font-family: "Trebuchet MS", Arial, Verdana;
font-size: 12px;
color: #FFFFFF;
text-decoration: none;
line-height: 14px;
}
.testo_corsivo {
font-family: "Trebuchet MS", Arial, Verdana;
font-size: 12px;
font-style: italic;
line-height: 14px;
color: #FFFFFF;
text-decoration: none;
}
#shinystat {
position: absolute;
left: -200px;
top: 0px;
z-index: 1;
}
#rettangolo_pagina_index #profiles {
position: fixed;
height: 15px;
width: 76px;
left: 174px;
top: 185px;
}
.titolo {
font-family: "Trebuchet MS", Arial, Verdana;
font-size: 12px;
color: #006666;
text-decoration: none;
font-weight: normal;
background-position: center center;
border: 2px solid #00b7b7;
padding: 1px;
margin: 0px;
}
#rettangolo_pagina_index #posizione_1 {
position: absolute;
height: 106px;
width: 70px;
left: 100px;
top: 250px;
padding: 3px;
text-decoration: none;
}
#rettangolo_pagina_index #linea_web {
position: fixed;
height: 1px;
width: 38px;
left: 541px;
top: 200px;
}
#rettangolo_pagina_index #linea_photo {
position: fixed;
height: 1px;
width: 55px;
left: 604px;
top: 200px;
}
#rettangolo_pagina_index #product {
position: fixed;
height: 15px;
width: 76px;
left: 344px;
top: 185px;
}
#rettangolo_pagina_index #graphic {
position: fixed;
height: 15px;
width: 72px;
left: 444px;
top: 185px;
}
#rettangolo_pagina_index #div_2 {
position: fixed;
height: 5px;
width: 11px;
left: 523px;
top: 185px;
}
#rettangolo_pagina_index #web {
position: fixed;
height: 15px;
width: 38px;
left: 541px;
top: 185px;
}
#rettangolo_pagina_index #photo {
position: fixed;
height: 15px;
width: 55px;
left: 604px;
top: 185px;
}
#rettangolo_pagina_index #div_3 {
position: fixed;
height: 5px;
width: 11px;
left: 586px;
top: 185px;
}
#rettangolo_pagina_index #div_1 {
position: fixed;
height: 5px;
width: 11px;
top: 185px;
left: 427px;
}
vi mancheranno sicuramente le immagini xò.. =\..anke se non sono esenziali per capire qll che dico, infatta basta dare un semplice colore di sfondo ai div..
![]()