javascript - Remove image title when mouse hover on the image -


i using lytebox image gallery. works great except when user hovers on images, there texts html tags shown on browser.

ex:

<h1>this first image </h1> <p>the image desc<p> 

i need title attribute image gallery don't want show when user hovesr image. possible? help.

var imgtitle;  $("img").hover(function(){     imgtitle = $(this).attr("title");     $(this).removeattr("title"); }, function(){    $(this).attr("title", imgtitle); }); 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -