<!DOCTYPE html>
<html>
<head>
<title>MyHtml.html</title>
<meta name="keywords" content="keyword1,keyword2,keyword3">
<meta name="description" content="this is my page">
<meta name="content-type" content="text/html; charset=UTF-8">
<!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
</head>
<SCRIPT LANGUAGE=JavaScript>
function playSound(){
document.firstSound.play(true);
}
function pauseSound(){
document.firstSound.pause();
}
function stopSound(){
document.firstSound.stop();
}
function volup(){
currentVolume=document.firstSound.GetVolume();
new Volume=(currentVolume+10);
if(document.firstSound.GetVolume()==100){
alert("音量已经达到最大值");
}
if(newVolume<101){
document.firstSound.setvol(newVolume);
}
else
{
if((newVolume<=100)&&(newVolume>90)){
document.firstSound.setvol(100);
}
}
}
function voldown(){
currentVolume=document.firstSound.GetVolume();
new volume=(currentVolume-10);
if(document.firstSound.GetVolume()==0){
alert("音量已经达到最小值");
}
if(newVolume>0){
document.firstSound.setvol(newVolume);
}
else
{
if((newVolume>=0)&&(newVolume<10)){
document.firstSound.setvol(0);
}
}
}
</SCRIPT>
<BODY>
<embed SRC="1704.mp3" HIDDEN=TRUE AUTOSTART="true" LOOP="false" NAME="firstSound" ></embed>
<!--<P><AHREF="">播放</A></P>
<P><AHREF="">暂停</A></P>
<P><AHREF="">停止</A></P>
<P><AHREF="">音量+</A></P>
<P><AHREF="">音量-</A></P>-->
</BODY>
<html>
<head>
<title>MyHtml.html</title>
<meta name="keywords" content="keyword1,keyword2,keyword3">
<meta name="description" content="this is my page">
<meta name="content-type" content="text/html; charset=UTF-8">
<!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
</head>
<SCRIPT LANGUAGE=JavaScript>
function playSound(){
document.firstSound.play(true);
}
function pauseSound(){
document.firstSound.pause();
}
function stopSound(){
document.firstSound.stop();
}
function volup(){
currentVolume=document.firstSound.GetVolume();
new Volume=(currentVolume+10);
if(document.firstSound.GetVolume()==100){
alert("音量已经达到最大值");
}
if(newVolume<101){
document.firstSound.setvol(newVolume);
}
else
{
if((newVolume<=100)&&(newVolume>90)){
document.firstSound.setvol(100);
}
}
}
function voldown(){
currentVolume=document.firstSound.GetVolume();
new volume=(currentVolume-10);
if(document.firstSound.GetVolume()==0){
alert("音量已经达到最小值");
}
if(newVolume>0){
document.firstSound.setvol(newVolume);
}
else
{
if((newVolume>=0)&&(newVolume<10)){
document.firstSound.setvol(0);
}
}
}
</SCRIPT>
<BODY>
<embed SRC="1704.mp3" HIDDEN=TRUE AUTOSTART="true" LOOP="false" NAME="firstSound" ></embed>
<!--<P><AHREF="">播放</A></P>
<P><AHREF="">暂停</A></P>
<P><AHREF="">停止</A></P>
<P><AHREF="">音量+</A></P>
<P><AHREF="">音量-</A></P>-->
</BODY>
</HTML>
<!--转载出处已经不知道在那个地方了,借鉴学习使用-->