change background color with change in mouse position

Posted by Ashish Rajan on Stack Overflow See other posts from Stack Overflow or by Ashish Rajan
Published on 2010-04-29T12:09:56Z Indexed on 2010/04/29 12:17 UTC
Read the original article Hit count: 340

Filed under:
|
|
|

I was wondering if it is possible to set background-color with help of mouse coordinates.

What is have is:

I have a DIV-A which is draggable and some other divs which are droppable.

What is need is :

I need to highlight other divs on my page which are droppable, whenever my DIV-A passes over them. What i have is mouse coordinates, is it possible to apply css on the bases of mouse coordinates using jquery.

© Stack Overflow or respective owner

Related posts about css

Related posts about JavaScript