|
Script Introduction
This script, by Stone5150, will play a sound when the mouse is moved over a link. This
works with IE4+ only, other browsers should just see a plain link.
Cut and Paste Code: BODY Section
This code should be placed between the <body> and </body> tags.
Installation Instructions
-
Paste the BODY Section code from above between the <body> and </body> tags on your page,
exactly where you want the forward and back images to appear.
-
Find the matching lines below in the script and change the text in red to
the URLs and text you wish to use:
<EMBED SRC="sound_file_name.wav" autostart="false" hidden="true">
document.all.sound.src = "sound_file_name.wav";
<A HREF="http://yoursite.com/page.html" onMouseover="playHome()">HERE</A>
-
Check the Format Window
to be sure you do not have one single line of code, or too many line breaks in the code.
Example
A working sample of the script is shown below.
Put your mouse on the link to hear a sound:
Move your mouse over this link!
|