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

Como viene explicado en la página tienes que llamar a la función Tip:

Código Javascript:
Ver original
  1. document.observe("dom:loaded", function(){  
  2. new Tip('imagen', new Element('div').update('my text'),
  3. {  title: 'This tooltip has a title',  
  4.  hook: { tip: 'topLeft', mouse: true },
  5.  offset: { x: 14, y: 14 }});  
  6. });

Si tienes preguntas sobre lo que hace, no dudes en preguntar.