This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Images and JS
#1
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
Reply
#2
It can be done via CSS or by manipulating CSS from JavaScript. You need to modify top/left/width/height properties.
Reply
#3
thank's Admin !
Reply


Forum Jump: