I'm using this scrpt to load bigger image from thumbnail on a product listing page:
$(function() {
$('a.listingProductImageTooltip').tooltip({
track: true,
delay: 0,
showURL: false,
bodyHandler: function() {
return "<img src='"+ $(this).attr('rel') +"' alt='image preview' /><div style=\"padding-top: 10px\">"+ this.tooltipText+"</span>";
},
fade: 250
}); });
But how can i preload the new bigger image to show in the tooltip plugin?
Tnx in advance