Ciao a tutti, è un po' che sto cercando di scervellarmi con i div per il riposizionamento di un menù a comparsa che però non ne vuole sapere di sistamarsi, alla fine ho concluso che non ne arrivo a una.

In pratica ho una pagina con 2 iframe, uno top e uno principale, nell'iframe top risiede il menù che è a comparsa, è un menù in javascript trovato in internet (al sito sengnalato nello script stesso) a cui ho praticato piccole modifiche per adattare l'impaginazione al sito.

Ora però vorrei eliminare gli iframe attraverso l'inclusione di pagine asp, solo che a cose fatte il menù si posizinona ovviamente come da istruzioni.

http://www.rete104.it/index.asp

Nonostante svariate prove che ho fatto (si vede che non sono ancora pratico di div) mi rimane il menù posizionato sul bordo sinistro, e peggio ancora, quando lo si richiama lo stesso appare anche nella parte di bordo dove non dovrebbe vedersi, in pratica il risultato che vorrei ottenere è come il principale che ho fatto:

http://www.rete104.it/

il codice della pagina asp potete vederlo dalla pagina stessa, questo il codice del js del menù:

/************************************************** ******************************
This script is made by and copyrighted to Thomas Brattli at www.bratta.com
Visit for more great scripts.
This may be used freely as long as this msg is intact!
************************************************** ******************************
Browsercheck:*/
ie=document.all?1:0
n=document.layers?1:0

//These are the variables you have to set:

//How many pixels should it move every step?
var move=10;

//At what speed (in milliseconds, lower value is more speed)
menuSpeed=15

//Do you want it to move with the page if the user scroll the page?
var moveOnScroll=false

/************************************************** ******************************
You should't have to change anything below this.
(except in the init function to set how many menus and such.)
************************************************** ******************************/
//Defining variables
var tim;

//Object constructor
function makeMenu(obj,nest,lshow){
nest=(!nest) ? '':'document.'+nest+'.'
this.css=(n) ? eval(nest+'document.'+obj):eval(obj+'.style')
this.state=1
this.go=0
this.lshow=lshow
this.ltop=(n)?this.css.top:this.css.pixelTop;
this.mleft=m_left;
this.right=m_right;
this.menu=m_menu;
this.tim
this.width=n?this.css.document.width:eval(obj+'.of fsetWidth')
this.left=b_getleft
this.obj = obj + "Object"; eval(this.obj + "=this")
}
//Get's the left position.
function b_getleft(){
var gleft=(n) ? eval(this.css.left):eval(this.css.pixelLeft);
return gleft;
}
/************************************************** ******************************
Deciding what way to move the menu (this is called onmouseover, onmouseout or onclick)
************************************************** ******************************/
function m_menu(){
if(!this.state){
clearTimeout(this.tim)
this.mleft()
}else{
clearTimeout(this.tim)
this.right()
}
}
//Menu in
function m_left(){
if(this.left()>-this.width+this.lshow){
this.go=1
this.css.left=this.left()-move
this.tim=setTimeout(this.obj+".mleft()",menuSpeed)
}else{
this.go=0
this.state=1
}
}
//Menu out
function m_right(){
if(this.left()<0){
this.go=1
this.css.left=this.left()+move
this.tim=setTimeout(this.obj+".right()",menuSpeed)
}else{
this.go=0
this.state=0
}
}
/************************************************** ******************************
Checking if the page is scrolled, if it is move the menu after
************************************************** ******************************/
function checkScrolled(){
for(i=0;i<oMenu.length;i++){
oMenu[i].css.top=eval(scrolled)+oMenu[i].ltop
}
if(n) setTimeout('checkScrolled()',30)
}
/************************************************** ******************************
Inits the page, makes the menu objects, moves it to the right place,
show it..Make as many as you want but remember that they take some
prosessor power in netscape if you have the moveOnScroll on.
In the makeMenu, after the layername and the nest, the next
parameter is the old lshow, it's how much of
the menu will show when the menu is in the in state.
************************************************** ******************************/
function menuInit(){
oMenu=new Array()
oMenu[0]=new makeMenu('divMenu','',150)
scrolled=n?"window.pageYOffset":"document.body.scr ollTop"
for(i=0;i<oMenu.length;i++){
oMenu[i].css.left=-oMenu[i].width+oMenu[i].lshow
oMenu[i].css.visibility='visible'
}
if(moveOnScroll) ie?window.onscroll=checkScrolled:checkScrolled();
}

C'è un modo per risolvere questo problema o mi tocca mantenere le pagine tramite iframe?

Grazie in anticipo.

PSfftopic...non guardate la firma perchè è un po' vecchia, ora la tolgo...