PDA

View Full Version : [JS] Quick Question...



Florx
08-01-2008, 06:34 PM
Hey!

Ive google'd but to no success.

I need a function or script that will grab the x and y coordinates of a div of the page.

+rep :p

Thanks,
Jake.

Invent
08-01-2008, 06:46 PM
var x = document.getElementById("div").style.left;
var y = document.getElementById("div").style.top;


o_o

Florx
08-01-2008, 06:49 PM
Thank you :)!

Want to hide these adverts? Register an account for free!