Ver Mensaje Individual
  #1 (permalink)  
Antiguo 03/01/2013, 06:50
nachetee
 
Fecha de Ingreso: enero-2011
Mensajes: 84
Antigüedad: 13 años, 3 meses
Puntos: 4
Seleccionar los title de los img

Hola, apenas tengo experiencia en JQuery pero necesito coger los title de las imágenes y aplicar una funcion que me he bajado. Lo tengo así:

Código:
	<script>
	  $(function(){
	 
		$('img[title]').mbTooltip({ // also $([domElement]).mbTooltip  >>  in this case only children element are involved 
		  opacity : .97,       //opacity
		  wait:1,           //before show
		  cssClass:"default",  // default = default
		  timePerWord:70,      //time to show in milliseconds per word
		  hasArrow:false,			// if you whant a little arrow on the corner
		  hasShadow:true,
		  imgPath:"images/",
		  ancor:"mouse", //"parent"  you can ancor the tooltip to the mouse position or at the bottom of the element
		  shadowColor:"black", //the color of the shadow
		  mb_fade:200 //the time to fade-in
		});
	  });
	</script>
Pensaba que se hacía con el $('img[title]').mbTooltip pero me coge los title de los enlaces también y solo quiero el de las imágenes, como se escribe el selector?

Un saludo y gracias de antemano