Jump to content

getting/editing x and y of an image?


Michdd

Recommended Posts

I know I can get the coords through document.images.imagename.offsetTop and offsetLeft. But as far as I know it's not possible to edit the image's coordinates though that. Is there another way? Because I need to be able to create new images, and set their x,y

You can get their x and y co-ordinates the way you just said, then add top and left margins to move them to the point you want.

 

Or else you can set the image with absolute positioning, which will allow you to set the specific distance from the sides of the monitor.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.