Logic Machine Forum
Images and JS - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Images and JS (/showthread.php?tid=3068)



Images and JS - SigmaTec - 19.12.2020

Hi all,

is there JS functions that allows you to define: 

1- the area to display of an image (x1, y1, x2, y2) equivalent to a sector smaller than the original size?
2- the x, y position of an image?

Have a good week and happy end of the year.

All the best


RE: Images and JS - admin - 21.12.2020

It can be done via CSS or by manipulating CSS from JavaScript. You need to modify top/left/width/height properties.


RE: Images and JS - SigmaTec - 23.12.2020

thank's Admin !