Back to Scripts page
Click in the box below, select all and copy to grab the script
<HTML> <HEAD> <TITLE>Rollover Sound</TITLE> <SCRIPT LANGUAGE=JAVASCRIPT> <!-- Hide script from old browsers // This script copyright 1997, Tom Negrino and Dori Smith. // This script is from "JavaScript for the WWW, Visual QuickStart Guide, 2nd Ed." // For more information, see <http://www.chalcedony.com/javascript/>. // This script may be used and modified, but the copyright notice must remain intact. function playSound(SName) { if (document.embeds[SName] != null && document.embeds[SName].IsReady()) { document.embeds[SName].play(false); } } // End hiding script from old browsers --> </SCRIPT> </HEAD> <BODY BGCOLOR=WHITE> <CENTER><H1>Sounds on rollovers</H1></CENTER> <p><A HREF=javascript:void("") OnMouseover="playSound('moof')"><IMG SRC='dogcow.gif' WIDTH=43 HEIGHT=34 BORDER=0 ALIGN=LEFT HSPACE=30></A> <H3>If you pet Clarus she will moof for you!</H3> <EMBED SRC="moof.au" NAME="moof" HIDDEN=TRUE LOOP=FALSE AUTOSTART=FALSE MASTERSOUND> </BODY> </HTML>