WebSiteMadeEasy.net
|
FontsMadeEasy.com
|
RankChecker.net
Google Search:
Learn Java Script Today
|
Over 5000 Free Fonts
|
Tutorials
|
Javascript Forum
|
Other Javascript Resources
|
Cheat Sheet
JavaScript Basics
Inserting Javascript
Complete Tutorial
Advance DHTML Tutorial
Script archive
Advance Tutorials
Alert Scripts
Animation
Audio
Background Effects
Banner Ads
Browser Window
Buttons
Button Forms
Calculcators
Calendars
Clocks & Dates
Cookies
Cursor Effects
DHMTL Games
DHTML Miscellaneous
Equivalents
Forms
Games
IE4+ Scripts
IE5+ Scripts
Image Effects
Image Miscellaneous
Links & Buttons
Math Related
Messages Miscellaneous
Miscellaneous
Mouse Tricks
Navigation
Page Details
Password Protection
Pulldown Menus
Random Stuff
Scrolling
Status Bar
Text Animation
User Detail
User Info
Window Control
Mouse Over Image - Play Sound
It only works on Netscape for Windows 95 & NT. However it doesn't work in Netscape 4 because they uses the Media Player which does not load the emeded sound (the script needs the wav to be loaded). Beatnik Player can be used on Netscape 4.
Insert into <HEAD>
<SCRIPT LANGUAGE=JavaScript> <!-- Hide from old browsers function playSound(){ document.sound1.play(); } // --> </SCRIPT>
Insert into <BODY>
<EMBED SRC="YOUR SOUND FILE" autostart=false HIDDEN=TRUE NAME="sound1" MASTERSOUND> <A HREF="" onMouseOver="playSound()" onClick="return false;"> <IMG SRC="IMAGE FILE"></A>
Other Options
To use this script copy this into your head tag! <SCRIPT LANGUAGE=JavaScript> <!-- Hide from old browsers function playSound(){ document.sound1.play(); } // --> </SCRIPT> Now put this anywhere in your page. <EMBED SRC="YOUR SOUND FILE" autostart=false HIDDEN=TRUE NAME="sound1" MASTERSOUND> <A HREF="" onMouseOver="playSound()" onClick="return false;"> <IMG SRC="IMAGE FILE"></A> If you want the link to work, the previous should look like this... <EMBED SRC="YOUR SOUND FILE" autostart=false HIDDEN=TRUE NAME="sound1" MASTERSOUND> <A HREF="YOUR LINK GOES HERE" onMouseOver="playSound()"> <IMG SRC="IMAGE FILE"></A>