📄 appletdemo.html~3~
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK" />
<title>Applet示例</title>
<script type="text/javascript">
var javawsInstalled = false;
var isIE = false;
var isICE = navigator.userAgent.indexOf("ICEBrowser") >= 0;
if (navigator.mimeTypes && navigator.mimeTypes.length)
javawsInstalled = navigator.mimeTypes['application/x-java-jnlp-file'];
else
isIE = true;
function insertLink(url, name) {
if (javawsInstalled) {
document.write("<a href=\"" + url + "\">" + name + "</a>");
} else {
if (isICE) {
document.write("JBuilder的浏览器不支持JWS");
} else {
document.write("Need to install Java Web Start");
}
document.write(" -- for more information, visit ");
document.write("<a href=\"http://java.sun.com/products/javawebstart/\">" );
document.write("the Java Web Start page");
document.write("</a>");
}
}
</script>
<script type="text/vbscript">
on error resume next
If isIE Then
If Not(IsObject(CreateObject("JavaWebStart.IsInstalled"))) Then
javawsInstalled = false
Else
javawsInstalled = true
End If
End If
</script>
</head>
<body>
<h1>Java Web Start application</h1>
<script type="text/javascript">
<!--
insertLink("AppletDemo.jnlp","Applet示例");
// -->
</script>
<noscript>
<a href="AppletDemo.jnlp">Applet示例</a>
</noscript>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -