Ver Mensaje Individual
  #5 (permalink)  
Antiguo 30/08/2010, 04:40
Dany_s
 
Fecha de Ingreso: diciembre-2009
Ubicación: Misiones
Mensajes: 867
Antigüedad: 14 años, 5 meses
Puntos: 65
Respuesta: como mostrar titulo de la imagen en el div

debe funcionar si, seguramente que no estás seleccionando bien los links, fijate que "scrollable" contenga los links

Código HTML:
Ver original
  1. <title>Prueba</title>
  2. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
  3.    
  4. $(function (){
  5.     $('a').mouseenter(function(){
  6.         var titleArt = $(this).attr('title');
  7.         $('#info_table').fadeIn(500).text(titleArt);
  8.     });
  9.     $('a').mouseleave(function(){
  10.         $('#info_table').fadeOut(100);
  11.     });
  12. })
  13. </head>
  14.  
  15.     <a title="1ntelivizi0n"><img src="images/artists/1ntelivizi0n.jpg"></a>
  16.     <a title="A phone call"><img src="images/artists/A_phone_call.jpg"></a>
  17.     <a title="Alex Deejay"><img src="images/artists/Alex_Deejay.jpg"></a>
  18.     <a title="Alex DeLarge"><img src="images/artists/Alex_DeLarge.jpg"></a>
  19.  
  20.     <div id="info_table"></div>
  21. </body>
  22. </html>