Revision: 18431
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at September 30, 2009 07:10 by almazom
Initial Code
function show_loading(obj,where){ if(!$('div#loading').length){ $('body').append("<div id='loading'><img src='/images/ajax-loader.gif' /></div>") } var off = obj.offset() left_d = off.left-18 if(where){ switch(where){ case 'left': left_d = off.left-18 break; case 'right': left_d = off.left+obj.width()+10 break; } } var csss = { 'top':off.top, 'left':left_d } $('div#loading').show().css(csss); }
Initial URL
Initial Description
U must have animation image here " /images/ajax-loader.gif"
Initial Title
show loading function for ajax
Initial Tags
Initial Language
jQuery