aboutsummaryrefslogtreecommitdiff
path: root/files/ru/web/html/element/applet/index.html
blob: ae24cea607ee7cef47e0a5c135c7657b5f8a3e91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
---
title: <applet>
slug: Web/HTML/Element/applet
translation_of: Web/HTML/Element/applet
---
<div>{{obsolete_header}}</div>

<p>Элемент HTML апплет (&lt;applet&gt;) определяет включение апплета java.</p>

<div class="note">
<p>Примечание: {{htmlelement("applet")}} элемент был удалён в <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1279218">Gecko 56</a> и <a href="https://bugs.chromium.org/p/chromium/issues/detail?id=470301">Chrome</a> в конце 2015 года. Удаление рассматривается в <a href="https://bugs.webkit.org/show_bug.cgi?id=157926">WebKit</a> и <a href="https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/11946645/">Edge</a>.</p>
</div>

<h2 id="Attributes" name="Attributes">Атрибуты</h2>

<dl>
 <dt>{{htmlattrdef("align")}}</dt>
 <dd>Этот атрибут используется для установки апплета на странице относительно содержания, которая может течь вокруг него. В HTML 4.01 определяет значения снизу, слева, посередине, справа и сверху, в то время как Microsoft и Netscape также может поддерживать <strong>absbottom</strong>, <strong>absmiddle</strong>, <strong>baseline</strong>, <strong>center</strong>, и <strong>texttop</strong>.</dd>
 <dt>{{htmlattrdef("alt")}}</dt>
 <dd>This attribute causes a descriptive text alternate to be displayed on browsers that do not support Java. Page designers should also remember that content enclosed within the <code>&lt;applet&gt;</code> element may also be rendered as alternative text.</dd>
 <dt>{{htmlattrdef("archive")}}</dt>
 <dd>This attribute refers to an archived or compressed version of the applet and its associated class files, which might help reduce download time.</dd>
 <dt>{{htmlattrdef("code")}}</dt>
 <dd>This attribute specifies the URL of the applet's class file to be loaded and executed. Applet filenames are identified by a .class filename extension. The URL specified by code might be relative to the <code>codebase</code> attribute.</dd>
 <dt>{{htmlattrdef("codebase")}}</dt>
 <dd>This attribute gives the absolute or relative URL of the directory where applets' .class files referenced by the code attribute are stored.</dd>
 <dt>{{htmlattrdef("datafld")}}</dt>
 <dd>This attribute, supported by Internet Explorer 4 and higher, specifies the column name from the data source object that supplies the bound data. This attribute might be used to specify the various {{HTMLElement("param")}} elements passed to the Java applet.</dd>
 <dt>{{htmlattrdef("datasrc")}}</dt>
 <dd>Like <code>datafld</code>, this attribute is used for data binding under Internet Explorer 4. It indicates the id of the data source object that supplies the data that is bound to the {{HTMLElement("param")}} elements associated with the applet.</dd>
 <dt>{{htmlattrdef("height")}}</dt>
 <dd>This attribute specifies the height, in pixels, that the applet needs.</dd>
 <dt>{{htmlattrdef("hspace")}}</dt>
 <dd>This attribute specifies additional horizontal space, in pixels, to be reserved on either side of the applet.</dd>
 <dt>{{htmlattrdef("mayscript")}}</dt>
 <dd>In the Netscape implementation, this attribute allows access to an applet by programs in a scripting language embedded in the document.</dd>
 <dt>{{htmlattrdef("name")}}</dt>
 <dd>This attribute assigns a name to the applet so that it can be identified by other resources; particularly scripts.</dd>
 <dt>{{htmlattrdef("object")}}</dt>
 <dd>This attribute specifies the URL of a serialized representation of an applet.</dd>
 <dt>{{htmlattrdef("src")}}</dt>
 <dd>As defined for Internet Explorer 4 and higher, this attribute specifies a URL for an associated file for the applet. The meaning and use is unclear and not part of the HTML standard.</dd>
 <dt>{{htmlattrdef("vspace")}}</dt>
 <dd>This attribute specifies additional vertical space, in pixels, to be reserved above and below the applet.</dd>
 <dt>{{htmlattrdef("width")}}</dt>
 <dd>This attribute specifies in pixels the width that the applet needs.</dd>
</dl>

<h2 id="Example">Example</h2>

<pre class="brush: html">&lt;applet code="game.class" align="left" archive="game.zip" height="250" width="350"&gt;
  &lt;param name="difficulty" value="easy"&gt;
  &lt;b&gt;Sorry, you need Java to play this game.&lt;/b&gt;
&lt;/applet&gt;
</pre>

<h2 id="Browser_compatibility">Browser compatibility</h2>

<p>{{Compat("html.elements.applet")}}</p>

<h2 id="Notes">Notes</h2>

<p>The W3C specification does not encourage the use of <code>&lt;applet&gt;</code> and prefers the use of the {{HTMLElement("object")}} tag. Under the strict definition of HTML 4.01, this element is deprecated and entirely obsolete in HTML5.</p>

<div>{{HTMLRef}}</div>