thumbnail used as temporary background while loading main image

This commit is contained in:
ville rantanen
2012-11-09 10:27:33 +02:00
parent c39092854c
commit 513650c663
2 changed files with 3 additions and 0 deletions

View File

@@ -1000,6 +1000,7 @@ function showbigimage(i) {
$('#imagesingle').css('width','auto'); $('#imagesingle').css('width','auto');
$('#imagesingle').css('height',height); $('#imagesingle').css('height',height);
} }
$('#imagesingle').css('background-image','url("_tn/tn_'+encodeURIComponent(imagelist[i])+'.jpg")');
} }
$('#imagecontainer').css('height',height); $('#imagecontainer').css('height',height);

View File

@@ -189,6 +189,8 @@ margin-left: auto;
margin-right: auto; margin-right: auto;
padding-left: 0px; padding-left: 0px;
padding-right: 0px; padding-right: 0px;
background-size: contain;
background-repeat: no-repeat;
} }
#imagebig { #imagebig {
text-align: center; text-align: center;