Newsgroup: it.comp.www.html
Titolo: aiuto: gestione dei livelli per menu orizzontale

Dvo realizzare un menu orizzontale a cascata posizionandolo del frame in
alto.
Come posso fare in modo che il menu abbassandosi vada a finire nel frame di
sotto (senza scomparire sotto la pagina..)?
So che dovrebbero usarsi i livelli ma non so proprio come.....
vi posto lo script del menu ringraziandovi in anticipo per i vostri
suggerimenti
MARCO
<html>
<head>
 <title>informatica</title>
    <STYLE>
BODY {margin-right:40; margin-left:40; text-align: justify; font-family:
arial;}
A:hover    {color:"red";}
</STYLE>
</head>
<body bgcolor="#ffffff" vlink="blue">
<script language="JavaScript1.2" src="coolmenus.js">
/***************************************************************************
****
Copyright (c) 1999 Thomas Brattli (
www.bratta.com
)
eXperience DHTML coolMenus - Get it at 
www.bratta.com
Version 2.0
This script can be used freely as long as all copyright messages are
intact. Visit 
www.bratta.com/dhtml
 for the latest version of the script.
These are the varibles you have to set to customize the menu.
****************************************************************************
***/
</script>
<script>
/***************************************************************************
*****
Variables to set.
Remember that to set fontsize and fonttype you set that in the stylesheet
above!
****************************************************************************
****/
//Making a menu object
oMenu=new menuObj('oMenu') file://Place a name for the menu in there. Must
be uniqe for each menu
//Setting menu object variables
//Style variables NOTE: The stylesheet have been removed. Use this instead!
(some styles are there by default, like position:absolute ++)
oMenu.clMain='padding:3px; font-family:arial; font-size:15px;
text-align:center; font-weight:bold;'
//The style for the main menus
oMenu.clSub='padding:3px; font-family:arial; font-size:10px' //The style for
the submenus
oMenu.clSubSub='padding:3px; font-family:arial; font-size:9px' //The style
for the subsubmenus
oMenu.clAMain='text-decoration:none; color:White' //The style for the main
links
oMenu.clASub='text-decoration:none; color:#0000aa' //The style for the sub
links
oMenu.clASubSub='text-decoration:none; color:#0000aa' //The style for the
subsub links
//Background bar properties
oMenu.backgroundbar=1 //Set to 0 if no backgroundbar
oMenu.backgroundbarfromleft=0 //The left placement of the backgroundbar in
pixel or %
oMenu.backgroundbarfromtop=0 //The top placement of the backgroundbar  in
pixel or %
oMenu.backgroundbarsize="100%" //The size of the bar in pixel or %
oMenu.backgroundbarcolor="#0000aa" //The backgroundcolor of the bar
oMenu.mainheight=45 file://The height of the main menuitems in pixel or %
oMenu.mainwidth=85 file://The width of the main menuitems  in pixel or %
/*These are new variables. In this example they are set like the previous
version*/
oMenu.subwidth=2.3*oMenu.mainwidth // ** NEW ** The width of the submenus
oMenu.subheight=15 file://The height if the subitems in pixel or %
oMenu.subsubwidth=oMenu.mainwidth // ** NEW ** The width of the subsubmenus
in pixel or %
oMenu.subsubheight=oMenu.subheight file://** NEW ** The height if the
subsubitems in pixel or %
file://Writing out the style for the menu (leave this line!)
oMenu.makeStyle()
oMenu.subplacement=oMenu.mainheight file://** NEW ** Relative to the main
item
oMenu.subsubXplacement=oMenu.subwidth/2 file://** NEW ** The X placement of
the subsubmenus, relative to the sub item
oMenu.subsubYplacement=7 file://** NEW ** The Y placement of the
subsubmenus, relative to the sub item
oMenu.mainbgcoloroff='#0000aa' file://The backgroundcolor of the main
menuitems
oMenu.mainbgcoloron='#0000aa' file://The backgroundcolor on mouseover of the
main menuitems
oMenu.subbgcoloroff='#ffffff' file://The backgroundcolor of the sub
menuitems
oMenu.subbgcoloron='#ffffff' file://The backgroundcolor on mouseover of the
sub menuitems
oMenu.subsubbgcoloroff='#0000aa' file://The backgroundcolor of the subsub
menuitems
oMenu.subsubbgcoloron='#0000aa' file://The backgroundcolor on mouseover of
the subsub menuitems
oMenu.stayoncolor=0 file://Do you want the menus to stay on the mouseovered
color when clicked?
oMenu.menuspeed=10 file://The speed of the clipping in px
oMenu.menusubspeed=15 file://The speed of the submenus clipping in px
oMenu.menurows=1 file://Set to 0 if you want rows and to 1 if you want
columns
oMenu.menueventon="mouse" file://Set this to "mouse" if you want the menus
to appear onmouseover, set it to "click" if you want it to appear onclick
oMenu.menueventoff="mouse" file://Set this to "mouse" if you them to
disappear onmouseout, if not set it to "click"
file://Placement of the menuitems
file://Example in %:
file://oMenu.menuplacement=new Array("20%","40%","60%","50%","65%")
file://Remember to make the arrays contain as many values as you have main
menuitems
file://Example in px: (remember to use the ' ' around the numbers)
file://oMenu.menuplacement=new Array(10,200,300,400,500)
file://Example right beside eachother (only adding the pxbetween variable)
oMenu.menuplacement=0
file://If you use the "right beside eachother" you cant how many pixel there
should be between each here
oMenu.pxbetween=0 file://in pixel or %
file://And you can set where it should start from the left here
oMenu.fromleft=0 file://in pixel or %
file://This is how much from the top the menu should be.
oMenu.fromtop=0 file://in pixel or %
/***************************************************************************
*****
Construct your menus below
****************************************************************************
****/
file://MAIN 0
file://Main items:
file://makeMain(MAIN_NUM,'TEXT','LINK','FRAME_TARGET') (set link to 0 if you
want submenus of this menu item)
oMenu.makeMain(0,'Home Page','index.htm',0)
file://MAIN 1
oMenu.makeMain(1,'Assistenza Contratti',0)
 oMenu.makeSub(1,0,'Abbonamento 6 ore Hardware',0,7)
 oMenu.makeSub(1,1,'Abbonamento 6 ore Software e Formazione',0,7)
        oMenu.makeSub(1,2,'Abbonamento 6 ore Consulenza Sistema
Informativo',0,7)
        oMenu.makeSub(1,3,'Contratto Hardware',0,7)
        oMenu.makeSub(1,4,'Contratto Hardware "Full Risk"',0,7)
        oMenu.makeSub(1,5,'Contratto Hardware "Full Risk" con
sostituzioni',0,7)
        oMenu.makeSub(1,6,'Moduli Contratti',0,7)
  file://oMenu.makeSubSub(2,0,0,'Yahoo Norway','#',3)
  file://oMenu.makeSubSub(2,0,1,'Yahoo US','#',3)
  file://oMenu.makeSubSub(2,0,2,'Yahoo UK','#',3)
file://MAIN 1
oMenu.makeMain(2,'Assistenza Interventi',0)
 oMenu.makeSub(2,0,'Listino Interventi','listino_in.htm',4)
 oMenu.makeSub(2,1,'Listino Antivirus','listino_antiv.htm',4)
 oMenu.makeSub(2,2,'Richiesta Intervento Hardware',0,4)
        oMenu.makeSub(2,3,'Richiesta Intervento Software',0,4)
  file://oMenu.makeSubSub(1,3,0,'Legge n.675/1996 - Indice alfabetico del
testo coordinato','test.html',4)
  file://oMenu.makeSubSub(1,3,1,'Legge 31/12/1996, n.675','test.html',4)
                file://oMenu.makeSubSub(1,3,2,'Legge 31/12/1996,
n.676','test.html',4)
                file://oMenu.makeSubSub(1,3,3,'Decreto Legislativo 9/5/1997,
n.123','test.html',4)
file://MAIN 3
file://Main items:
file://makeMain(MAIN_NUM,'TEXT','LINK','FRAME_TARGET') (set link to 0 if you
want submenus of this menu item)
oMenu.makeMain(3,'Reti','mappa.htm', 'down')
        oMenu.makeSub(3,0,'Reti Locali',0,2)
 oMenu.makeSub(3,1,'Assistenza Reti Locali',0,2)
file://MAIN 4
oMenu.makeMain(4,'Internet',0)
 oMenu.makeSub(4,0,'Risorsa Internet',0,3)
 oMenu.makeSub(4,1,'Servizi','#',3)
        oMenu.makeSub(4,2,'Listino','#',3)
  file://oMenu.makeSubSub(4,0,0,'Yahoo Norway','#',3)
  file://oMenu.makeSubSub(4,0,1,'Yahoo US','#',3)
  file://oMenu.makeSubSub(4,0,2,'Yahoo UK','#',3)
file://MAIN 5
oMenu.makeMain(5,'Formazione',0)
 oMenu.makeSub(5,0,'Moduli Formativi Dos-Win-Internet',0,5)
 oMenu.makeSub(5,1,'Moduli Formativi Office',0,5)
 oMenu.makeSub(5,2,'Scheda monitoraggio ambiente Win',0,5)
        oMenu.makeSub(5,3,'Scheda monitoraggio Autocad',0,5)
        oMenu.makeSub(5,4,'Corsi Teorico pratici personalizzati',0,5)
file://MAIN 6
oMenu.makeMain(6,'Hardware-Software',0)
 oMenu.makeSub(6,0,'Prodotti di marca',0,2)
 oMenu.makeSub(6,1,'Personal Compatibili',0,2)
file://MAIN 7
oMenu.makeMain(7,'Soluzioni Software',0)
 oMenu.makeSub(7,0,'Prodotti di marca',0,2)
 oMenu.makeSub(7,1,'Personal Compatibili',0,2)
/***************************************************************************
*****
End menu construction
****************************************************************************
****/

 sotto (senza scomparire sotto la pagina..)?
Mi dispiace, ma stando alle specifiche attuali non è possibile farlo.
Nessun elemento può emergere dal frame in cui è posizionato.
Ho sentito dire che qualcuno, ma non ricordo se Microsoft o Netscape, stava
facendo qualcosa per aggiungere questa potenzialità, ma per il momento non
puoi fare nulla.
Ciao
Carlo "Sauron" Pelliccia
www.sauronsoftware.it