请教Applet 程序
import java.applet.*;
import java.awt.*;
public class useRelativeBeep extends Applet implements Runnable
{
private AudioClip beep;
private boolean stopped=false;
public void init(){
this.beep=this.getAudioClip(this.getDocumentBase(),"F:/销魂音乐/Wav格式/wavbaozha\1.WAV");
if(this.beep!=null)
{Thread t=new Thread(this);
t.start();
}
};
public void start(){
this.stopped=false;
};
public void run(){
Thread.currentThread().setPriority(Thread.MIN_PRIORITY);
while(true)
{
if(!stopped)
this.beep.play();
try{
Thread.sleep(5000);
}
catch(InterruptedException e){}
}
};
public void stop(){
this.stopped=true;
};
}
把此程序嵌入html后,一点动静没有
请高手赐教