Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/narutof/public_html/webmasters/scripts/java-scripts/sound-on-rollover.php on line 24

Warning: include(http://narutofever.com/header.php) [function.include]: failed to open stream: no suitable wrapper could be found in /home/narutof/public_html/webmasters/scripts/java-scripts/sound-on-rollover.php on line 24

Warning: include() [function.include]: Failed opening 'http://narutofever.com/header.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/narutof/public_html/webmasters/scripts/java-scripts/sound-on-rollover.php on line 24
 

Java Scripts

Playing a Sound File on Rollover
-written on 01/10/04 by Javier

This cute Java Script will enable you to play a default piece of music or any sound on rollover. Just copy and past the script below.

 
 
 

The Java Script Source

<!-- Insert this script into your BODY tag on the page -->

<EMBED SRC="IamNaruto.mid" autostart="false" hidden="true">
<SCRIPT language="JavaScript">
<!--
function playHome()
{
if (document.all)
{
document.all.sound.src = "IamNaruto.mid";
}
}
//-->
</SCRIPT>
<bgsound id="sound">
Place your mouse over the picture to hear some music:<br>
<A HREF="http://narutofever.com/multimedia/midi-ringtones.php" onMouseover="playHome()"><br>
Click Here </A>

<!-- Code Ends Here-->

What to do with the Java Script Source Above

Open the your page with a simple text editor like notepad or a html editor. Place the code anywhere between the <body> tags.

Just replace the green words with the file name of your sound file and the blue words with where you want your link to point to and you are done.

Finally, upload your html file and your sound file.

Check this Out

Place your mouse over the picture to hear some music (I replaced the word with an image. You can modify the code yourself too!


email me if you have any problems at admin@narutofever.com

 

 

 



Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/narutof/public_html/webmasters/scripts/java-scripts/sound-on-rollover.php on line 102

Warning: include(http://narutofever.com/skyscraper.html) [function.include]: failed to open stream: no suitable wrapper could be found in /home/narutof/public_html/webmasters/scripts/java-scripts/sound-on-rollover.php on line 102

Warning: include() [function.include]: Failed opening 'http://narutofever.com/skyscraper.html' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/narutof/public_html/webmasters/scripts/java-scripts/sound-on-rollover.php on line 102
 
   

Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/narutof/public_html/webmasters/scripts/java-scripts/sound-on-rollover.php on line 113

Warning: include(http://narutofever.com/footer.html) [function.include]: failed to open stream: no suitable wrapper could be found in /home/narutof/public_html/webmasters/scripts/java-scripts/sound-on-rollover.php on line 113

Warning: include() [function.include]: Failed opening 'http://narutofever.com/footer.html' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/narutof/public_html/webmasters/scripts/java-scripts/sound-on-rollover.php on line 113
 

Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/narutof/public_html/webmasters/scripts/java-scripts/sound-on-rollover.php on line 127

Warning: include(http://narutofever.com/links.html) [function.include]: failed to open stream: no suitable wrapper could be found in /home/narutof/public_html/webmasters/scripts/java-scripts/sound-on-rollover.php on line 127

Warning: include() [function.include]: Failed opening 'http://narutofever.com/links.html' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/narutof/public_html/webmasters/scripts/java-scripts/sound-on-rollover.php on line 127