A propriedade que faz esconder é visibility=hidden
Agora precisamos de um script js para mudar isto quando
passar o mouse por cima do link ou clicar nele.
Abaixo está o códico completo
caso queira mudar para clicar em vez de passar o mouse, basta substituir
onMouseOver por o
nMouseUpÉ só copiar o código e criar um html, colar e testar...CODE
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
.estilo{
position:absolute;
width:202px;
z-index:2;
border: 1px solid #FFCC00;
visibility: hidden;
left: 15px;
top: 44px;
height: 120px;
background-color: #FF9900;
}
</style>
<script type="text/JavaScript">
<!--
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>
<a href=# onMouseOver=MM_showHideLayers('div1','','show') onMouseOut=MM_showHideLayers('div1','','hide')>Mostrar Texto Escondido</a>
<div id='div1' class="estilo">
<div align="center">Texto</div>
</div>
</body>
</html>
Espero ter ajudado
Abraços.