Dan,

Try:

var e_ox = jQuery("a").eq(index).offset().left;
var e_oy = jQuery("a").eq(index).offset().top;

HTH,
Carl

On Jul 3, 11:49 am, Dan <[EMAIL PROTECTED]> wrote:
> I have these functions:
> var e_w = jQuery("a").eq(index).width();
> var e_h = jQuery("a").eq(index).height();
> var e_ox = jQuery("a").eq(index).offsetLeft;
> var e_oy = jQuery("a").eq(index).offsetTop;
>
> the first 2 return numbers such as 50 and 100. But the last 2 each
> return NULL.
>
> Why are they returning NULL? How can I get the offset of an element
> given it's index in terms of "a" tags?

Reply via email to