Salve a tutti ormai è tutta la giornata che provo a creare un menù in dhtml. Alla fine ho optato per utilizzare un programma visuale, visto che non sono in grado di scrivere il codice da sola. Ho usato CofeeCup DHTML Menù Wizard, ed ho creato il menù. Ma c'è un ultimo piccolo problema: viene visualizzato o in alto alla pagina, o al centro, non riesco a posizionarlo dove vorrei io!!
Mi potete aiutare?
Vi ringrazio di cuore per ogni tentativo di risposta che mi darete, perchè stò veramente impazzendo...
Ho già provato ad aggiungere questo prima e dopo il menù ma non funziona:
<div style="position: relative;">
qui c'è il menù
</div>
Questa è una parte del codice:
<script type='text/javascript'>
function Go(){return}
Menu1=new Array("Untitled1","http://","",0,20,80);
Menu2=new Array("Untitled2","http://","",1,0,80);
Menu2_1=new Array("Untitled8","http://","",0,20,80);
Menu3=new Array("Untitled3","http://","",0,0,80);
[Elenco variabili array]
MenuTextCentered=MenuTextCentered==1||MenuTextCent ered=='center'?'center':MenuTextCentered==0||MenuT extCentered!='right'?'left':'right';
WbMstrAlrts=["Item not defined: ","Item needs height: ","Item needs width: "];
if(Trigger.onload)Dummy=Trigger.onload;
if(DomNav||Opr)Trigger.addEventListener('load',Go, false); //Changed for Opera
else Trigger.onload=Go;
function Dummy(){return}
function CnclSlct(){return false}
function RePos(){
FrstWinWdth=ExpYes?FrstLoc.document.body.clientWid th:FrstLoc.innerWidth;
FrstWinHght=ExpYes?FrstLoc.document.body.clientHei ght:FrstLoc.innerHeight;
ScWinWdth=ExpYes?ScLoc.document.body.clientWidth:S cLoc.innerWidth;
ScWinHght=ExpYes?ScLoc.document.body.clientHeight: ScLoc.innerHeight;
if(MenuCentered=='justify'&&FirstLineHorizontal){
FrstCntnr.style.width=FrstWinWdth;
ClcJus();
var P=FrstCntnr.FrstMbr,W=Menu1[5],i;
for(i=0;i<NoOffFirstLineMenus;i++){P.style.width=W ;P=P.PrvMbr}}
StaticPos=-1;
if(TargetLoc)ClcTrgt();
if(MenuCentered)ClcLft();
if(MenuVerticalCentered)ClcTp();
PosMenu(FrstCntnr,StartTop,StartLeft)}
function UnLoaded(){
if(CloseTmr)clearTimeout(CloseTmr);
Loadd=0; Creatd=0;
if(HideTop){
var FCStyle=Nav4?FrstCntnr:FrstCntnr.style;
FCStyle.visibility=M_Hide}}
[.............]
function BeforeStart(){return}
function AfterBuild(){return}
function BeforeFirstOpen(){return}
function AfterCloseAll(){return}
</script>
<noscript>Your browser does not support script</noscript>
Grazie ancora Dany