|
|
|
|
|
Home - Tips & Tutorials - JavaScript Demos - Java Applet Demos - Resources - Contact |
||
|
onMouseover/onClick Sound Event Script by JavaScriptArchive from JavaScript Kit >>> This script is made for IE and Netscape Navigator users. It doesn't work with Mozilla/Firefox, though, unless there is a plugin comparable to Netscape's LiveAudio which is required for Netscape 3.x+ (doesn't work with Mozilla-based Netscape browsers) users to hear the sounds. There are two parts to this script. |
1) Copy-and-paste (CTRL-V) the script below into the Insert HTML element as shown. Minimize the element and put it out of the way in a corner. (This is normally placed within the <head></head> tags.) Depending on how many sounds you use per page, you can use more than one aySound[ ] array as I show below. If you use only one sound file, then keep the line aySound[0] only. Replace the sound file name(s) in the script for yours. <script LANGUAGE="JavaScript"><!-- a) onMouseOver/ onMouseOut Sound with Link <A HREF="yourpage.html" onMouseOver="playSound(0)" onMouseOut="stopSound(0)">Move Cursor Over Here</A> b) onClick Sound <A HREF="javascript:playSound(1);">Click Here for Sound</A> c) With Standard Gray Button <INPUT TYPE="BUTTON" VALUE="Click Here!" onClick="playSound(2)">
e) Mouseover With Graphic Image and Link to a Page <A HREF="yourpage.html"
onMouseOver="playSound(4)"> Sound files from The Wav Place (no longer valid source) |
|
| Formerly hosted at www.geocities.com/ramblingtutor/ |
Home - Tips & Tutorials - JavaScript Demos - Java Demos - Resources - Contact Webpage graphics by Arride Graphics
|
|