How do i erase an image on top of another

lets say i have a transparent fog over an image. I want it so that the user can erase the fog when your mouse goes over the certain area.