18/01/2002, 19:23
|
| | Fecha de Ingreso: diciembre-2001
Mensajes: 38
Antigüedad: 23 años Puntos: 0 | |
Re: ayudenme , quien tiene este menu o su codigo
function endMenu()
{
creando=false;
window.onresize=this.restore;
this.setVisible(true);
window.status="Ready.";
}
function preload(imgObj,imgSrc)
{
if (document.images)
{
eval(imgObj+' = new Image()');
eval(imgObj+'.src = "'+imgSrc+'"');
}
}
function addTabsToMenu()
{
// window.onresize=this.restore;
eval(this.name+"Tabs=new ScrollTabs('"+this.name+"Tabs', '"+this.name+"Tot');");
this.tabs=eval(this.name+"Tabs;");
}
function ScrollTabs(name, layerTot)
{
this.menuName=layerTot.substring(0,layerTot.indexO f("Tot"));
this.name=name;
var tot=layerTot;
if(nav.isIE)
{
this.layer=this.menuName+"L";
this.tab1=this.layer+"Tab1";
this.tab2=this.layer+"Tab2";
}
else if(nav.isNN)
{
this.layer="document."+this.menuName+&qu ot;Tot.document."+this.menuName+"L" ;
this.tab1=this.layer+"Tab1";
this.tab2=this.layer+"Tab2";
tot="document."+this.menuName+"Tot& quot;;
}
desplaza(eval(this.tab1),0,-tabHeight);
desplaza(eval(this.tab2),0,maxHeight+tabHeight);
this.upOver=tabUpOver;
this.upOut=tabUpOut;
this.downOver=tabDownOver;
this.downOut=tabDownOut;
var aux1="";
var aux2="";
if(nav.isIE)
{
aux1=" onMouseOver='"+this.name+".upOver()' onMouseOut='"+this.name+".upOut()'" ;
aux2=" onMouseOver='"+this.name+".downOver()' onMouseOut='"+this.name+".downOut()'&quo t;;
}
this.newHeight=newHeight;
this.on=false;
eval(tot+h+"="+(maxHeight+2*tabHeight));
eval(tot+w+"="+itemHeight);
if(nav.isIE)
eval(tot+c+"='rect(0px "+itemWidth+"px "+(maxHeight+2*tabHeight)+"px 0px)';");
else if(nav.isNN)
{
eval(tot).clip.height=(maxHeight+2*tabHeight);
eval(tot).layers[1].captureEvents(Event.MOUSEOUT | Event.MOUSEOVER);
eval(tot).layers[1].tabObj=this;
eval(tot).layers[1].onmouseover=tabUpOver;
eval(tot).layers[1].onmouseout=tabUpOut;
eval(tot).layers[2].captureEvents(Event.MOUSEOUT | Event.MOUSEOVER);
eval(tot).layers[2].tabObj=this;
eval(tot).layers[2].onmouseover=tabDownOver;
eval(tot).layers[2].onmouseout=tabDownOut;
}
this.newHeight(eval(layerTot.substring(0,layerTot. length-3)+".childs.length")*itemHeight);
}
var menuToMove;
var moveMenuDir;
var menuHeight;
var menuIni;
var desMenuTimer;
var tabover=false;
function moveMenu()
{
if(moveMenuDir=="up")
{
if(parseInt(eval(menuToMove+t))<menuIni)
{
var i=incDes;
if(parseInt(eval(menuToMove+t))>=menuIni-incDes)
i=menuIni-parseInt(eval(menuToMove+t));
desplazaPor(eval(menuToMove),0,i);
}
else
clearInterval(desMenuTimer);
}
else if(moveMenuDir=="down")
{
if(parseInt(eval(menuToMove+t))+menuHeight>menu Ini+maxHeight)
{
var i=incDes;
if(parseInt(eval(menuToMove+t))+menuHeight<=men uIni+maxHeight+incDes)
i=parseInt(eval(menuToMove+t))+menuHeight-menuIni-maxHeight;
desplazaPor(eval(menuToMove),0,-i);
}
else
clearInterval(desMenuTimer);
}
} |