The present invention is to provide a method applicable to an electronic device having two programs stored therein and a display including a foreground and a background for creating a three-dimensional visual effect in the display, wherein one program presents a first image in the foreground in a prominent state and plays a sound corresponding to the first image, and the other program presents a second image in the background in a state other than the prominent state. When the electronic device determines that the second image is clicked, the electronic device switches the second image from the background to the foreground, changes the second image to the prominent state, plays a sound corresponding to the second image, switches the first image from the foreground to the background, changes the first image to the state other than the prominent state, and stops playing the sound corresponding to the first image.