📄 javabase.js
字号:
if(top.isTop!=true)
top.location="index.html";
function writeLE(){
document.write("<center><iframe src=\"http://leader.linkexchange.com/1/X1369103/showiframe?\" width=468 height=60 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no><a href=\"http://leader.linkexchange.com/1/X1369103/clickle\" target=\"_top\"><img width=468 height=60 border=0 ismap alt=\"\" src=\"http://leader.linkexchange.com/1/X1369103/showle?\" nosave></a></iframe><br><a href=\"http://leader.linkexchange.com/1/X1369103/clicklogo\" target=\"_top\"><img src=\"http://leader.linkexchange.com/1/X1369103/showlogo?\" width=468 height=16 border=0 nosave ismap alt=\"\"></a></center><br>");
}
function testApplet(){
appletTestWindow=window.open(document.location.href,"Test","toolbar=no,scrollbars=no,width="+document.form.width.value+",height="+document.form.height.value);
appletTestWindow.document.clear();
appletTestWindow.document.write("<HTML><BODY leftmargin=0 topmargin=0>");
writeAppletCode(appletTestWindow);
appletTestWindow.document.write("</BODY></HTML>");
}
function seloption(o){
return o.options[o.selectedIndex].value;
}
function isParameter(name){
return !(name=="test"||name=="classFileName"||name=="width"||name=="height"||name=="returnTo"||name=="submit"||name=="appletBase");
}
function makeHTML(){
/*appletWindow=window.open("loading.html","YourApplet","toolbar=no,scrollbars=yes");
appletWindow.close();*/
fileName=document.form.classFileName.value;
if(fileName==null) fileName=seloption(document.form.classFileName);
appletWindow=window.open("loading.html","YourApplet","toolbar=no,scrollbars=yes");
appletWindow.document.clear();
appletWindow.document.title="Your Applet";
appletWindow.document.write("<HTML><HEAD><TITLE>Applet HTML Tag Generator</TITLE></HEAD><BODY>");
appletWindow.document.write("<H1>Applet HTML Tag Generator</H1><H3>Copyright (c) 2000 ");
appletWindow.document.write("<A HREF=mailto:ed.smith@mail.com>Edward Smith</A></H3>");
appletWindow.document.write("<BR><B>This is the HTML code you must paste to add your applet. ");
appletWindow.document.write("Note you must also have files from <A HREF=\""+fileName+".zip\">");
appletWindow.document.write(fileName+".zip</A> in your document directory.<BR><BR>");
appletWindow.document.write("<CODE>");
appletWindow.document.write("<applet code=\""+fileName+".class\" codebase=\"./\" align=\"baseline\" ");
appletWindow.document.write("width=\""+document.form.width.value+"\" height=\""+document.form.height.value+"\"><BR>");
for(i=0;i<document.form.elements.length;i++){
name=document.form.elements[i].name;
if(isParameter(name)) {
value=document.form.elements[i].value;
if(value!=null&&!value=="")
printParameter(name,value,appletWindow);
else if(value!=""){
value=seloption(document.form.elements[i]);
printParameter(name,value,appletWindow);
}
}
}
appletWindow.document.write("</applet>\n</CODE><BR>");
appletWindow.document.write("<BR><H3>Your applet</H3><BR>");
writeAppletCode(appletWindow);
appletWindow.document.write("<BR><BR><A HREF=\""+document.form.returnTo.value+"\">Back to home</A><BR>");
appletWindow.document.write("</BODY></HTML>");
}
function writeAppletCode(out){
fileName=document.form.classFileName.value;
if(fileName==null) fileName=seloption(document.form.classFileName);
out.document.write("\n\n<applet code=\""+fileName+".class\" codebase=\""+document.form.appletBase.value+"\" align=\"baseline\" ");
out.document.write("width=\""+document.form.width.value+"\" height=\""+document.form.height.value+"\">\n");
if(document.form.key.value.length<2) out.document.write("<param name=\"host\" value=\"javabase\">\n<param name=\"key\" value=\"cacowcbu\">\n");
for(i=0;i<document.form.elements.length;i++){
name=document.form.elements[i].name;
if(isParameter(name)){
value=document.form.elements[i].value;
if(value!=null&&!value=="")
printActualParameter(name,value,out);
else if(value!=""){
value=seloption(document.form.elements[i]);
printActualParameter(name,value,appletWindow);
}
}
}
out.document.write("</applet>\n\n");
}
function printParameter(name,value,out){
out.document.write("<param name=\""+name+"\" value=\""+value+"\"><BR>");
}
function printActualParameter(name,value,out){
out.document.write("<param name=\""+name+"\" value=\""+value+"\">\n");
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -