Salve ragazzi,
Ho preso questo menù da HTML.it
Menu.htm:
<HTML>
<HEAD>
<TITLE>Prova Menu</TITLE>
</HEAD>
<BODY bgColor=Black>
<center>
<SCRIPT src="MENU_file/slidingMenu.js" type=text/javascript></SCRIPT>
<SCRIPT type=text/javascript>
function lanciaFrame(URL){
window.top.content.location= URL
}
function pop(URL){
window.open(URL,"name","width=350px, height=200px, left=300px, top=100px")}
Home = new Menu("H o m e","home.htm",true)
Mestro = new Menu("Il Maestro","home.htm",true)
art1 = new Menu("Altri Insegnanti","home.htm",true,"no")
Palestre = new Menu("Le Palestre","home.html",true)
art2 = new Menu("Cancun","home.html",true,"no")
Articoli = new Menu("Eventi","home.html",true,"no")
/*
art1 = new Menu("standard popup","home.html",true,"no")
v1 = new Menu("v . 1","home.html",true)
v2 = new Menu("v . 2","home.html",true)
art2 = new Menu("sniffing","home.html",true)
art3 = new Menu("styleSheets","home.html",true)
*/
Atleti = new Menu("Atleti","home.html",true)
art3 = new Menu("Light","home.html",true)
art4 = new Menu("KO","home.html",true)
art5 = new Menu("Professionisti","home.html",true)
art6 = new Menu("Tutti","home.html",true)
sport = new Menu("Storia Sports","home.html",true)
art7 = new Menu("Kick Boxing","home.html",true)
art8 = new Menu("Thai Boxe","home.html",true)
art9 = new Menu("Savate","home.htmll",true)
Foto = new Menu("Foto Gallery","home.html",true)
Video = new Menu("Video","home.html",true)
Link = new Menu("Links & Credits","home.html",true)
Forum = new Menu("Forum","home.html",true)
/*================================================= ========
- definizione della gerarchia del menu -
================================================== =======*/
Home.subMenu[0] = Mestro
Mestro.subMenu[0] = art1
Home.subMenu[1] = Palestre
Palestre.subMenu[0] = art2
Home.subMenu[2] = Articoli
/*
Articoli.subMenu[0] = art1
art1.subMenu[0] = v1
art1.subMenu[1] = v2
Articoli.subMenu[1] = art2
Articoli.subMenu[2] = art3
*/
Home.subMenu[3] = Atleti
Atleti.subMenu[0] = art3
Atleti.subMenu[1] = art4
Atleti.subMenu[2] = art5
Atleti.subMenu[3] = art6
Home.subMenu[4] = sport
sport.subMenu[0] = art7
sport.subMenu[1] = art8
sport.subMenu[2] = art9
Home.subMenu[5] = Foto
Home.subMenu[6] = Video
Home.subMenu[7] = Link
Home.subMenu[8] = Forum
/*================================================= ========
- definizione degli stili -
================================================== =======*/
// poichè alcuni stili devono essere obbligatoriamente definiti uguali
// in tutti e tre i principali vettori di stili, possiamo utilizzare la seguente sintassi
// (valori in pixel)
alt = 18
lar = 100
fSize = 10
crs = (document.all) ? "hand" : "pointer";
stiliBoxDefault = ["position=absolute","left=0px","top=5px"];
stiliCenDefault = ["position=absolute","width="+lar+"px","height="+al t+"px","fontSize="+fSize+"px",
"backgroundColor=black","color=Yellow",
"borderBottomStyle=solid","borderBottomWidth=1px", "borderBottomColor=Yellow"
,"textAlign=center","fontFamily=Arial","cursor=def ault",
"borderTopStyle=solid","borderTopWidth=1px","borde rTopColor=Yellow"]
stiliSupDefault = ["position=absolute","width="+lar+"px","height="+al t+"px","fontSize="+fSize+"px","fontFamily=Arial" ,
"backgroundColor=Yellow","color=Black",
"textAlign=center","cursor="+crs,
"borderTopStyle=solid","borderTopWidth=2px","borde rTopColor=Yellow"]
stiliSubDefault = ["position=absolute","width="+lar+"px","height="+al t+"px","fontSize="+fSize+"px","fontFamily=Arial" ,
"backgroundColor=Yellow",
"color=Black","textAlign=center","cursor="+crs ,
"borderBottomStyle=solid","borderBottomWidth=2px", "borderBottomColor=Yellow"]
stiliRollIn =["color=white","backgroundColor=red"]
stiliRollOut=["color=Black","backgroundColor=Yellow"]
window.onload = function() {
MioMenu = new ContainerMenu(Home,null,null,300,"lanciaFrame",
stiliBoxDefault,stiliSupDefault,stiliCenDefault,st iliSubDefault,
stiliRollIn,stiliRollOut)
MioMenu.open()
}
</SCRIPT>
</center>
</BODY></HTML>
continua....