Getting statically positioned element window offset positions (left, top)?

Discussion in 'Javascript' started by Pieter Van Waeyenberge, Feb 9, 2004.

  1. HEllo

    i create an HTML image dynamically using document.createElement()

    i dont explicitly define the 'style.position', but i assume its 'static' by
    default.

    according to CSS2 'left' & 'top' props dont apply to 'boxes' having
    'position:static;'

    is there really no way of getting window offset x & y for my element?
    i remember IE used to have something like offsetX & offSetY of ofsetWidth &
    Height ??


    Pieter.
     
    Pieter Van Waeyenberge, Feb 9, 2004
    #1
    1. Advertising

  2. sorry, i forgot to look on the element properties instead of the
    element.style properties ...


    "Pieter Van Waeyenberge" <> wrote in message
    news:40277331$0$319$...
    > HEllo
    >
    > i create an HTML image dynamically using document.createElement()
    >
    > i dont explicitly define the 'style.position', but i assume its 'static'

    by
    > default.
    >
    > according to CSS2 'left' & 'top' props dont apply to 'boxes' having
    > 'position:static;'
    >
    > is there really no way of getting window offset x & y for my element?
    > i remember IE used to have something like offsetX & offSetY of ofsetWidth

    &
    > Height ??
    >
    >
    > Pieter.
    >
    >
    >
     
    Pieter Van Waeyenberge, Feb 9, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. gsb
    Replies:
    3
    Views:
    200
  2. Amir Hardon
    Replies:
    0
    Views:
    270
    Amir Hardon
    May 31, 2004
  3. Hoss
    Replies:
    0
    Views:
    105
  4. Replies:
    5
    Views:
    147
  5. Stevo
    Replies:
    10
    Views:
    301
    Thomas 'PointedEars' Lahn
    Mar 27, 2008
Loading...

Share This Page