Foros del Web » Soporte técnico » Ayuda General »

ayudenme , quien tiene este menu o su codigo

Estas en el tema de ayudenme , quien tiene este menu o su codigo en el foro de Ayuda General en Foros del Web. Quien me puede dar el codigo o como hago ese menu que tiene <a href='ir.asp?http://www.pandasoftware.com' target='_blank'>http://www.pandasoftware.com...</a> en el menu izquierdo gracias es que si me ...
  #1 (permalink)  
Antiguo 18/01/2002, 14:00
Avatar de spawn  
Fecha de Ingreso: agosto-2001
Mensajes: 75
Antigüedad: 22 años, 8 meses
Puntos: 0
ayudenme , quien tiene este menu o su codigo

Quien me puede dar el codigo o como hago ese menu que tiene <a href='ir.asp?http://www.pandasoftware.com' target='_blank'>http://www.pandasoftware.com...</a> en el menu izquierdo

gracias es que si me urge :)
  #2 (permalink)  
Antiguo 18/01/2002, 14:49
 
Fecha de Ingreso: enero-2002
Mensajes: 15
Antigüedad: 22 años, 4 meses
Puntos: 0
Re: ayudenme , quien tiene este menu o su codigo

aqui esta un menu asi
http://www.opencube.com
  #3 (permalink)  
Antiguo 18/01/2002, 18:55
 
Fecha de Ingreso: diciembre-2001
Mensajes: 38
Antigüedad: 22 años, 4 meses
Puntos: 0
Re: ayudenme , quien tiene este menu o su codigo

aqui lo tienes va por partes porque se me hace que no va a caber completo.
lo pegas justo donde quede el anterior

&lt;HTML&gt;&lt;HEAD&gt;
&lt;META content=&quot;text/html; charset=windows-1252&quot; http-equiv=Content-Type&gt;&lt;LINK
href=&quot;menus.css&quot; rel=stylesheet&gt;
&lt;SCRIPT language=JavaScript src=&quot;menu.js&quot;&gt;&lt;/SCRIPT&gt;

&lt;SCRIPT language=javascript&gt;
&lt;!--

function Lanzar(url)
{
window.open (url,'');
}

var ver = 0;



// PARA EL NAVEGADOR
// redirige segun el navegador a la pagina correcta de logon.
var agt = navigator.userAgent.toLowerCase();
var is_ie = (agt.indexOf(&quot;msie&quot;)!=-1);
var is_nav = ((agt.indexOf('mozilla')!=-1) &amp;&amp; (agt.indexOf('spoofer')==-1) &amp;&amp; (agt.indexOf('compatible') == -1) &amp;&amp; (agt.indexOf('opera')==-1) &amp;&amp; (agt.indexOf('webtv')==-1));
// FIN PARA EL NAVEGADOR

disableCache=false;
var activeWindowLocale=&quot;cat&quot;;

var itemHeight=17;
var itemWidth=190;
var bgcolorLevel1=&quot;&quot;;
var bgcolorLevel2=&quot;&quot;;
var bgcolorLevel3=&quot;&quot;;
var bordercolor=&quot;&quot;;

var border=1;
var incDes=17
var timeDes=5;
preload(&quot;imageDown&quot;,&quot;images_menu/mas.gif&quot;);
preload(&quot;imageUp&quot;,&quot;images_menu/menos.gif&quot;);
var linkDelay=0;
var linkTarget=&quot;self&quot;; // antes aqui decia &quot;principal&quot;
var pathTarget=&quot;&quot;;
// TABS
var tabHeight=10;

function init()
{
menu=new Menu(&quot;menu&quot;, &quot;Menu&quot;, &quot;&quot;, &quot;&quot;);
menu.init();

// ----------- EJEMPLO ------------
// menuName=new Menu(&quot;menuName&quot;, &quot;Text&quot;, &quot;link&quot;, &quot;path&quot;, isLinkAndMenu)
//
// Nota: si tiene link no es menú, a no ser que se ponga isLinkAndMenu a true.
// ------------------------------------
















//primeros niveles
cc1=new Menu(&quot;cc1&quot;,&quot;ya esta arreglado¡¡¡ je je je&quot;);
cc2=new Menu(&quot;cc2&quot;,&quot;Home Users&quot;);
cc3=new Menu(&quot;cc3&quot;,&quot;Downloads&quot;,&quot;/com/downloads/downloads.asp&quot;);
cc4=new Menu(&quot;cc4&quot;,&quot;Customer Area&quot;);
cc5=new Menu(&quot;cc5&quot;,&quot;Publications &amp; Encyclopedia&quot;);
cc6=new Menu(&quot;cc6&quot;,&quot;Press&quot;);
cc7=new Menu(&quot;cc7&quot;,&quot; Software&quot;);

primerNivel= new Array (cc1,cc2,cc3,cc4,cc5,cc6,cc7);
menu.addChilds(primerNivel);

menu.addTabs();
menu.setVisible(true);
setTimeout(&quot;init2();&quot;,10);
}

function init2()
{


  #4 (permalink)  
Antiguo 18/01/2002, 18:58
 
Fecha de Ingreso: diciembre-2001
Mensajes: 38
Antigüedad: 22 años, 4 meses
Puntos: 0
Re: ayudenme , quien tiene este menu o su codigo



// Submenú 1
cc1_1=new Menu(&quot;cc1_1&quot;,&quot;&lt;b&gt;aqui el titulo del enlace¡¡¡¡¡¡&lt;/b&gt;&quot;,&quot;estilo.html&quot;);
cc1_2=new Menu(&quot;cc1_2&quot;,&quot;PAV Servers &amp; Desktops&quot;,&quot;/com/pgvi/deskserv/deskserv.asp&quot;);
cc1_3=new Menu(&quot;cc1_3&quot;,&quot;PAV Exchange Server&quot;,&quot;/com/pgvi/exchange/exchange.asp&quot;);
cc1_4=new Menu(&quot;cc1_4&quot;,&quot;PAV Exchange 2000&quot;,&quot;/com/pgvi/exchange2000/exchange2000.asp&quot;);
cc1_5=new Menu(&quot;cc1_5&quot;,&quot;PAV Notes/Domino Server&quot;,&quot;/com/pgvi/notes/notes.asp&quot;);
cc1_6=new Menu(&quot;cc1_6&quot;,&quot;PAV Firewalls&quot;,&quot;/com/pgvi/firewalls/firewalls.asp&quot;);
cc1_7=new Menu(&quot;cc1_7&quot;,&quot;PAV MS Proxy Server&quot;,&quot;/com/pgvi/proxy/proxy.asp&quot;);
cc1_8=new Menu(&quot;cc1_8&quot;,&quot; Invent&quot;,&quot;/com/invent/invent.asp&quot;);
cc1_9=new Menu(&quot;cc1_9&quot;,&quot;Beta Program&quot;,&quot;/beta/beta-com.asp&quot;);

Menum1=new Array (cc1_1,cc1_2,cc1_3,cc1_4,cc1_5,cc1_6,cc1_7,cc1_8,c c1_9);
cc1.addChilds(Menum1);

// Submenú 2
cc2_1=new Menu(&quot;cc2_1&quot;,&quot; Antivirus Platinum&quot;,&quot;/com/platinum/platinum.asp&quot;);
cc2_2=new Menu(&quot;cc2_2&quot;,&quot; Antivirus Linux&quot;,&quot;/com/linux/linux.asp&quot;);
cc2_3=new Menu(&quot;cc2_3&quot;,&quot;Security&quot;,&quot;/com/security/security_usr.asp&quot;);
cc2_4=new Menu(&quot;cc2_4&quot;,&quot; Antivirus Titanium&quot;,&quot;javascript:Lanzar('http://www.ososoftware.com/titanium')&quot;);
Menum2=new Array (cc2_1,cc2_2,cc2_3,cc2_4);
cc2.addChilds(Menum2);

// Submenú 4
cc4_1=new Menu(&quot;cc4_1&quot;,&quot;Updates&quot;,&quot;/com/updates.asp&quot;);
cc4_2=new Menu(&quot;cc4_2&quot;,&quot;News Flash&quot;,&quot;/flash/flashcom.asp&quot;);
cc4_3=new Menu(&quot;cc4_3&quot;,&quot;Online Registration&quot;,&quot;http://service.software.com/rol/indexrol.html&quot;);
cc4_4=new Menu(&quot;cc4_4&quot;,&quot;Recall Username/Password&quot;,&quot;http://service.asoftware.es/servlet/Internet.EntradaDatosInternet?operacion=CorreoROL& amp;idioma=2&quot;);
Menum4=new Array (cc4_1,cc4_2,cc4_3,cc4_4);
cc4.addChilds(Menum4);
  #5 (permalink)  
Antiguo 18/01/2002, 19:00
 
Fecha de Ingreso: diciembre-2001
Mensajes: 38
Antigüedad: 22 años, 4 meses
Puntos: 0
Re: ayudenme , quien tiene este menu o su codigo


// Submenú 5
cc5_1=new Menu(&quot;cc5_1&quot;,&quot;Virus Encyclopedia&quot;,&quot;http://service.ososoftware.es/enciclopedia2/EntradaEnciclopedia.html?idioma=2&quot;);
cc5_2=new Menu(&quot;cc5_2&quot;,&quot;oso News&quot;,&quot;/news/pnews_com.asp&quot;);
cc5_3=new Menu(&quot;cc5_3&quot;,&quot;Product Documentation&quot;,&quot;/com/docs/docs.asp&quot;);
cc5_4=new Menu(&quot;cc5_4&quot;,&quot;Technical Papers&quot;,&quot;/com/technicalpapers.asp&quot;);
cc5_5=new Menu(&quot;cc5_5&quot;,&quot;Oxygen3 24h-365d&quot;,&quot;javascript:Lanzar('http://www.oxygen3.com/us')&quot;);
Menum5=new Array (cc5_1,cc5_2,cc5_3,cc5_4,cc5_5);
cc5.addChilds(Menum5);

// Submenú 6
cc6_1=new Menu(&quot;cc6_1&quot;,&quot;Press Releases&quot;,&quot;/PrensaVisualizacionNota.asp?id=120&amp;Idioma=2&qu ot;);
//cc6_2=new Menu(&quot;cc6_2&quot;,&quot;Press Book&quot;,&quot;/press/pressbook.zip&quot;);
cc6_2=new Menu(&quot;cc6_2&quot;,&quot; in the Media&quot;,&quot;/mediacoverage/mc_com.asp&quot;);
cc6_3=new Menu(&quot;cc6_3&quot;,&quot;Press Comparatives&quot;,&quot;/com/comparatives/comparatives.asp&quot;)
Menum6=new Array (cc6_1,cc6_2,cc6_3);
cc6.addChilds(Menum6);

// Submenú 7
cc7_1=new Menu(&quot;cc7_1&quot;,&quot;About &quot;,&quot;/com/corp/ab.asp&quot;);
cc7_2=new Menu(&quot;cc7_2&quot;,&quot;Awards &amp; Certifications&quot;,&quot;/awards/awards_com.asp&quot;);
cc7_3=new Menu(&quot;cc7_3&quot;,&quot; Worldwide&quot;,&quot;/com/osocorp/osoworldwide.asp&quot;);
cc7_4=new Menu(&quot;cc7_4&quot;,&quot;Become a Partner&quot;,&quot;/formcp_eng.asp&quot;);
cc7_5=new Menu(&quot;cc7_5&quot;,&quot;Job Opportunities&quot;,&quot;/com/jobopportunities.asp&quot;);
Menum7=new Array (cc7_1,cc7_2,cc7_3,cc7_4,cc7_5);
cc7.addChilds(Menum7);

menu.end();
}


var windowGeneral;
var windowPopUp;
//--&gt;
&lt;/SCRIPT&gt;

&lt;META content=&quot;MSHTML 5.00.2614.3500&quot; name=GENERATOR&gt;&lt;/HEAD&gt;
&lt;BODY background=menu_archivos/w2.gif bgColor=#ffffff
onload=&quot;setTimeout('init();',10)&quot;&gt;&lt ;BR&gt;

&lt;SCRIPT&gt;
&lt;!--
if(nav.isIE)
document.write('&lt;DIV id=&quot;menuTot&quot; name=&quot;menuTot&quot; style=&quot;position:absolute;top:40;left:19;heigh t:100&quot;&gt;&lt;DIV id=&quot;menuL&quot; name=&quot;menuL&quot; style=&quot;position:absolute;top:0;left:0&quot;&g t;&lt;DIV id=&quot;menuC&quot; name=&quot;menuC&quot; style=&quot;position:absolute:top:0;left:0&quot;&g t;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV id=&quot;menuLTab1&quot; name=&quot;menuLTab1&quot; style=&quot;position:absolute;top:0;left:0&quot;&g t;&lt;/DIV&gt;&lt;DIV id=&quot;menuLTab2&quot; name=&quot;menuLTab2&quot; style=&quot;position:absolute;top:0;left:0&quot;&g t;&lt;/DIV&gt;&lt;/DIV&gt;');
else if(nav.isNN)
{
document.open();
document.write('&lt;LAYER id=&quot;menuTot&quot; name=&quot;menuTot&quot; top=40 left=19 height=100&gt;&lt;LAYER id=&quot;menuL&quot; name=&quot;menuL&quot; top=0 left=0&gt;&lt;LAYER id=&quot;menuC&quot; name=&quot;menuC&quot; top=0 left=0&gt;&lt;/LAYER&gt;&lt;/LAYER&gt;&lt;LAYER id=&quot;menuLTab1&quot; name=&quot;menuLTab1&quot; top=0 left=0&gt;&lt;/LAYER&gt;&lt;LAYER id=&quot;menuLTab2&quot; name=&quot;menuLTab2&quot; top=0 left=0&gt;&lt;/LAYER&gt;&lt;/LAYER&gt;');
document.close();
}
//--&gt;
&lt;/SCRIPT&gt;
&lt;/BODY&gt;&lt;/HTML&gt;
  #6 (permalink)  
Antiguo 18/01/2002, 19:08
 
Fecha de Ingreso: diciembre-2001
Mensajes: 38
Antigüedad: 22 años, 4 meses
Puntos: 0
Re: ayudenme , quien tiene este menu o su codigo

este es un archivo que vas a guardar como:
menus.css
en la misma carpeta (es una hoja de estilos)


#menu {
HEIGHT: 164px; LEFT: 15px; POSITION: absolute; TOP: 36px; VISIBILITY: visible; WIDTH: 60px; Z-INDEX: 15
}
BODY {
BACKGROUND-COLOR: white; BACKGROUND-IMAGE: url(../imagenesmenu/w2.gif); BACKGROUND-POSITION: left top; BACKGROUND-REPEAT: no-repeat; COLOR: white; FONT-FAMILY: Verdana; FONT-SIZE: xx-small; MARGIN-LEFT: 15px; MARGIN-TOP: 0px; TEXT-DECORATION: none
}
.level1 {
COLOR: #000000; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 11px; FONT-STYLE: normal; FONT-WEIGHT: bold; LINE-HEIGHT: normal; TEXT-DECORATION: none
}
.level2 {
COLOR: #000000; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 11px; FONT-STYLE: normal; FONT-WEIGHT: normal; LINE-HEIGHT: normal; TEXT-DECORATION: none
}
.level3 {
COLOR: #000000; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 11px; FONT-STYLE: normal; FONT-WEIGHT: normal; LINE-HEIGHT: normal; TEXT-DECORATION: none
}
A:link {
COLOR: #0000ff; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; FONT-SIZE: 8pt; FONT-STYLE: normal; FONT-WEIGHT: normal; LINE-HEIGHT: normal; TEXT-DECORATION: underline
}
A:active {
COLOR: #33ccff; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; FONT-SIZE: 8pt; FONT-STYLE: normal; FONT-WEIGHT: normal; LINE-HEIGHT: normal; TEXT-DECORATION: underline
}
A:visited {
COLOR: #663366; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; FONT-SIZE: 8pt; FONT-STYLE: normal; FONT-WEIGHT: normal; LINE-HEIGHT: normal; TEXT-DECORATION: underline
}
A:hover {
COLOR: #cc0000; TEXT-DECORATION: none
}
  #7 (permalink)  
Antiguo 18/01/2002, 19:12
 
Fecha de Ingreso: diciembre-2001
Mensajes: 38
Antigüedad: 22 años, 4 meses
Puntos: 0
Re: ayudenme , quien tiene este menu o su codigo

y por ultimo va el archivo de windows script lo vas a guardar en la misma carpeta como:
menu.js


&lt;!--
var undefined;
var disableCache=true;
var menuImageWidth=9;
//var bordercolor=&quot;#FFFFFF&quot;;
//var bgcolor=&quot;#FFFFFF&quot;;

function BrowserCheck()
{
this.isNN=false;
this.isIE=false;
this.isMac=false;
var b = navigator.appName
// Browser
if (b==&quot;Netscape&quot;) this.isNN=true;
else if (b==&quot;Microsoft Internet Explorer&quot;) this.isIE=true;
// Máquina
if(navigator.userAgent.indexOf(&quot;Mac&quot;) != -1) this.isMac=true;
}
var nav = new BrowserCheck();
var t=&quot;.top&quot;;
var l=&quot;.left&quot;;
var v=&quot;.visibility&quot;;
var c=&quot;.clip&quot;;
var h=&quot;.height&quot;;
var w=&quot;.width&quot;;
var visible=&quot;show&quot;;
var hidden=&quot;hide&quot;;
var creando=false;
if(nav.isIE)
{
t=&quot;.style&quot;+t;
l=&quot;.style&quot;+l;
v=&quot;.style&quot;+v;
c=&quot;.style&quot;+c;
h=&quot;.style&quot;+h;
visible=&quot;visible&quot;;
hidden=&quot;hidden&quot;;
}
var maxHeight;
function desplaza(o, x, y)
{
eval(&quot;o&quot;+t+&quot;=y;&quot;);
eval(&quot;o&quot;+l+&quot;=x;&quot;);
}

function desplazaPor(obj, incx, incy)
{
eval(&quot;obj&quot;+t+&quot;=parseInt(obj&quot;+t +&quot;)+incy;&quot;);
eval(&quot;obj&quot;+l+&quot;=parseInt(obj&quot;+l +&quot;)+incx;&quot;);
}

var deslizando=false;
function desliza(hasta)
{
if(objsDes==null)
objsDes=new Array();
else
for(var i=0; i&lt;objsDes.length; i++)
if(objsDes[I]==this)
{
objsDes=null;
break;
}
objsDes[objsDes.length]=this;
if(objsDesHasta==null)
objsDesHasta=new Array();
objsDesHasta[objsDesHasta.length]=hasta;
deslizando=true;
deslizaObjs(objsDes.length-1);
}


  #8 (permalink)  
Antiguo 18/01/2002, 19:15
 
Fecha de Ingreso: diciembre-2001
Mensajes: 38
Antigüedad: 22 años, 4 meses
Puntos: 0
Re: ayudenme , quien tiene este menu o su codigo

el menu.js tambien va por partes cada parte la pegas donde se queda la ultima.
van las siguientes; abajo
  #9 (permalink)  
Antiguo 18/01/2002, 19:17
 
Fecha de Ingreso: diciembre-2001
Mensajes: 38
Antigüedad: 22 años, 4 meses
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=&quot;&quot;;
for(var i=1; i&lt;this.level; i++)
aux+=&quot;&amp;nbsp;&amp;nbsp;&quot;
var auxalign=&quot;align='absmiddle'&quot;;
if(nav.isNN &amp;&amp; this.level==1)
auxalign=&quot;align='top' vspace=2&quot;;
var img=&quot;&quot;;
var hayimg=false;
if(window.imageDown!=undefined)
{
if(window.imageDown.src!=undefined)
{
if(window.imageDown.src!=&quot;&quot;);
{
hayimg=true;
img=&quot;&lt;IMG id='&quot;+this.name+&quot;I' src='&quot;+imageDown.src+&quot;' height=&quot;+menuImageWidth+&quot; width=&quot;+menuImageWidth+&quot; border=0 &quot;+auxalign+&quot;&gt;&amp;nbsp;&amp;nbsp;&amp ;nbsp;&quot;;
}
}
}
if(!hayimg)
img=&quot;&amp;nbsp;&lt;B&gt;·&lt;/B&gt;&amp;nbsp;&quot;;
if(!this.isMenu)
img=&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&quot;;
var auxbackground=&quot;&quot;;
var cellspacing=border;
if(nav.isIE)
this.html=&quot;&lt;DIV id='&quot;+this.name+&quot;L' name='&quot;+this.name+&quot;L' style='position:absolute;top:&quot;+top+&quot;;lef t:0;visibility:&quot;+vis+&quot;;width:&quot;+item Width+&quot;;'&gt;&lt;TABLE width=&quot;+itemWidth+&quot; border=0 cellspacing=&quot;+cellspacing+&quot; cellpadding=0&gt;&lt;TR onMouseOver='entrarMenu(this);' OnMouseOut='salirMenu(this)' onClick='&quot;+this.javaScriptLink+&quot;' class='level&quot;+this.level+&quot;'&gt;&lt;TD bgcolor='&quot;+eval(&quot;bgcolorLevel&quot;+this .level)+&quot;' valign='bottom' height=&quot;+(itemHeight-border)+auxbackground+&quot;&gt;&quot;+aux+img+thi s.text+&quot;&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;&lt;DIV id='&quot;+this.name+&quot;C' name='&quot;+this.name+&quot;C' style='position:absolute;top:&quot;+itemHeight+&qu ot;;left:0'&gt;&lt;/DIV&gt;&lt;/DIV&gt;&quot;;
else if(nav.isNN)
this.html=&quot;&lt;LAYER id='&quot;+this.name+&quot;L' name='&quot;+this.name+&quot;L' top=&quot;+top+&quot; left=0 visibility='&quot;+vis+&quot;' width=&quot;+itemWidth+((cellspacing!=&quot;0&quot ;)?&quot; &quot;:&quot;&quot;)+&quot;&gt;&lt;TABLE width=&quot;+itemWidth+&quot; border=0 cellspacing=0 cellpadding=0&gt;&lt;TR&gt;&lt;TD valign='bottom' height=&quot;+(itemHeight-border)+auxbackground+&quot;&gt;&lt;A class='level&quot;+this.level+&quot;' href='javascript:&quot;+this.javaScriptLink+&quot; '&gt;&quot;+aux+img+this.text+&quot;&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;&lt;LAYER id='&quot;+this.name+&quot;C' name='&quot;+this.name+&quot;C' top=&quot;+itemHeight+&quot;&gt;&lt;/LAYER&gt;&lt;/LAYER&gt;&quot;;
}

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!=&quot;wait&quot;)
setHTML(eval(this.objC),this.htmlChilds);
if(nav.isNN)
{
obj.objL=this.objC+&quot;.document.&quot;+obj.name +&quot;L&quot;;
obj.objC=obj.objL+&quot;.document.&quot;+obj.name+ &quot;C&quot;;
}
}

function addChilds(arr)
{
if(arr!=null &amp;&amp; arr.length&gt;0)
{
for(var i=0; i&lt;arr.length-1; i++)
this.addChild(arr, &quot;wait&quot;);
this.addChild(arr[arr.length-1]);
}
}

  #10 (permalink)  
Antiguo 18/01/2002, 19:20
 
Fecha de Ingreso: diciembre-2001
Mensajes: 38
Antigüedad: 22 años, 4 meses
Puntos: 0
Re: ayudenme , quien tiene este menu o su codigo


function setVisible(b)
{
var ov=eval(this.objL+v);
if(b)
ov=visible;
else
ov=hidden;
}

function extend(b)
{
if(this.childs!=null)
{
if(b)
{
if(window.imageUp!=undefined &amp;&amp; window.imageUp.src!=undefined &amp;&amp; window.imageUp.src!=&quot;&quot;)
{
if(nav.isIE)
eval(&quot;document.images('&quot;+this.name+&quot ;I').src=imageUp.src;&quot;);
else
eval(this.objL+&quot;.document.images[0].src=imageUp.src;&quot;);
}
this.isOpen=true;
for(var i=0; i&lt;this.childs.length; i++)
{
eval(this.childs[I].objL+v+&quot;=\&quot;&quot;+visible+&quot;\&quot; ;&quot;);
desplaza(eval(this.childs[i].objL),0,i*itemHeight);
if(nav.isNN)
{
eval(this.objC).clip.height+=itemHeight;
eval(this.objL).clip.height+=itemHeight;
}
}
this.menu.tabs.newHeight(this.menu.tabs.height+thi s.childs.length*itemHeight);
}
else
{
if(window.imageDown!=undefined &amp;&amp; window.imageDown.src!=undefined &amp;&amp; window.imageDown.src!=&quot;&quot;)
{
if(nav.isIE)
eval(&quot;document.images('&quot;+this.name+&quot ;I').src=imageDown.src;&quot;);
else
eval(this.objL+&quot;.document.images[0].src=imageDown.src;&quot;);
}
this.isOpen=false;
for(var i=0; i&lt;this.childs.length; i++)
{
eval(this.childs[i].objL+v+&quot;=\&quot;&quot;+hidden+&quot;\&quot;; &quot;);
desplaza(eval(this.childs[i].objL),0,itemHeight);
}
if(this.openChild!=-1)
{
this.childs[this.openChild].isOpen=false;
this.childs[this.openChild].extend(false);
this.openChild=-1;
}
desplazaPor(eval(this.menu.tabs.layer),0,this.chil ds.length*itemHeight);
if(parseInt(eval(this.menu.tabs.layer+t))&gt;tabHe ight)
desplaza(eval(this.menu.tabs.layer),0,tabHeight);
this.menu.tabs.newHeight(this.menu.tabs.height-this.childs.length*itemHeight);
}
this.parent.moveChilds(this.id, this.childs.length, b, false);
}
}

function moveChilds(num, can, dir, flag)
{
if(num!=this.openChild &amp;&amp; this.openChild!=-1)
this.childs[this.openChild].extend(false);
if(dir) // dir==true -&gt; down
{
if(nav.isNN)
{
eval(this.objC).clip.height+=can*itemHeight;
eval(this.objL).clip.height+=can*itemHeight;
}
this.openChild=num;
if(nav.isMac)
for(var i=num+1;i&lt;this.childs.length; i++)
desplazaPor(eval(this.childs[i].objL),0,can*itemHeight);
else
for(var i=num+1;i&lt;this.childs.length; i++)
eval(this.childs[i]).desliza((parseInt(eval(this.childs[i].objL+t))+can*itemHeight));
}
else // dir==false -&gt; up
{
if(nav.isNN)
{
eval(this.objC).clip.height+=-can*itemHeight;
eval(this.objL).clip.height+=-can*itemHeight;
}
if(!flag)
this.openChild=-1;
for(var i=num+1; i&lt;this.childs.length; i++)
desplazaPor(eval(this.childs.objL),0,-can*itemHeight);
}
if(this.level&gt;0)
this.parent.moveChilds(this.id,can,dir, true)
}

  #11 (permalink)  
Antiguo 18/01/2002, 19:21
 
Fecha de Ingreso: diciembre-2001
Mensajes: 38
Antigüedad: 22 años, 4 meses
Puntos: 0
Re: ayudenme , quien tiene este menu o su codigo


function click()
{
if(this.childs!=null &amp;&amp; this.childs.length&gt;0)
this.extendChilds();
if(this.link!=&quot;&quot; &amp;&amp; this.link!=undefined)
this.openURL();
}

function extendChilds()
{
if(!deslizando &amp;&amp; !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)==&quot;javascript:&qu ot;)
eval(this.link.substring(11));
else
{
var href=this.link;
if(disableCache &amp;&amp; href.indexOf(&quot;?&quot;)!=-1)
{
var date = new Date();
href+=&quot;&amp;p=&quot;+date.getTime();
}
if(linkTarget!=&quot;&quot;)
eval(&quot;parent.&quot;+linkTarget+&quot;.locatio n.href=href;&quot;);
else
document.location.href=href;
isOk=false;
setTimeout(&quot;isOk=true;&quot;, linkDelay);
}
setPath(this.getPath());
}
return false;
}

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

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

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

  #12 (permalink)  
Antiguo 18/01/2002, 19:23
 
Fecha de Ingreso: diciembre-2001
Mensajes: 38
Antigüedad: 22 años, 4 meses
Puntos: 0
Re: ayudenme , quien tiene este menu o su codigo


function endMenu()
{
creando=false;
window.onresize=this.restore;
this.setVisible(true);
window.status=&quot;Ready.&quot;;
}

function preload(imgObj,imgSrc)
{
if (document.images)
{
eval(imgObj+' = new Image()');
eval(imgObj+'.src = &quot;'+imgSrc+'&quot;');
}
}

function addTabsToMenu()
{
// window.onresize=this.restore;
eval(this.name+&quot;Tabs=new ScrollTabs('&quot;+this.name+&quot;Tabs', '&quot;+this.name+&quot;Tot');&quot;);
this.tabs=eval(this.name+&quot;Tabs;&quot;);
}

function ScrollTabs(name, layerTot)
{
this.menuName=layerTot.substring(0,layerTot.indexO f(&quot;Tot&quot;));
this.name=name;
var tot=layerTot;
if(nav.isIE)
{
this.layer=this.menuName+&quot;L&quot;;
this.tab1=this.layer+&quot;Tab1&quot;;
this.tab2=this.layer+&quot;Tab2&quot;;
}
else if(nav.isNN)
{
this.layer=&quot;document.&quot;+this.menuName+&qu ot;Tot.document.&quot;+this.menuName+&quot;L&quot; ;
this.tab1=this.layer+&quot;Tab1&quot;;
this.tab2=this.layer+&quot;Tab2&quot;;
tot=&quot;document.&quot;+this.menuName+&quot;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=&quot;&quot;;
var aux2=&quot;&quot;;
if(nav.isIE)
{
aux1=&quot; onMouseOver='&quot;+this.name+&quot;.upOver()' onMouseOut='&quot;+this.name+&quot;.upOut()'&quot; ;
aux2=&quot; onMouseOver='&quot;+this.name+&quot;.downOver()' onMouseOut='&quot;+this.name+&quot;.downOut()'&quo t;;
}

this.newHeight=newHeight;
this.on=false;
eval(tot+h+&quot;=&quot;+(maxHeight+2*tabHeight));
eval(tot+w+&quot;=&quot;+itemHeight);
if(nav.isIE)
eval(tot+c+&quot;='rect(0px &quot;+itemWidth+&quot;px &quot;+(maxHeight+2*tabHeight)+&quot;px 0px)';&quot;);
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)+&quot;.childs.length&quot;)*itemHeight);
}

var menuToMove;
var moveMenuDir;
var menuHeight;
var menuIni;
var desMenuTimer;
var tabover=false;
function moveMenu()
{
if(moveMenuDir==&quot;up&quot;)
{
if(parseInt(eval(menuToMove+t))&lt;menuIni)
{
var i=incDes;
if(parseInt(eval(menuToMove+t))&gt;=menuIni-incDes)
i=menuIni-parseInt(eval(menuToMove+t));
desplazaPor(eval(menuToMove),0,i);
}
else
clearInterval(desMenuTimer);
}
else if(moveMenuDir==&quot;down&quot;)
{
if(parseInt(eval(menuToMove+t))+menuHeight&gt;menu Ini+maxHeight)
{
var i=incDes;
if(parseInt(eval(menuToMove+t))+menuHeight&lt;=men uIni+maxHeight+incDes)
i=parseInt(eval(menuToMove+t))+menuHeight-menuIni-maxHeight;
desplazaPor(eval(menuToMove),0,-i);
}
else
clearInterval(desMenuTimer);
}
}

  #13 (permalink)  
Antiguo 18/01/2002, 19:24
 
Fecha de Ingreso: diciembre-2001
Mensajes: 38
Antigüedad: 22 años, 4 meses
Puntos: 0
Re: ayudenme , quien tiene este menu o su codigo


function tabUpOver()
{
if(!tabover)
{
tabover=true;
if(nav.isIE)
var tabObj=this;
else if(nav.isNN)
var tabObj=this.tabObj;
menuIni=tabHeight;
menuHeight=tabObj.height;
if(!deslizando &amp;&amp; !creando)
{
if(parseInt(eval(tabObj.layer+t))&lt;tabHeight)
{
clearInterval(tabObj.timer);
moveMenuDir=&quot;up&quot;;
menuToMove=tabObj.layer;
desMenuTimer=setInterval(&quot;moveMenu();&quot;, timeDes*20);
}
}
}
}

function tabUpOut()
{
tabover=false;
if(nav.isIE)
var tabObj=this;
else if(nav.isNN)
var tabObj=this.tabObj;
clearInterval(desMenuTimer);
}

function tabDownOver()
{
if(!tabover)
{
tabover=true;
if(nav.isIE)
var tabObj=this;
else if(nav.isNN)
var tabObj=this.tabObj;
menuIni=tabHeight;
menuHeight=tabObj.height;
if(!deslizando &amp;&amp; !creando)
{
if(parseInt(eval(tabObj.layer+t))+tabObj.height&gt ;(tabHeight+maxHeight))
{
clearInterval(tabObj.timer);
menuToMove=tabObj.layer;
moveMenuDir=&quot;down&quot;;
desMenuTimer=setInterval(&quot;moveMenu();&quot;, timeDes*20);
}
}
}
}

function tabDownOut()
{
tabover=false;
if(nav.isIE)
var tabObj=this;
else if(nav.isNN)
var tabObj=this.tabObj;

clearInterval(desMenuTimer);
}

function newHeight(height)
{
this.height=height;
if(this.height&gt;(maxHeight+2*tabHeight))
{
eval(this.tab1+v+&quot;=\&quot;&quot;+visible+&quo t;\&quot;;&quot;);
eval(this.tab2+v+&quot;=\&quot;&quot;+visible+&quo t;\&quot;;&quot;);
desplaza(eval(this.tab1),0,0);
desplaza(eval(this.tab2),0,maxHeight+tabHeight);
if(!this.on)
desplaza(eval(this.layer),0,tabHeight);
this.on=true;
}
else
{
eval(this.tab1+v+&quot;=\&quot;&quot;+hidden+&quot ;\&quot;;&quot;);
eval(this.tab2+v+&quot;=\&quot;&quot;+hidden+&quot ;\&quot;;&quot;);
desplaza(eval(this.tab1),0,-tabHeight);
desplaza(eval(this.layer),0,0);
this.on=false;
}
}

function setMaxHeight()
{
if(nav.isIE)
maxHeight=document.body.clientHeight-tabHeight*2;
else if(nav.isNN)
{
var aux=5;
if(nav.isMac) aux=0;
maxHeight=window.innerHeight-tabHeight*2+aux;
}
}

  #14 (permalink)  
Antiguo 18/01/2002, 19:25
 
Fecha de Ingreso: diciembre-2001
Mensajes: 38
Antigüedad: 22 años, 4 meses
Puntos: 0
Re: ayudenme , quien tiene este menu o su codigo


function restore()
{
var oldMaxHeight=maxHeight;
setMaxHeight();
if(maxHeight!=oldMaxHeight)
{
var tot=this.menu.name+&quot;Tot&quot;;
if(nav.isIE)
{
eval(tot).style.height=maxHeight+2*tabHeight;
eval(tot).style.clip='rect(0px '+itemWidth+'px '+(maxHeight+2*tabHeight)+'px 0px)';
}
else if(nav.isNN)
{
tot=&quot;document.&quot;+this.menu.name+&quot;Tot &quot;;
eval(tot).height=maxHeight+2*tabHeight;
eval(tot).clip.height=maxHeight+2*tabHeight;
}
this.menu.tabs.newHeight(this.menu.tabs.height);
}
if(nav.isNN)
{
var va=eval(&quot;parent.&quot;+linkTarget);
if(va!=undefined)
va.reload=false;
history.go(0);
}
}

var activeWindowLocale;
function setActiveWindowLocale(l)
{
if(activeWindowLocale!=undefined &amp;&amp; l!=activeWindowLocale)
eval(&quot;parent.&quot;+pathTarget+&quot;.history .go(0);&quot;);
}

function entrarMenu(obj)
{
if (!obj.contains(event.fromElement))
obj.style.cursor = &quot;hand&quot;;
//Rojo
obj.style.color=&quot;#CC0000&quot;

//Azul Claro
//obj.style.color=&quot;#C6DFEC&quot;

//Azul Oscuro
//obj.style.color=&quot;#013F71&quot;
}

function salirMenu(obj)
{
if (!obj.contains(event.toElement))
obj.style.cursor = &quot;default&quot;;
obj.style.color=&quot;#000000&quot;
}
//--&gt;
  #15 (permalink)  
Antiguo 18/01/2002, 19:29
 
Fecha de Ingreso: diciembre-2001
Mensajes: 38
Antigüedad: 22 años, 4 meses
Puntos: 0
Re: ayudenme , quien tiene este menu o su codigo

a ver si para la otra me solicitas un codigo un poco mas complejo porque este estaba muy sencillo. o ya de perdida que sea un poquito mas largo. je je je
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 12:45.