i try to load jpgs from the resourcesFolder into a box, depending on width / height of the images.
i create a working example loading into the correct box by changing the width of a box using a slider.
but i don´t know how to detect the width or height of any resourcesFolder - jpg without using ids.
the background is to use this for loading images from a database.
depending on the width they should load into the right box.
var box = new Image(); var boxW = img.clientWidth; var boxH = img.clientHeight;
… doesn´t work?
checkBild2.hype.zip (1,1 MB)