<style type="text/css">
#coolmenu{
border: 1px solid teal;
width: 230px;
background-color: ;
}
#coolmenu a{
font: bold 13px Verdana;
padding: 2px;
padding-left: 4px;
display: block;
width: 100%;
color: teal;
text-decoration: none;
border-bottom: 1px solid teal;
}
html>body #coolmenu a{
width: auto;
}
#coolmenu a:hover{
background-color: teal;
color: white;
}
#tabledescription{
width: 100%;
height: 5em;
padding: 4px;
filter:alpha(opacity=0);
-moz-opacity:0;
}
</style>
<script type="text/javascript">
var baseopacity=0
function showtext(thetext){
if (!document.getElementById)
return
textcontainerobj=document.getElementById("tabledescription")
browserdetect=textcontainerobj.filters? "ie" : typeof textcontainerobj.style.MozOpacity=="string"? "mozilla" : ""
instantset(baseopacity)
document.getElementById("tabledescription").innerHTML=thetext
highlighting=setInterval("gradualfade(textcontainerobj)",50)
}
function hidetext(){
cleartimer()
instantset(baseopacity)
}
function instantset(degree){
if (browserdetect=="mozilla")
textcontainerobj.style.MozOpacity=degree/100
else if (browserdetect=="ie")
textcontainerobj.filters.alpha.opacity=degree
else if (document.getElementById && baseopacity==0)
document.getElementById("tabledescription").innerHTML=""
}
function cleartimer(){
if (window.highlighting) clearInterval(highlighting)
}
function gradualfade(cur2){
if (browserdetect=="mozilla" && cur2.style.MozOpacity<1)
cur2.style.MozOpacity=Math.min(parseFloat(cur2.style.MozOpacity)+0.2, 0.99)
else if (browserdetect=="ie" && cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=20
else if (window.highlighting)
clearInterval(highlighting)
}
</script>
En donde quieras poner el menu:
<FONT COLOR="blue"><div id="coolmenu">
<a href="http://loseasi.blogspot.com/" onMouseover="showtext('¿Cómo se hace...?<br>Un lugar para aprender.')" onMouseout="hidetext()">http://loseasi.blogspot.com</a>
<a href="http://loseasi.blogspot.com/" onMouseover="showtext('¿Cómo se hace...?<br>Un lugar para aprender.')" onMouseout="hidetext()">http://loseasi.blogspot.com</a>
<a href="http://loseasi.blogspot.com/" onMouseover="showtext('¿Cómo se hace...?<br>Un lugar para aprender.')" onMouseout="hidetext()">http://loseasi.blogspot.com</a>
<a href="http://loseasi.blogspot.com/" onMouseover="showtext('¿Cómo se hace...?<br>Un lugar para aprender.')" onMouseout="hidetext()">http://loseasi.blogspot.com</a>
<a href="http://loseasi.blogspot.com/" onMouseover="showtext('¿Cómo se hace...?<br>Un lugar para aprender.')" onMouseout="hidetext()">http://loseasi.blogspot.com</a>
<a href="http://loseasi.blogspot.com/" onMouseover="showtext('¿Cómo se hace...?<br>Un lugar para aprender.')" onMouseout="hidetext()">http://loseasi.blogspot.com</a>
<div id="tabledescription"></div>
</div></FONT>
0 comments:
Post a Comment