Holas, si yo hago esto:
<img src="dibujo.jpg" alt="Mi dibujo">
cuando alguien pone el mouse encima le sale "Mi dibujo"
lo q quiero hacer es q cuando alguien pone el mouse encima de un texto le salga un mensaje.
| ||||
No es tan difícil: <span title="Esto el el TIP">Pasa el ratón por encima</span>
__________________ www.mundodivx.com || www.mundodivx.org Pon tu mano en un horno caliente durante un minuto y te parecerá una hora. Siéntate junto a una chica preciosa durante una hora y te parecerá un minuto. Eso es la relatividad. |
| ||||
1º: ponemos en el tag <body> lo siguiente: <SCRIPT> if (!document.layers&&!document.all) event="test" function showtip(current,e,text){ if (document.all){ thetitle=text.split('<br>') if (thetitle.length>1){ thetitles='' for (i=0;i<thetitle.length;i++) thetitles+=thetitle[i] current.title=thetitles } else current.title=text } else if (document.layers){ document.tooltip.document.write('<layer bgColor="#ffffff" style="border:1px solid black;font-size:8px;">'+text+'</layer>') document.tooltip.document.close() document.tooltip.left=e.pageX+5 document.tooltip.top=e.pageY+5 document.tooltip.visibility="show" } } function hidetip(){ if (document.layers) document.tooltip.visibility="hidden" } </SCRIPT> 2º: ponemos en cada vínculo de texto en el tag <a></a> o en <font>, lo siguiente: onmouseover="showtip(this,event,'.::Click Aqui para ir para la Pagina Principal::.')" onmouseout="hidetip()" ejemplo: <a href="index.html" target="_blank" onmouseover="showtip(this,event,'.::Click Aqui para ir para la Pagina Principal::.')" onmouseout="hidetip()">Página principal</a> a ver si eso t sirve, a mi me va de lujo |
| ||||
Bueno seguro funciona pero te fuiste demasiado pes.. para q quiero algo tran grande q haciendo lo q me dijo Mickel es más q suficiente: <a title="Texto desplegable">Texto</a>
__________________ Yo si sé lo que es trabajar duro, porque lo he visto. |