?? appletexample2.htm
字號:
<html>
<head>
<title>Applet Example</title>
<script>
function changeAppletMessage() {
var oApplet = document.getElementById("ExampleApplet");
var oTextbox = document.getElementById("txtMessage");
try {
oApplet.setMessage(oTextbox.value);
} catch (oError) {
alert("Error caught: " + oError);
}
}
</script>
</head>
<body>
<p>Enter the message you want to see in the applet. If you leave the textbox
blank and click Set Message, it will cause an error.</p>
<p><input type="text" id="txtMessage" size="10" />
<input type="button" value="Set Message" onclick="changeAppletMessage()" />
</p>
<object type="application/x-java-applet" code="ExampleApplet2.class"
width="100" height="100" border="1" id="ExampleApplet">
<comment>
<applet code="ExampleApplet2.class" width="100" height="100"
name="ExampleApplet"></applet>
</comment>
</object>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -