DYNAMIC_audio_bttn

Document Sample
DYNAMIC_audio_bttn Powered By Docstoc
					DYNAMIC_AUDIO_BUTTON

<!-- ONE STEP TO INSTALL DYNAMIC AUDIO BUTTON:

 1. Copy the coding into the BODY of your HTML document -->

<!-- STEP ONE: Paste this code into the BODY of your HTML document -->

<BODY>

<Script language="JavaScript" SRC="DynamicAudioButton.js">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Original: Happy Smart -->
<!-- Web Site: http://happysmart.net -->

<!-- Begin
<Script language="JavaScript" SRC="DynamicAudioButton.js">

//Customize Dynamic Audio Link
function DynamicAudioLink(){
open("http://www.javascriptsource.com")
}

//Customize Dynamic Audio Mouse Over Color
function AudioOver() {
document.Audio.button.style.background="navy"
document.Audio.button.style.color="white"
}

//Customize Dynamic Audio Mouse Down Color
function AudioDown() {
document.Audio.button.style.color="cyan"
}

//Customize Dynamic Audio Mouse Off Color
function AudioOut() {
document.Audio.button.style.background="yellow"
document.Audio.button.style.color="red"
}

//Customize Dynamic Audio sound
function playHome()
{
if (document.all)
 {
  document.all.sound.src = "Bleep.wav";
 }
}

document.write('<EMBED SRC="Bleep.wav" autostart="false" hidden="true">')
document.write('<bgsound id="sound">')

//Customize Button Style
document.write('<style type="text/css">'+'<!--')
document.write('.select{background:yellow;border-color:"red";color:"red";font-
family:Arial,Helvetica,Verdana;font-size:10pt;font-weight: bold;}'+'-->'+'</STYLE>')

document.write('<center><form name=Audio><input class="select" name=button type="button"
value="Dynamic Audio" onclick="DynamicAudioLink()" onMouseOver="AudioOver();playHome()"
onMouseDown="AudioDown()" onMouseOut="AudioOut()"></form></center>')

// End -->
</script>

<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>

<!-- Script Size: 1.96 KB -->

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:14
posted:2/14/2011
language:English
pages:2