Guest_imported
New member
- Jan 1, 1970
- 0
Hi:
I'm developing a web page with a DHTML Menu. I'm using DIV and SPAN tags. I have a problem when a submenu is shown because its items are truncated by a form. This form is after the menu.
I'm looking for a property like "Always on top" in HTML o JavaScript for solve this problem. If someone can help me,
I will thank it.
Here some of my code:
<STYLE>
.menu {background-color:darkgray;width:200; color: white; text-align: center}
.submenu {position:absolute;background-color:darkgray;color: white;width:200}
</STYLE>
<body bgcolor="#c0c0c0">
<DIV id="Menus" STYLE="position:absolute;top:0;left:0;height:20;background-color:#C0C0C0;" NOWRAP>
<SPAN ID="d1" onmouseover="show(this,ds1);" class="menu" STYLE="Width:15%;background-color:#C0C0C0"><LABEL STYLE="text-decoration:none;cursor:hand;font:bold xx-small Verdana;color:black" >Sesión</LABEL></SPAN>
<SPAN ID="d11"class="menu" STYLE="Width:1px;background-color:#C0C0C0"><LABEL STYLE="text-decoration:none;cursor:hand;font:bold xx-small Verdana;color:black" >| </LABEL></SPAN>
<SPAN ID="d2" onmouseover="show(this,ds2);" class="menu" STYLE="Width:15%;background-color:#C0C0C0"><LABEL STYLE="text-decoration:none;cursor:hand;font:bold xx-small Verdana;color:black" >Administración</LABEL></SPAN>
</DIV>
<DIV ID="ds1"CLASS="submenu" STYLE="Width:16%;DISPLAY: none;background-color:#C0C0C0" onmouseout="MouseMenu('OUT');" onmouseover="MouseMenu('OVER');">
<A HREF="/mensaje.htm" STYLE="text-decoration:none;cursor:hand;font:bold xx-small Verdana;color:black" >Modo Off Load</A><BR>
<A HREF="/fin.htm" STYLE="text-decoration:none;cursor:hand;font:bold xx-small Verdana;color:black" >Cerrar Sesión</A><BR>
</DIV>
<DIV ID="ds2"CLASS="submenu" STYLE="Width:16%;DISPLAY: none;background-color:#C0C0C0" onmouseout="MouseMenu('OUT');" onmouseover="MouseMenu('OVER');">
<A HREF="/documentos.htm" STYLE="text-decoration:none;cursor:hand;font:bold xx-small Verdana;color:black" >Cuadre de Documentos</A><BR>
<A HREF="/servicios.htm" STYLE="text-decoration:none;cursor:hand;font:bold xx-small Verdana;color:black" >Cuadre de Servicios</A><BR>
<A HREF="/cajeros.htm" STYLE="text-decoration:none;cursor:hand;font:bold xx-small Verdana;color:black" >Cuadre por Cajero</A></DIV>
<form id=frmTxns bgcolor="#c0c0c0" STYLE="LEFT: 10pt; POSITION: absolute; TOP: 15pt; WIDTH: 550pt">
<p style="BORDER-BOTTOM: 3px inset; BORDER-LEFT: 3px inset; BORDER-RIGHT: 3px inset; BORDER-TOP: 3px inset; MARGIN-TOP: 0px; WORD-SPACING: 52px" align="center"> <select id=cboGrupos size="1" name="D1" STYLE="WIDTH: 150pt">
</select><input id=txtTrans name="T1" size=5><select id=cboTrans size="1" name="D2" STYLE="WIDTH: 150pt">
</select> </p>
</form>
</body>
I'm developing a web page with a DHTML Menu. I'm using DIV and SPAN tags. I have a problem when a submenu is shown because its items are truncated by a form. This form is after the menu.
I'm looking for a property like "Always on top" in HTML o JavaScript for solve this problem. If someone can help me,
I will thank it.
Here some of my code:
<STYLE>
.menu {background-color:darkgray;width:200; color: white; text-align: center}
.submenu {position:absolute;background-color:darkgray;color: white;width:200}
</STYLE>
<body bgcolor="#c0c0c0">
<DIV id="Menus" STYLE="position:absolute;top:0;left:0;height:20;background-color:#C0C0C0;" NOWRAP>
<SPAN ID="d1" onmouseover="show(this,ds1);" class="menu" STYLE="Width:15%;background-color:#C0C0C0"><LABEL STYLE="text-decoration:none;cursor:hand;font:bold xx-small Verdana;color:black" >Sesión</LABEL></SPAN>
<SPAN ID="d11"class="menu" STYLE="Width:1px;background-color:#C0C0C0"><LABEL STYLE="text-decoration:none;cursor:hand;font:bold xx-small Verdana;color:black" >| </LABEL></SPAN>
<SPAN ID="d2" onmouseover="show(this,ds2);" class="menu" STYLE="Width:15%;background-color:#C0C0C0"><LABEL STYLE="text-decoration:none;cursor:hand;font:bold xx-small Verdana;color:black" >Administración</LABEL></SPAN>
</DIV>
<DIV ID="ds1"CLASS="submenu" STYLE="Width:16%;DISPLAY: none;background-color:#C0C0C0" onmouseout="MouseMenu('OUT');" onmouseover="MouseMenu('OVER');">
<A HREF="/mensaje.htm" STYLE="text-decoration:none;cursor:hand;font:bold xx-small Verdana;color:black" >Modo Off Load</A><BR>
<A HREF="/fin.htm" STYLE="text-decoration:none;cursor:hand;font:bold xx-small Verdana;color:black" >Cerrar Sesión</A><BR>
</DIV>
<DIV ID="ds2"CLASS="submenu" STYLE="Width:16%;DISPLAY: none;background-color:#C0C0C0" onmouseout="MouseMenu('OUT');" onmouseover="MouseMenu('OVER');">
<A HREF="/documentos.htm" STYLE="text-decoration:none;cursor:hand;font:bold xx-small Verdana;color:black" >Cuadre de Documentos</A><BR>
<A HREF="/servicios.htm" STYLE="text-decoration:none;cursor:hand;font:bold xx-small Verdana;color:black" >Cuadre de Servicios</A><BR>
<A HREF="/cajeros.htm" STYLE="text-decoration:none;cursor:hand;font:bold xx-small Verdana;color:black" >Cuadre por Cajero</A></DIV>
<form id=frmTxns bgcolor="#c0c0c0" STYLE="LEFT: 10pt; POSITION: absolute; TOP: 15pt; WIDTH: 550pt">
<p style="BORDER-BOTTOM: 3px inset; BORDER-LEFT: 3px inset; BORDER-RIGHT: 3px inset; BORDER-TOP: 3px inset; MARGIN-TOP: 0px; WORD-SPACING: 52px" align="center"> <select id=cboGrupos size="1" name="D1" STYLE="WIDTH: 150pt">
</select><input id=txtTrans name="T1" size=5><select id=cboTrans size="1" name="D2" STYLE="WIDTH: 150pt">
</select> </p>
</form>
</body>