I wasn’t familiar with .offsetParent()…good stuff to know, Michel!
Rick From: Michel Belleville [mailto:michel.bellevi...@gmail.com] Sent: Tuesday, November 10, 2009 7:46 AM To: jquery-en@googlegroups.com Subject: Re: [jQuery] build menu on a 'event' location ? As for locating the element, you can use .offset() <http://docs.jquery.com/CSS/offset> to get its coordinates in the document and .position() <http://docs.jquery.com/CSS/position> for its position relative to the offset parent (which can be accessed by .offsetParent() <http://docs.jquery.com/Traversing/offsetParent> ). After that it's just a matter of adding an element at the right position relatively to the right parent (through css for example). Michel Belleville 2009/11/10 Michel Belleville <michel.bellevi...@gmail.com> Yes it probably can, depending on what exactly you'd like to do with it. Could you be a little bit more specific please ? Michel Belleville 2009/11/10 neandr <gnea...@googlemail.com> I would like to build a popup menu at/above the location of an <img ..> element. Using $("img").hover could start it, but I'm not sure if JQ has to ability to build a whole popup menu at that place the <img ..> is located. Any ideas/pointers?