mirror of
https://forge.murkfall.net/bluesaxman/imapi.git
synced 2026-03-13 02:54:19 -06:00
initial git commit of imapi
This commit is contained in:
11
libs/j/getImage
Normal file
11
libs/j/getImage
Normal file
@@ -0,0 +1,11 @@
|
||||
function getImage(imageName, galleryName) {
|
||||
var Image = elementPlace("body",imageName,null,"div");
|
||||
Image.className = "thumbnail";
|
||||
Image.innerHTML = imageName;
|
||||
Image.style.backgroundImage = "url("+window.api_url+"?i!"+imageName+"!"+galleryName+"!thumb)";
|
||||
Image.style.backgroundRepeat = "no-repeat";
|
||||
Image.style.backgroundPosition = "center center";
|
||||
Image.onclick = function () {
|
||||
showImage(imageName, galleryName);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user