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
Post a Comment