There is a function, when you click on the image, the request goes and we get a new image. But the images are of different sizes and it loads and looks not very nice. How can I make a preloader or make the image appear smoothly?
Here is the function itself:
function nextPhoto() { jQuery.ajax({url: "/guess_the_group/workphoto.php", dataType: "html", type: "GET", success: function(msg) { //alert("Ρ
ΡΡΠΊ"); document.getElementById('photoband').innerHTML = msg; }, error: function(XMLHttpRequest, textStatus, errorThrown) { alert('ΠΡΠΈΠ±ΠΊΠ°'); } }); } Here's how it works http://yametal.net/guess_the_group/