Foros del Web » Programando para Internet » Javascript »

Error El Menu Superior!!! Sos!

Estas en el tema de Error El Menu Superior!!! Sos! en el foro de Javascript en Foros del Web. Hola a todos expertos, Podeis mirar en www.fmds.es es una página web oficial desde hace poquitos días y hemos desarrollando poco a poco. El problema ...
  #1 (permalink)  
Antiguo 22/10/2003, 01:41
 
Fecha de Ingreso: enero-2003
Ubicación: Madrid
Mensajes: 136
Antigüedad: 21 años, 3 meses
Puntos: 1
Error El Menu Superior!!! Sos!

Hola a todos expertos,

Podeis mirar en www.fmds.es es una página web oficial desde hace poquitos días y hemos desarrollando poco a poco.

El problema mayor es el menú superior ya que no le funciona cualquier botón para que salga la página en la parte central....dónde aparece el logo más la dirección.......

Por ejemplo: He creado nueva página en la que está el botón NOTICIAS (Está en la parte superior, al lado de otro botón CONTACTO)....se sale error en la barra de estado (Figura 1)



Podeis echar vistado en cada pagina HTML corresponde a ellos o bien puedes sacar en Documento HTML

www.fmds.es/index.htm

<html>
<head>
<META name="title" content="federación madrileña de deportes para sordos">
<META name="description" content="Deportes para las personas Sordas: ">
<META name="keywords" content="fmds, sordos, deportes, futbol, futbol sala, futbol 7, bolos, frontenis, petanca, baloncesto, senderismo">
<META name="language" content="es">
<META name="revisit-after" content="11 month">
<META name="rating" content="General">
<META name="author" content="Daniel Nuño">
<META name="owner" content="FMDS">
<META name="robot" content="index, follow">
<script language="JavaScript" type="text/javascript">
<!--
(top.location == self.location) || (top.location = self.location)
//-->
</script>
<TITLE>Federación Madrileña de Deportes para Sordos</TITLE>
</head>
<frameset rows="100,*" framespacing="0" border="0" frameborder="0">
<frame name="superior" src="menu_sup.htm" scrolling="no" noresize target="_self" marginwidth="0" marginheight="0">
<frameset cols="150,*">
<frame src="menu_izd.htm" name="izquierdo" frameborder="0" scrolling="auto" noresize marginwidth="0" marginheight="0">
<frameset rows="*,80">
<frame name="cuerpo" src="cuerpo.htm" scrolling="auto">
<frame name="pie" scrolling="no" noresize target="_top" src="menu_inf.htm" marginwidth="0" marginheight="0">
</frameset>
</frameset>
</frameset>
<noframes>
<body>
</body>
</noframes>
</frameset>
</html>

www.fmds.es/menu_sup.htm

<HTML>
<HEAD>
<TITLE>Menu Superior</TITLE>
<STYLE type=text/css>
TD {
Color: #FF0000;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
}
A:link {
Color: #FF0000;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
text-decoration:none;
}
A:visited {
Color: #FF0000;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
}
A:active {
Color: #FF0000;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
}
A:hover {
Color: #000000;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
text-decoration:none;
}
</STYLE>
<SCRIPT language=JavaScript src="script/navegador.js"></SCRIPT>
<SCRIPT>
document.write ('<link rel="stylesheet" type="text/css" href="script/menuIE.css">');
</SCRIPT>
<SCRIPT language=JavaScript src="script/matrizMenu.js"></SCRIPT>
</HEAD>
<BODY topmargin="0" leftmargin="0">
<table width="750" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="69" height="100" rowspan="2" bgcolor="#FFFFFF">
<a href="http://www.fmds.es"><img alt="Federación Madrileña de Deportes para Sordos" src="images/logo_fmds_69x100.gif" width="69" height="100" border="0"></a>
</td>
<td height="58" align="center" bgcolor="#FF0000">
<font color="#FFFFFF" size="5"><strong>Federación Madrileña de Deportes para Sordos</strong></font>
</td>
</tr>
<tr>
<td height="42">
<SCRIPT>
document.write('<script language="JavaScript" SRC="script/menuIE.js"><\/script>');
</SCRIPT>
</td>
</tr>
</tbody>
</table>
</BODY>
</HTML>

www.fmds.es/script/navegador.js

var VER= navigator.appVersion
var DOM= document.getElementById?1:0
var IE5= (VER.indexOf("MSIE 5")>-1 && DOM)?1:0;
var IE6= (VER.indexOf("MSIE 6")>-1 && DOM)?1:0;
var IE4= (document.all && !DOM)?1:0;
var IE = IE4 || IE5 || IE6;
var NS5= (DOM && parseInt(VER) >= 5) ?1:0;
var NS4= (document.layers && !DOM)?1:0;
var NS = NS4||NS5;
if (NS5)
{
document.all = new Function("n", "return document.getElementById(n);");
}

www.fmds.es/script/menuIE.css

.divMenu0 {position:absolute; width:681; top:77; left:69;}
.tablaMenu0 {background-color:#FF0000;}
.celMenu0 {text-align:center; font-family:Verdana; font-size:10px; color:#FFFFFF; font-weight: bold; cursor:hand; border-width:0; border-style:solid; border-color:#FFFFFF;}

.divMenu1 {position:absolute; visibility:hidden; width:681; top:57; left:69; }
.tablaMenu1 {background-color:#FFFFFF;}
.celMenu1 {text-align:center; font-family:Verdana; font-size:10px; color:#666666; font-weight: bold; margin:0px; spacing:0px; border-width:1; border-style:solid; border-color:#FF0000; cursor:hand}

.linksup {font-family:Verdana; font-size:10; font-weight: bold; }
.linksup a:link { text-decoration: none;color : navy; }
.linksup a:visited { text-decoration: none;color : navy;}
.linksup a:active { text-decoration: none;color: navy; }
.linksup a:hover { text-decoration: none;color: navy; }


www.fmds.es/script/menuIE.js

//var colorOver = new Array("#819DB8", "#FFCC66");
var colorOver = new Array("#666666","#e0e0e0");
var tamSeparacion = new Array(0,0); //** Separación entre celdas
var frameDestino = "cuerpo";
//**--------------------------------
var opcAnterior = new Array(null,null,null,null); //** opción sobre la que se hizo click
function over(obj, nivel, href, subMenu)
{
obj.nivel = nivel;
obj.href = href;
obj.subMenu = subMenu;
obj.onclick = click;
obj.style.backgroundColor = colorOver[nivel];
for (i = nivel; i < opcAnterior.length; i++)
{
if (opcAnterior[i] == null || opcAnterior[i] == obj) break;
if (opcAnterior[i].subMenu != '') document.all(opcAnterior[i].subMenu).style.visibility = "hidden";
opcAnterior[i].style.backgroundColor = '';
}
if (subMenu != '') document.all(subMenu).style.visibility = "visible";
opcAnterior[nivel] = obj;
return true;
}
function click()
{
if (this.href != '')
{
if (this.href.indexOf("javascript:") != -1) eval(this.href);
else parent.frames[frameDestino].location.href = this.href;
}
}
function generaMenu(menu, nivel)
{
var mnu = eval("window."+menu);
var i, cad;
cad = '<div id="'+ menu +'" class="divMenu'+ nivel +'">';
cad += '<table class="tablaMenu'+ nivel +'" width="100%" cellspacing='+ tamSeparacion[nivel] +' cellpadding=0 border=0>';
cad += '<tr>';
for (i=0; i < mnu.length; i+=3)
{
cad += '<td height=20 width='+100 / mnu.length+'% class="celMenu'+nivel+'" onMouseOver="over(this, '+ nivel +', \''+ mnu[i+1] +'\', \''+ mnu[i+2] +'\')">'+ mnu[i] +'</td>';
}
cad += '</tr></table></div>';
document.write(cad);
for (i=0; i < mnu.length; i+=3)
{
if (mnu[i+2] != '') generaMenu(mnu[i+2], nivel+1);
}
}
generaMenu("menu0", 0);

www.fmds.es/fmds/noticias/noticias.htm

<html>
<head>
<title>Noticias de FMDS</title>
<style type=text/css>
td {
Color: #000000;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
}
A:link {
Color: #000000;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
text-decoration:none;
}
A:visited {
Color: #000000;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
}
A:active {
Color: #000000;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
}
A:hover {
Color: #0000ff;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
text-decoration:none;
}
</style>
</head>

<body topmargin="0" leftmargin="0">
<table width="600" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="75" align="center" bgcolor="#FFFFCC" style="border-bottom: 2px solid rgb(0,0,0)">
<strong>Fecha</strong></td>
<td width="225" bgcolor="#FFFFCC" style="border-bottom: 2px solid rgb(0,0,0)">
<strong>Deportes</strong></td>
<td width="300" bgcolor="#FFFFCC" style="border-bottom: 2px solid rgb(0,0,0)">
<strong>Observaciones</strong></td>
</tr>
<tr>
<td align="center" style="border-bottom: 1px solid rgb(0,0,0)">
<strong>20-10-2003</strong></td>
<td style="border-bottom: 1px solid rgb(0,0,0)">
<a href="inscripcion_dar_ajz_tenismesa.htm"><strong>D ardos, Ajedrez y Tenis de Mesa</strong></a></td>
<td style="border-bottom: 1px solid rgb(0,0,0)">
Plazo de Inscripción hasta <font color="#FF0000"><strong>24 de Octubre de 2003</strong></font></td>
</tr>
</table>



</body>
</html>



Y no sé como se hace en ello....por favor...ayudame!!!

Gracias!!!
  #2 (permalink)  
Antiguo 22/10/2003, 01:49
Avatar de tunait
Moderadora
 
Fecha de Ingreso: agosto-2001
Ubicación: Terok Nor
Mensajes: 16.805
Antigüedad: 22 años, 8 meses
Puntos: 381
Buenas,

El problema que tienes es javascript, traslado tu pregunta a ese foro.

movido desde html

saludos
  #3 (permalink)  
Antiguo 22/10/2003, 03:49
Avatar de jercer  
Fecha de Ingreso: octubre-2003
Mensajes: 373
Antigüedad: 20 años, 6 meses
Puntos: 13
He ido a la página y no aparece el error, aunque tampoco va, así que no se si ya habras solucionado el problema, de todas formas hacerlo es muy facil, sería algo así:

top.superior.location.href = "noticias.htm"

lo de superior esta porque en el HTML le pusiste ese nombre al frame de la cabecera.

De todas formas eche un vistazo a un js y llamaba a una variable framedestino que inicializabas como presentacion, a lo mejor si la cambias por superior ya te funciona
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 15:56.