lunes, 13 de junio de 2011

Código capas

<HTML>
<HEAD>
<TITLE> Menus con java y capas</TITLE>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_showHideLayers() { //v6.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
obj.visibility=v; }
}
//-->
</script>
</HEAD>
<BODY BGCOLOR="white">
<P ALIGN="CENTER"> <B>DOCENTE: </B> ISC. REYNA CARLOTA TUNALES DEL RIVERO</P>
<B> "CREAR MENÚS USANDO JAVASCRIPT Y CAPAS"</B></P>
<P ALIGN="CENTER"><B>6TO. SEMESTRE GRUPO: </B>  </P>
<P ALIGN="JUSTIFY"><B>NOMBRE DEL ALUMNO:</B>  </P>
<HR SIZE="9" COLOR="#0000FF">
<CENTER><H1>CREANDO MENÚS USANDO JAVASCRIPT Y CAPAS</H1></CENTER>
<!--Creando la tabla principal:-->
<table border="1" bgcolor="#fffc59">
<!--Creando el menu1:-->
<tr><td><div align="center"><a name="#" onMouseOver="MM_showHideLayers('Menu1','','show');MM_showHideLayers('Menu2','','hide','Menu3','','hide','Menu4','','hide')">
Enlace 1</a>
<span id="Menu1" style="position:absolute; width:100px; height:115px; z-index:1; left: 13px; top:331px; overflow: visible; visibility: hidden;">
             
<!--submenus del menu1-->
<table width="162" border="1" cellspacing="0" cellpadding="0">
                      <tr>
<td width="158" bgcolor="#ffcc99"><strong><font color="#ffcc99" size="2" face="Times New Roman, Times, serif">
<a href="enlace11.html">Enlace11</a></font></strong></td>
                      </tr>
                      <tr>
<td bgcolor="#FFCC99"><strong><font color="#ffcc99" size="2" face="Times New Roman, Times, serif">
<a href="enlace12.html">Enlace12</a></font></strong></td>
                      </tr>
                      <tr>
<td bgcolor="#FFCC99"><strong><font color="#ffcc99" size="2" face="Times New Roman, Times, serif">
<a href="enlace13.html">Enlace13</a></font></strong></td>
                      </tr>
                      <tr>
<td bgcolor="#ffcc99"><strong><font color="#ffcc99" size="2" face="Times New Roman, Times, serif">
<a href="enlace14.html">Enlace14</a></font></strong></td>
                      </tr>
                      </table></span></div></td>
<!--Creando el menu2:-->
<td><div align="center"><a name="#" onMouseOver="MM_showHideLayers('Menu1','','hide');MM_showHideLayers('Menu2','','show','Menu3','','hide','Menu4','','hide')">
Enlace 2</a>
<span id="Menu2" style="position:absolute; width:100px; height:115px; z-index:1; left:73px; top:331px; overflow: visible; visibility: hidden;">
             
<!--submenus del menu2-->
<table width="162" border="1" cellspacing="0" cellpadding="0">
                      <tr>
<td width="158" bgcolor="#ffcc99"><strong><font color="#ffcc99" size="2" face="Times New Roman, Times, serif">
<a href="enlace11.html">Enlace21</a></font></strong></td>
                      </tr>
                      <tr>
<td bgcolor="#FFCC99"><strong><font color="#ffcc99" size="2" face="Times New Roman, Times, serif">
<a href="enlace12.html">Enlace22</a></font></strong></td>
                      </tr>
                      <tr>
<td bgcolor="#FFCC99"><strong><font color="#ffcc99" size="2" face="Times New Roman, Times, serif">
<a href="enlace13.html">Enlace23</a></font></strong></td>
                      </tr>
                      <tr>
<td bgcolor="#ffcc99"><strong><font color="#ffcc99" size="2" face="Times New Roman, Times, serif">
<a href="enlace14.html">Enlace24</a></font></strong></td>
                      </tr>
                      </table></span></div></td>
<!--Creando el menu3:-->
<td><div align="center"><a name="#" onMouseOver="MM_showHideLayers('Menu1','','hide');MM_showHideLayers('Menu2','','hide','Menu3','','show','Menu4','','hide')">
Enlace 3</a>
<span id="Menu3" style="position:absolute; width:100px; height:115px; z-index:1; left:128px; top:331px; overflow: visible; visibility: hidden;">
             
<!--submenus del menu3-->
<table width="162" border="1" cellspacing="0" cellpadding="0">
                      <tr>
<td width="158" bgcolor="#ffcc99"><strong><font color="#ffcc99" size="2" face="Times New Roman, Times, serif">
<a href="enlace31.html">Enlace31</a></font></strong></td>
                      </tr>
                      <tr>
<td bgcolor="#FFCC99"><strong><font color="#ffcc99" size="2" face="Times New Roman, Times, serif">
<a href="enlace32.html">Enlace32</a></font></strong></td>
                      </tr>
                      <tr>
<td bgcolor="#FFCC99"><strong><font color="#ffcc99" size="2" face="Times New Roman, Times, serif">
<a href="enlace33.html">Enlace33</a></font></strong></td>
                      </tr>
                      <tr>
<td bgcolor="#ffcc99"><strong><font color="#ffcc99" size="2" face="Times New Roman, Times, serif">
<a href="enlace34.html">Enlace34</a></font></strong></td>
                      </tr>
                      </table></span></div></td>
<!--Creando el menu4:-->
<td><div align="center"><a name="#" onMouseOver="MM_showHideLayers('Menu1','','hide');MM_showHideLayers('Menu2','','hide','Menu3','','hide','Menu4','','show')">
Enlace 4</a>
<span id="Menu4" style="position:absolute; width:100px; height:115px; z-index:1; left:185px; top:331px; overflow: visible; visibility: hidden;">
             
<!--submenus del menu4-->
<table width="162" border="1" cellspacing="0" cellpadding="0">
                      <tr>
<td width="158" bgcolor="#ffcc99"><strong><font color="#ffcc99" size="2" face="Times New Roman, Times, serif">
<a href="enlace41.html">Enlace41</a></font></strong></td>
                      </tr>
                      <tr>
<td bgcolor="#FFCC99"><strong><font color="#ffcc99" size="2" face="Times New Roman, Times, serif">
<a href="enlace42.html">Enlace42</a></font></strong></td>
                      </tr>
                      <tr>
<td bgcolor="#FFCC99"><strong><font color="#ffcc99" size="2" face="Times New Roman, Times, serif">
<a href="enlace43.html">Enlace43</a></font></strong></td>
                      </tr>
                      <tr>
<td bgcolor="#ffcc99"><strong><font color="#ffcc99" size="2" face="Times New Roman, Times, serif">
<a href="enlace44.html">Enlace44</a></font></strong></td>
                      </tr>
                      </table></span></div></td>
</table>
</body>
</HTML>

1 comentario: