Ver Mensaje Individual
  #4 (permalink)  
Antiguo 01/07/2011, 13:43
alexg88
 
Fecha de Ingreso: abril-2011
Mensajes: 1.342
Antigüedad: 13 años
Puntos: 344
Respuesta: ¿Cómo utilizar "Prototype 2"?

Es un script en lenguaje javascript, lo tienes que poner entre las etiquetas <script> en el <head>

Código HTML:
Ver original
  1. <script type="text/javascript">
  2. document.observe("dom:loaded", function(){  
  3. new Tip('imagen', new Element('div').update('my text'),
  4. {  title: 'This tooltip has a title',  
  5.  hook: { tip: 'topLeft', mouse: true },
  6.  offset: { x: 14, y: 14 }});  
  7. })
  8. </head>
  9.   <img src="simple.gif" id="imagen">
  10.   </body>
  11. </html>

Tienes que tener un elemento (una imagen, un link, un div) con id = 'imagen'.