00000001.htm

来自「水木清华BBS」· HTM 代码 · 共 677 行 · 第 1/5 页

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

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?