Dynamic Audio Mail Button

[Total: 0    Average: 0/5]

Loud and dynamic mail button.

Body Code:

<script>
//Customize Button Email Address
function ButtonClick()
{
document.location.href=("mailto:user@domain.com")
//Replace user@domain.com with your own email address
}

//Customize Button Mouse Over Colors
function ButtonOver()
{
document.Mail.button.style.background="navy" //Button Background Color
document.Mail.button.style.color="white" //Button Text Color
//You can change the colors "navy" and "white"
}

//Customize Button Mouse Down Color
function ButtonDown() 
{
document.Mail.button.style.color="cyan" //Button Text Color
//You can change the color "cyan"
}

//Customize Button Mouse Off Colors
function ButtonOut() 
{
document.Mail.button.style.background="yellow" //Button Background Color
document.Mail.button.style.color="red" //Button Text Color
//You can change the colors "yellow" and "red"
}

//Customize Button Sound
function playSound() 
{
  document.all.sound.src = "/data/tada.wav" //Button Sound
  //You can change "/data/tada.wav" 
}

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=Mail><input class="select" name="button" type="button" value="Mail" onclick="ButtonClick()" onMouseOver="ButtonOver();playSound()" onMouseDown="ButtonDown()" onMouseOut="ButtonOut()"></form></center>')
</script>

Times Viewed: 1

Leave a Reply

Your email address will not be published. Required fields are marked *