hola de nuevo, no me ha adjuntado el fichero así que os indico el código
a continuación:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<style type="text/css">
img { border:0 }
#top_05 { list-style-type:none; padding:0; margin:16px 0 0
0; float:left; position:relative; }
#top_05 li { display:inline }
#top_05 ul { list-style-type:none; padding:8px 0; margin:0;
background-color:#141414; width:437px; position: absolute; top:29px;
left: 0; text-align:center; display:none; }
#top_05 ul li { margin-left:5px }
#top_05 ul a { color:#C2C2C2; text-decoration:none;
font-size:9px; background:url(../img/sep_submenu.gif) no-repeat 100%;
padding-right:8px }
#top_05 ul a.ultimo {background:none }
</style>
<script type="text/javascript">
var item_sel = "";
function show_sub(obj,evt)
{
if(item_sel != "")
{
item_sel.parentNode.getElementsByTagName("ul")[0].style.display = "none";
}
obj.parentNode.getElementsByTagName("ul")[0].style.display =
"block";
// almacenamos el que esta seleccionado
item_sel = obj;
}
function hide_sub(evt)
{
evt = (evt) ? evt : ((event) ? event : null);
actual = evt.currentTarget;
proximo = evt.relatedTarget;
if (actual != proximo && !contains(actual, proximo))
{
item_sel.parentNode.getElementsByTagName("ul")[0].style.display = "none";
}
}
function contains(a, b) {
// Return true if node a contains node b.
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}
</script>
</head>
<body>
<ul id="top_05">
<li onMouseOut="hide_sub(event)">
<a href="" onMouseOver="show_sub(this,event)" ><img
src="img/abc.gif" width="116" height="19" alt="OPCION 1" /></a>
<ul>
<li><a href="">UNO</a></li>
<li><a href="" class="ultimo">DOS</a></li>
</ul>
</li>
<li onMouseOut="hide_sub(event)">
<a href="" onMouseOver="show_sub(this,event)" ><img
src="img/abc.gif" width="96" height="19" alt="OPCION 2" /></a>
<ul>
<li><a href="">TRES</a></li>
<li><a href="" class="ultimo">CUATRO</a></li>
</ul>
</li>
</ul>
</body>
</html>
--
Félix Zapata Berlinches
Tanta Tecnología y Comunicación
Grupo Onetec
c/ Julián Camarillo 26 1º Of. 2
28037 Madrid
Tel.: 91.440.10.40
Fax: 91.304.91.24
www.tantacom.com
www.grupoonetec.com
_______________________________________________
javaEScript mailing list
[email protected]
http://lists.scriptia.net/listinfo.cgi/javaescript-scriptia.net