Examples by Prof. Al

 

MSIE onMouseOver Sounds

Boinnngg   Knock knock knock

Want to have a little fun, make a little noise with your HyperText Links! Place your mouse over the Boinnngg and Knock knock knock above and see what happens. This script only works in Microsoft Internet Explorer.

Highlight all the code in the textbox below and paste it into the head of your document.

In the body where you’ll have your hypertext links, you can add the following code to the a href tags. Here’s the example from this page below.

<a href="#" onMouseOver="playSound(0)" onMouseOut="stopSound(0)">Boinnngg</a>

<a href="#" onMouseOver="playSound(1)" onMouseOut="stopSound(1)" >Knock knock knock</a>

Return to the JavaScript menu page here.

 


Copyright © 2001-2011 Professor Al   al.fichera@gmail.com
Page Last Updated on: June 8, 2011