00000001.htm
来自「水木清华BBS」· HTM 代码 · 共 677 行 · 第 1/5 页
HTM
677 行
this text is displayed only if the browser does not have Java <BR>technology support. By mapping it inside the NOEMBED tag, this <BR>text will be displayed if the browser does not support the EMBED <BR>tag or if Navigator fails to start the Java Plug-in. <BR>The APPLET-EMBED tag attributes mapping is as follows: <BR> <BR>Attributes APPLET tag support EMBED tag support Attribute map in EMBED tag <BR>ALIGN X X Attribute ALIGN <BR>ALT X X Attribute ALT <BR>ARCHIVE X Attribute archive <BR>CODE X Attribute code <BR>CODEBASE X Attribute codebase <BR>HEIGHT X X Attribute HEIGHT <BR>HSPACE X X Attribute HSPACE <BR>NAME X X Attribute NAME <BR>OBJECT X Attribute object <BR>TITLE X X Attribute TITLE <BR>VSPACE X X Attribute VSPACE <BR>WIDTH X X Attribute WIDTH <BR>MAYSCRIPT X X Attribute MAYSCRIPT <BR> <BR> Some attributes are special to the EMBED tag. These attributes are: <BR> <BR> Meaning in EMBED tag <BR>Attribute type If it is an applet, the value should be <BR>"application/x-java-applet;version=1.2" or "application/x-java-applet". <BR>If it is a bean, the value should be <BR>"application/x-java-bean;version=1.2" or "application/x-java-bean". <BR>Attribute codebase Specifies the base URL of the applet. <BR>This attribute is optional. <BR>Attribute code Specifies the name of the Java applet or JavaBeans <BR>component. It cannot be used with param object inside the same <BR>EMBED tag. <BR>Attribute object Specifies the name of the serialized Java applet <BR> or JavaBeans component. It cannot be used with param code inside <BR> the same EMBED tag. This attribute is optional. <BR>Attribute archive Specifies the name of the Java archive. <BR>This attribute is optional. <BR>Attribute pluginspage It should be a full URL pointing to an <BR>HTML page somewhere on the network. <BR>Attribute mayscript Specifies whether the applet is allowed to <BR>access netscape.javascript.JSObject. The value can be either <BR>"true" or "false". This attribute is optional. <BR> <BR> Similar to the OBJECT tag case, if the original APPLET tag <BR>has PARAM type, codebase, code, object, or archive, mapping <BR>it to the EMBED tag attribute will cause a problem. To avoid <BR>this, Java Plug-in also supports the same new set of attribute <BR>names, as follows: <BR>Original Attribute Names New Attribute Names <BR>code java_code <BR>codebase java_codebase <BR>archive java_archive <BR>object java_object <BR>type java_type <BR>You should use these new attribute names only necessary. <BR>If both new and original attribute names exist in the same <BR>EMBED tag, the value associated with the new attribute name <BR>is always used by Java Plug-in to load the applet or bean. <BR>Java Plug-in in IE and Navigator <BR>The OBJECT tag in IE and the EMBED tag in Navigator allows <BR>your HTML page to use Java Plug-in if the HTML page is browsed <BR>on Windows 95, Windows 98, Windows NT 4.0, or Solaris operating <BR>environments. However, if the HTML page is on the Internet/intranet, <BR>the page is likely to be browsed by both IE and Navigator. <BR>You should activate the Java Plug-in if both Navigator and <BR>IE will browse the same HTML page. You can do this using the <BR>Java Plug-in OBJECT tag, as follows: <BR>Original APPLET tag: <BR><APPLET code="XYZApp.class" codebase="html/" align="baseline" <BR> width="200" height="200"> <BR><PARAM NAME="model" VALUE="models/HyaluronicAcid.xyz"> <BR> No JDK 1.2 support for APPLET!! <BR></APPLET> <BR>New OBJECT tag: <BR> <BR><OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" <BR> width="200" height="200" align="baseline" <BR> codebase="<A HREF="http://java.sun.com/products/plugin/1.2/">http://java.sun.com/products/plugin/1.2/</A> <BR>jinstall-12-win32.cab#Version=1,2,0,0"> <BR><PARAM NAME="code" VALUE="XYZApp.class"> <BR><PARAM NAME="codebase" VALUE="html/"> <BR><PARAM NAME="type" VALUE="application/x-java-applet;version=1.2"> <BR><PARAM NAME="model" VALUE="models/HyaluronicAcid.xyz"> <BR><COMMENT> <BR> <EMBED type="application/x-java-applet;version=1.2" width="200" <BR> height="200" align="baseline" code="XYZApp.class" <BR> codebase="html/" model="models/HyaluronicAcid.xyz" <BR> pluginspage="<A HREF="http://java.sun.com/products/plugin/1.2/">http://java.sun.com/products/plugin/1.2/</A> <BR>plugin-install.html"> <BR> <NOEMBED> <BR> </COMMENT> <BR> No JDK 1.2 support for APPLET!! <BR> </NOEMBED></EMBED> <BR></OBJECT> <BR> <BR> Because IE understands the <OBJECT> tag, it will try to <BR>launch Java Plug-in. Notice that the <COMMENT> tag is a <BR>special HTML tag understood only by IE. IE ignores text <BR>between the <COMMENT> and </COMMENT> tags. In effect, the <BR>above tags actually become: <BR> <BR><OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" <BR> width="200" height="200" align="baseline" <BR> codebase="<A HREF="http://java.sun.com/products/plugin/1.2/">http://java.sun.com/products/plugin/1.2/</A> <BR>jinstall-12-win32.cab#Version=1,2,0,0"> <BR> <PARAM NAME="code" VALUE="XYZApp.class"> <BR> <PARAM NAME="codebase" VALUE="html/"> <BR> <PARAM NAME="type" VALUE="application/x-java-applet;version=1.2"> <BR> <PARAM NAME="model" VALUE="models/HyaluronicAcid.xyz"> <BR> No JDK 1.2 support for APPLET!! <BR> </NOEMBED></EMBED> <BR></OBJECT> <BR> <BR> This is identical to the OBJECT tag example outlined above. <BR>The </NOEMBED> and </EMBED> tags are ignored by the OBJECT tag <BR>because there are no corresponding <NOEMBED> and <EMBED> tags. <BR>Because Navigator does not understand the OBJECT and COMMENT <BR>tags, Navigator 3/4 on the Windows 95, Windows 98, Windows NT <BR>4.0, or Solaris operating environments reads the above tags <BR>as follows: <BR><EMBED type="application/x-java-applet;version=1.2" width="200" height="200" <BR> align="baseline" code="XYZApp.class" codebase="html/" <BR> model="models/HyaluronicAcid.xyz" <BR> pluginspage="<A HREF="http://java.sun.com/products/plugin/1.2/plugin-install.html">">http://java.sun.com/products/plugin/1.2/plugin-install.html"></A> <BR><NOEMBED> <BR> No JDK 1.2 support for APPLET!! <BR></NOEMBED> <BR></EMBED> <BR> <BR> This is identical to the EMBED tag example outlined above. <BR> Navigator 3/4 ignores <COMMENT> and </COMMENT> tags because <BR> they are an HTML extension in IE only. <BR>This example illustrates that you can use the combined <BR>OBJECT-EMBED tag to activate Java Plug-in in the browser <BR>if either IE or Navigator is used. This combined tag is strongly <BR>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?