Ver Mensaje Individual
  #11 (permalink)  
Antiguo 18/01/2002, 19:21
concepto
 
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 click()
{
if(this.childs!=null && this.childs.length>0)
this.extendChilds();
if(this.link!="" && this.link!=undefined)
this.openURL();
}

function extendChilds()
{
if(!deslizando && !creando)
{
if(this.isOpen)
this.extend(false);
else
this.extend(true);
setPath(this.getPath());
}
return false;
}

var isOk=true;
function openURL()
{
if(isOk)
{
if(this.link.substring(0,11)=="javascript:&qu ot;)
eval(this.link.substring(11));
else
{
var href=this.link;
if(disableCache && href.indexOf("?")!=-1)
{
var date = new Date();
href+="&p="+date.getTime();
}
if(linkTarget!="")
eval("parent."+linkTarget+".locatio n.href=href;");
else
document.location.href=href;
isOk=false;
setTimeout("isOk=true;", linkDelay);
}
setPath(this.getPath());
}
return false;
}

function setPath(path)
{
if(pathTarget!="")
{
var fr=eval("parent."+pathTarget)
if(fr!=undefined)
{
if(nav.isIE)
{
if(fr.path!=undefined)
fr.path.innerHTML="  " +path;
}
else if(nav.isNN)
{
if(fr.document.pathAbsolute!=undefined)
{
fr.document.pathAbsolute.document.open();
fr.document.pathAbsolute.document.write("< FONT face='verdana' size=0>"+ path+"</FONT>");
fr.document.pathAbsolute.document.close();
}
}
}
}
}

function getPath()
{
var p="";
if(this.path==null || this.path==undefined)
{
if(this.childs!=null && this.childs.length>0)
p=this.text+" /";
else
p="<B>"+this.text+"</B>";
var obj=this.parent;
while(obj!=null && obj.level>0)
{
p=obj.text+" / "+p;
obj=obj.parent;
}
}
else
p=this.path;
return p;
}

function initMenu()
{
creando=true;
this.setVisible(false)
window.status="Please wait.";
setMaxHeight();
// setPath("");
}