function upDown() {
ref = this
this.prg += this.Vstep;
if(this.prg<this.h) {
for(j=0; j<slidingLevels.length; j++) {
slidingLevels[j].css.top = (this.vagiu) ? (vl[j]+this.prg)+"px" : (vl[j]-this.prg)+"px"
}
setTimeout("ref.upDown()",this.minCPUres)
}
else {
for(j=0; j<slidingLevels.length; j++)
slidingLevels[j].css.top = (this.vagiu) ? (vl[j]+this.h)+"px" : (vl[j]-this.h)+"px"
this.sub.clipTop += (this.vagiu) ? -this.h : +this.h
if(this.vagiu){
this.central_sub.css.top = (parseInt(this.central_sub.css.top) - (this.h*3))+"px"
var tmp1 = this.central_sup
var tmp2 = this.central_cen
this.central_sup = this.central_sub
this.central_cen = tmp1
this.central_sub = tmp2
}
else{
this.central_sup.css.top = (parseInt(this.central_sup.css.top) + (this.h*3))+"px"
var tmp1 = this.central_sub
var tmp2 = this.central_cen
this.central_sub = this.central_sup
this.central_cen = tmp1
this.central_sup = tmp2
}
this.nM = (this.vagiu) ? this.sup.el.firstChild.parent.refMenu : this.subItems[this.sub.subIndex].fix.refMenu
if(this.sup.el.hasChildNodes()) this.sup.el.removeChild(this.sup.el.firstChild)
if(!this.vagiu) {
this.sub.el.removeChild(this.subItems[this.sub.subIndex].fix.el)
this.sub.el.removeChild(this.subItems[this.sub.subIndex].dyn.el)
this.subItems.length = this.sub.subIndex
}
if(this.nM.MFN) {if(this.nM.MFN!="no") window[this.nM.MFN](this.nM.URL)}
else if(this.LFN) {if(this.LFN!="no") window[this.LFN](this.nM.URL)}
this.HSliding()
}
}
function setSubItemsLevel(index,refMenu) {
this.subItems[index] = new subLevel(this.subS,this.sub,this.w,this)
this.subItems[index].fix.css.top = (-this.h*index)+"px"
this.subItems[index].dyn.css.top = (-this.h*index)+"px"
this.subItems[index].subTop = parseInt(this.sub.css.top)
this.subItems[index].fix.writeInLevel(refMenu.title)
if(this.ie) this.subItems[i].dyn.writeInLevel("")
this.subItems[index].fix.refMenu = refMenu
this.subItems[index].dyn.refMenu = refMenu
this.subItems[index].fix.setListener(this.subItems[index].dyn,this.inSub,this.outSub,this.ckSub)
this.subItems[index].dyn.setListener(this.subItems[index].fix,this.inSub,this.outSub,this.ckSub)
}
function initialSubItemsLevel(vettore){
for(i=0; i<vettore.length; i++) {
this.setSubItemsLevel(i,vettore[i])
this.sub.css.top = ((i+2)*this.h)+"px"
}
}
function NSBoxMeasures(IEdim,stylesArray){
var wh = (IEdim=="width") ? [this.w,"Left","Right"] : [this.h,"Top","Bottom"]
var tmpMeasure = wh[0]-(parseInt(this.findStyle("border"+wh[1]+"Width",stylesArray))||parseInt(this.findStyle("b orderWidth",stylesArray))||0)-(parseInt(this.findStyle("border"+wh[2]+"Width",stylesArray))||parseInt(this.findStyle("b orderWidth",stylesArray))||0)
return(tmpMeasure)
}
function closeMenu() {
this.slideItems(false,true)
}
ContainerMenu.prototype.subSliding = true
ContainerMenu.prototype.fixedWidth = null
ContainerMenu.prototype.minCPUres = 10
ContainerMenu.prototype.open = HSliding
ContainerMenu.prototype.close = closeMenu
ContainerMenu.prototype.setSubItemsLevel = setSubItemsLevel
ContainerMenu.prototype.goUpsubItems = goUpsubItems
ContainerMenu.prototype.NSBoxMeasures = NSBoxMeasures
ContainerMenu.prototype.initialSubItemsLevel = initialSubItemsLevel
ContainerMenu.prototype.findStyle = findStyle
ContainerMenu.prototype.HSliding = HSliding
ContainerMenu.prototype.addItems = addItems
ContainerMenu.prototype.slideItems = slideItems
ContainerMenu.prototype.goDownItems = goDownItems
ContainerMenu.prototype.setSlidingLevel = setSlidingLevel
ContainerMenu.prototype.openSubMenu = openSubMenu
ContainerMenu.prototype.upDown = upDown
Il menù mi funziona perfettamente è lo potete vedere su http://Cisco1981.altervista.org/
L'unica cosa che vorrei modificare e fare in modo tale che quando premo sulla voce FORUM mi apra una nuova pagina di IE.
Come posso fare???
Grazie 1000
spider81man
PS:Scusate se ho usato 3 post.