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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
---
title: <bgsound>
slug: Web/HTML/Element/bgsound
translation_of: Web/HTML/Element/bgsound
---
<div>{{non-standard_header}}</div>
<h2 id="Sommario">Sommario</h2>
<p>L'elemento HTML <code><bgsound> </code>(o <em>Background Sound</em>) è un elemento introdotto da Internet Explorer che riproduce un audio in sottofondo.</p>
<div class="note">
<p><strong>Non usarlo!<em> </em></strong>Per incorporare un audio in una pagina web, bosognerebbe usare l'elemento {{HTMLElement("audio")}}.</p>
</div>
<h2 id="Attributi">Attributi</h2>
<dl>
<dt>{{htmlattrdef("balance")}}</dt>
<dd>Questo attributo definisce come il volume deve essere diviso tra le casse. Il suo valore può variare da -10,000 (solo la cassa sinistra) a +10,000 (solo la cassa destra).</dd>
<dt>{{htmlattrdef("loop")}}</dt>
<dd>Questo attributo indica il numero di volte che l'audio deve essere riprodotto. Il suo valore può essere un numero intero o <code>infinite</code>.</dd>
<dt>{{htmlattrdef("src")}}</dt>
<dd>Questo attributo specifica l'URL dell'audio da riprodurre, che deve essere di tipo <code>.wav</code>, <code>.au</code> o <code>.mid</code>.</dd>
<dt>{{htmlattrdef("volume")}}</dt>
<dd>Questo attributo specifica il volume dell'audio. il suo valore può variare tra -10,000 e 0.</dd>
</dl>
<h2 id="Esempio">Esempio</h2>
<pre class="brush:html"><bgsound src="sound1.mid">
<bgsound src="sound2.au" loop="infinite">
</pre>
<h2 id="Compatibilità_con_i_browser">Compatibilità con i browser</h2>
<p>{{CompatibilityTable}}</p>
<div id="compat-desktop">
<table class="compat-table">
<tbody>
<tr>
<th>Funzionalità</th>
<th>Chrome</th>
<th>Firefox (Gecko)</th>
<th>Internet Explorer</th>
<th>Opera</th>
<th>Safari</th>
</tr>
<tr>
<td>Supporto di base</td>
<td>{{CompatUnknown}}</td>
<td>{{CompatNo}} [1]</td>
<td>{{CompatVersionUnknown}}</td>
<td>{{CompatUnknown}}</td>
<td>{{CompatUnknown}}</td>
</tr>
</tbody>
</table>
</div>
<div id="compat-mobile">
<table class="compat-table">
<tbody>
<tr>
<th>Funzionalità</th>
<th>Android</th>
<th>Firefox Mobile (Gecko)</th>
<th>IE Mobile</th>
<th>Opera Mobile</th>
<th>Safari Mobile</th>
</tr>
<tr>
<td>Supporto di base</td>
<td>{{CompatUnknown}}</td>
<td>{{CompatNo}} [1]</td>
<td>{{CompatUnknown}}</td>
<td>{{CompatUnknown}}</td>
<td>{{CompatUnknown}}</td>
</tr>
</tbody>
</table>
</div>
<p>[1] Fino a Firefox 22, anche se questo elemento non era supportato, veniva associato all'interfaccia {{domxref("HTMLSpanElement")}}. Questo bug è stato risolto e adesso viene utilizzata l'interfaccia {{domxref("HTMLUnknownElement")}}, come richiesto dalla specifica.</p>
<h2 id="Note">Note</h2>
<ul>
<li>In alcune versioni di Netscape, si può ottenere lo stesso effetto usando il tag {{HTMLElement("embed")}}.</li>
<li>Non essendo parte di nessuno standard, anche scrivendo questo elemento in un modo simile all'XHTML (<code><bgsound /></code>) il codice non sarà valido.</li>
</ul>
<h2 id="Vedi_anche">Vedi anche</h2>
<ul>
<li>L'elemento {{HTMLElement("audio")}}, che è lo standard per incorporare l'audio in un documento.</li>
</ul>
<div>{{HTMLRef}}</div>
|