Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2006
    Location
    Manchester, UK
    Posts
    2,016
    Tokens
    141
    Habbo
    florx

    Latest Awards:

    Default [JS] Quick Question...

    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.



  2. #2
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    HTML Code:
    var x = document.getElementById("div").style.left;
    var y = document.getElementById("div").style.top;
    o_o

  3. #3
    Join Date
    Aug 2006
    Location
    Manchester, UK
    Posts
    2,016
    Tokens
    141
    Habbo
    florx

    Latest Awards:

    Default

    Thank you !

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •