
Untitled
By: a guest on
Apr 23rd, 2012 | syntax:
None | size: 0.82 KB | hits: 10 | expires: Never
Show loading image without ajax
<img id="Img1" class="photoBox" src="Images/DisplayImageById.ashx?number=1&userName=<%=Page.User.Identity.Name %>"/>
<img id="Img2" class="photoBox" src="Images/DisplayImageById.ashx?number=2&userName=<%=Page.User.Identity.Name %>"/>
<img id="Img3" class="photoBox" src="Images/DisplayImageById.ashx?number=3&userName=<%=Page.User.Identity.Name %>"/>
<img id="Img4" class="photoBox" src="Images/DisplayImageById.ashx?number=4&userName=<%=Page.User.Identity.Name %>"/>
<img id="Img5" class="photoBox" src="Images/DisplayImageById.ashx?number=5&userName=<%=Page.User.Identity.Name %>"/>
$(function(){
$('div img').each(function(){
var thisImage = $(this);
thisImage.hide(0)
.load(function(){
$(this).show();
});
});