Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Getting statically positioned element window offset positions (left, top)?

Reply
Thread Tools

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

 
 
Pieter Van Waeyenberge
Guest
Posts: n/a
 
      02-09-2004
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.



 
Reply With Quote
 
 
 
 
Pieter Van Waeyenberge
Guest
Posts: n/a
 
      02-09-2004
sorry, i forgot to look on the element properties instead of the
element.style properties ...


"Pieter Van Waeyenberge" <(E-Mail Removed)> wrote in message
news:40277331$0$319$(E-Mail Removed)...
> 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.
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Comparing offset-aware and offset-naive datetimes? Roy Smith Python 4 01-27-2013 03:17 PM
fixed positions of images versus relative positions Knut Krueger HTML 2 05-21-2007 10:18 AM
how can I put an element below another element, that's not absolutely positioned? felipevaldez@gmail.com Javascript 5 09-10-2006 01:56 AM
Dynamic width of absolute positioned element mike eli Javascript 3 09-02-2004 10:54 PM
Translated Offset to Source Offset Lance Riedel XML 2 10-15-2003 03:04 PM



Advertisments