Hi, I have got the java script to create the beep. I don't know how to use it. But if you know then it will help you.
HTML Code:
Code:
<html>
<head>
<script language=javascript>
function check()
{
document.musicApp.beep();
}
</script>
</head>
<body>
<form name=frm_test id=frm_test>
<input type=button value=BEEPJScript onclick=test()>
</form>
<applet code="Beep.class" width=100 height=100
NAME="musicApp" MAYSCRIPT>
</body>
</html>
JAVA code:
Code:
import java.applet.Applet;
import java.awt.*;
import java.awt.event.*;
public class Beep extends Applet implements ActionListener
{
Button b1;
public void init()
{
b1 = new Button ("BEEPJava");
b1.addActionListener (this);
add(b1);
}
public void actionPerformed (ActionEvent ae)
{
this.beep ();
}
public void beep()
{
this.getToolkit().beep();
}
}
Bookmarks