coordinates - firefox returning 0 for this.x and this.y in jquery hover -


using hover function on set of elements:

   $('.thumb-image').hover(function () {         alert(this.x); 

this works fine in chrome firefox (22)...both x , y 0.

i realized should not using this.x , this.y ..it returning undefined in ie.

so instead used jens fransden's gettop , getleft answer @ bottom of post: get position of div/span tag

this gets me need in ff , ie chrome


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -