
18/01/2002, 19:17
|
| | Fecha de Ingreso: diciembre-2001
Mensajes: 38
Antigüedad: 23 años, 1 mes Puntos: 0 | |
Re: ayudenme , quien tiene este menu o su codigo
function create()
{
this.id=this.parent.childs.length-1;
this.level=this.parent.level+1;
var top=0;
if(this.level==1)
top=this.id*itemHeight;
var vis=visible;
if(this.level!=1)
vis=hidden;
var aux="";
for(var i=1; i<this.level; i++)
aux+="&nbsp;&nbsp;"
var auxalign="align='absmiddle'";
if(nav.isNN && this.level==1)
auxalign="align='top' vspace=2";
var img="";
var hayimg=false;
if(window.imageDown!=undefined)
{
if(window.imageDown.src!=undefined)
{
if(window.imageDown.src!="");
{
hayimg=true;
img="<IMG id='"+this.name+"I' src='"+imageDown.src+"' height="+menuImageWidth+" width="+menuImageWidth+" border=0 "+auxalign+">&nbsp;&nbsp;& ;nbsp;";
}
}
}
if(!hayimg)
img="&nbsp;<B>·</B>&nbsp;";
if(!this.isMenu)
img="&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;";
var auxbackground="";
var cellspacing=border;
if(nav.isIE)
this.html="<DIV id='"+this.name+"L' name='"+this.name+"L' style='position:absolute;top:"+top+";lef t:0;visibility:"+vis+";width:"+item Width+";'><TABLE width="+itemWidth+" border=0 cellspacing="+cellspacing+" cellpadding=0><TR onMouseOver='entrarMenu(this);' OnMouseOut='salirMenu(this)' onClick='"+this.javaScriptLink+"' class='level"+this.level+"'><TD bgcolor='"+eval("bgcolorLevel"+this .level)+"' valign='bottom' height="+(itemHeight-border)+auxbackground+">"+aux+img+thi s.text+"</TD></TR></TABLE><DIV id='"+this.name+"C' name='"+this.name+"C' style='position:absolute;top:"+itemHeight+&qu ot;;left:0'></DIV></DIV>";
else if(nav.isNN)
this.html="<LAYER id='"+this.name+"L' name='"+this.name+"L' top="+top+" left=0 visibility='"+vis+"' width="+itemWidth+((cellspacing!="0" ;)?" ":"")+"><TABLE width="+itemWidth+" border=0 cellspacing=0 cellpadding=0><TR><TD valign='bottom' height="+(itemHeight-border)+auxbackground+"><A class='level"+this.level+"' href='javascript:"+this.javaScriptLink+" '>"+aux+img+this.text+"</A></TD></TR></TABLE><LAYER id='"+this.name+"C' name='"+this.name+"C' top="+itemHeight+"></LAYER></LAYER>";
}
function addChild(obj, flag)
{
if(this.childs==null)
this.childs=new Array();
this.childs[this.childs.length]=obj;
obj.parent=this;
obj.menu=this.menu;
obj.create();
this.htmlChilds+=obj.html;
if(flag!="wait")
setHTML(eval(this.objC),this.htmlChilds);
if(nav.isNN)
{
obj.objL=this.objC+".document."+obj.name +"L";
obj.objC=obj.objL+".document."+obj.name+ "C";
}
}
function addChilds(arr)
{
if(arr!=null && arr.length>0)
{
for(var i=0; i<arr.length-1; i++)
this.addChild(arr, "wait");
this.addChild(arr[arr.length-1]);
}
} |