Is there a need to get the offset of the box every time? As this can cause a repaint of the dom tree, it should only be called once. For more infos take a look at this great article : http://www.phpied.com/rendering-repaint-reflowrelayout-restyle/
On 3 Jan., 21:27, Roman Land <[email protected]> wrote: > Since this is a very intensive action I was wondering if there's a better > way to do this, it seems I will stick to this one. > > Thanks! > > > > > > On Sun, Jan 3, 2010 at 10:05 PM, Aaron Newton <[email protected]> wrote: > > what you have there seems good to me. no? > > > On Sun, Jan 3, 2010 at 4:48 AM, Roman Land <[email protected]> wrote: > > >> Hi, > > >> What would be the best approach - performance wise - for handling mouse > >> location detection during the hover event > > >>http://mooshell.net/z7eAv/2/ > > >> Thanks! > > >> -- > >> --- > >> "Make everything as simple as possible, but not simpler." > > >> - Albert Einstein > > -- > --- > "Make everything as simple as possible, but not simpler." > > - Albert Einstein
