Question about graphic following the cursor

How to make a graphic to follow a cursor within an area? Wherever the cursor go, it move to its location… Thanx first…