How to | Make Dynamic Graphics
For example, use Mouseover to make the disk turn red when you mouseover it:
You can also handle mouse clicks inside a graphic by using Button around the disk. Clicking on the disk here produces an audible beep:
For example, move your mouse pointer over the frame here. The disk dynamically re-centers itself on your mouse pointer. MousePosition is used inside Dynamic to give the position of the mouse wherever it is moved:
This graphic will update when the mouse pointer is over any graphic. If you move your mouse over the disk that is also a hyperlink, you will see that the framed disk moves within the frame to follow your mouse pointer.
For example, moving your mouse pointer over the graphic here causes the position of the disk in both framed graphics to match. However, the reverse is not true. In fact, mousing over any of the above graphics does not cause the position of the disk here to change: