/ Published in: jQuery
Move 'Ajax indicator image' with cursor
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$("body").append("<img id='imgwait1' class='ajax-indicator' src='indicator.gif' style='position:absolute,top' ></img>"); $(document).mousemove(function(e){ $('#imgwait1').offset({left:e.pageX+10,top:e.pageY}); }); $('#imgwait1').remove(); $(document).unbind('mousemove');