[jQuery] Re: div X, Y Location

2008-03-24 Thread Brian Cherne
Are you looking for offset ? http://docs.jquery.com/CSS/offset Brian. On Mon, Mar 24, 2008 at 10:54 AM, Legster [EMAIL PROTECTED] wrote: Is there an easy way to find the current X, Y location of any div area? Example of what I am trying to find: $(this).xpage or $(#mainDiv).ypage

[jQuery] Re: div X, Y Location

2008-03-24 Thread ripple
Just use javascript: var x = this.offsetLeft; var y = this.offsetTop; Legster [EMAIL PROTECTED] wrote: Is there an easy way to find the current X, Y location of any div area? Example of what I am trying to find: $(this).xpage or $(#mainDiv).ypage Those currently returns