Ver Mensaje Individual
  #3 (permalink)  
Antiguo 25/01/2002, 14:14
Ferpe
 
Fecha de Ingreso: enero-2002
Mensajes: 5
Antigüedad: 22 años, 2 meses
Puntos: 0
Re: Menu desplegable>nueva ventana

Hago de nuevo la pregunta. Tras insertar el código siguiente: <pre> </pre> &lt;!-- PRIMER PASO: Copiar este código dentro del tag HEAD --&gt;

&lt;script language=&quot;JavaScript&quot; src=&quot;navcond.js&quot;&gt;
&lt;/script&gt;

&lt;script language=&quot;JavaScript&quot;&gt;

/*
Top Navigational Bar II (By Mike Hall @ Brainjar.com)
*/

var myNavBar1 = new NavBar(0);
var dhtmlMenu;

//define menu items (first parameter of NavBarMenu specifies main category width, second specifies sub category width in pixels)
//add more menus simply by adding more &quot;blocks&quot; of same code below

dhtmlMenu = new NavBarMenu(100, 0);
dhtmlMenu.addItem(new NavBarMenuItem(&quot;Inicio&quot;, &quot;index.htm&quot;));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(100, 120);
dhtmlMenu.addItem(new NavBarMenuItem(&quot;Depósito&quot;, &quot;&quot;));
dhtmlMenu.addItem(new NavBarMenuItem(&quot;Caducar página&quot;, &quot;caducar.htm&quot;));
dhtmlMenu.addItem(new NavBarMenuItem(&quot;Pantalla completa&quot;, &quot;ventanafull.htm&quot;));
dhtmlMenu.addItem(new NavBarMenuItem(&quot;Anular botones&quot;, &quot;mouse.htm&quot;));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(110, 120);
dhtmlMenu.addItem(new NavBarMenuItem(&quot;Tutoriales&quot;, &quot;&quot;));
dhtmlMenu.addItem(new NavBarMenuItem(&quot;La Variable&quot;, &quot;http://www.lavariable.com&quot;));
dhtmlMenu.addItem(new NavBarMenuItem(&quot;Programación&quot;, &quot;http://www.programacion.net&quot;));
dhtmlMenu.addItem(new NavBarMenuItem(&quot;ABC Datos&quot;, &quot;http://www.abcdatos.com/&quot;));
dhtmlMenu.addItem(new NavBarMenuItem(&quot;Cybercursos&quot;, &quot;http://www.cybercursos.net/&quot;));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(100, 150);
dhtmlMenu.addItem(new NavBarMenuItem(&quot;Buscadores&quot;, &quot;&quot;));
dhtmlMenu.addItem(new NavBarMenuItem(&quot;Yahoo&quot;, &quot;http://www.yahoo.com&quot;));
dhtmlMenu.addItem(new NavBarMenuItem(&quot;Alta Vista&quot;, &quot;http://www.altavista.com&quot;));
dhtmlMenu.addItem(new NavBarMenuItem(&quot;Infoseek&quot;, &quot;http://www.infoseek.com&quot;));
dhtmlMenu.addItem(new NavBarMenuItem(&quot;Excite&quot;, &quot;http://www.excite.com&quot;));
dhtmlMenu.addItem(new NavBarMenuItem(&quot;HotBot&quot;, &quot;http://www.hotbot.com&quot;));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(100, 150);
dhtmlMenu.addItem(new NavBarMenuItem(&quot;Webmasters&quot;, &quot;&quot;));
dhtmlMenu.addItem(new NavBarMenuItem(&quot;Foros del Web&quot;, &quot;http://www.forosdelweb.com&quot;));
dhtmlMenu.addItem(new NavBarMenuItem(&quot;Desarrollo Web&quot;, &quot;http://www.desarrolloweb.com&quot;));
dhtmlMenu.addItem(new NavBarMenuItem(&quot;JavaScript&quot;, &quot;http://javascript.internet.com&quot;));
dhtmlMenu.addItem(new NavBarMenuItem(&quot;BrainJar&quot;, &quot;http://brainjar.com&quot;));
myNavBar1.addMenu(dhtmlMenu);

//set menu colors
myNavBar1.setColors(&quot;#ffffff&quot;,&quot;#fff fff&quot;,&quot;#000000&quot;,&quot;#ffffff&quot;, &quot;#6B6B6B&quot;,&quot;#000000&quot;,&quot;#C0C 0C0&quot;,&quot;#ffffff&quot;,&quot;#8A0000&quot;)
myNavBar1.setFonts(&quot;Arial&quot;,&quot;plain&q uot;,&quot;bold&quot;,&quot;11px&quot;,&quot;Arial &quot;,&quot;plain&quot;,&quot;bold&quot;,&quot;11 px&quot;);

//uncomment below line to center the menu (valid values are &quot;left&quot;, &quot;center&quot;, and &quot;right&quot;
//myNavBar1.setAlign(&quot;center&quot;)

var fullWidth;

function init() {

// Get width of window, need to account for scrollbar width in Netscape.

fullWidth = getWindowWidth()
- (isMinNS4 &amp;&amp; getWindowHeight() &lt; getPageHeight() ? 16 : 0);

myNavBar1.resize(fullWidth);
myNavBar1.create();
myNavBar1.setzIndex(2);
}
&lt;/script&gt;
El enlace que resulta al picar en uno de las opciones del menú despleglable se abre en la misma ventana. Lo que quiero es que se abra en una nueva ventana.