diff options
Diffstat (limited to 'files/ca/web/html/element/marquee/index.html')
| -rw-r--r-- | files/ca/web/html/element/marquee/index.html | 203 |
1 files changed, 203 insertions, 0 deletions
diff --git a/files/ca/web/html/element/marquee/index.html b/files/ca/web/html/element/marquee/index.html new file mode 100644 index 0000000000..8a7c52b823 --- /dev/null +++ b/files/ca/web/html/element/marquee/index.html @@ -0,0 +1,203 @@ +--- +title: <marquee> +slug: Web/HTML/Element/marquee +tags: + - Element + - HTML + - Obsolete + - Reference + - Web +translation_of: Web/HTML/Element/marquee +--- +<div>{{HTMLRef}}</div> + +<div>{{obsolete_header}}</div> + +<h2 id="Summary" name="Summary">Sumari</h2> + +<p>L'element HTML <code><marquee></code> s'utilitza per inserir una àrea de desplaçament de text.</p> + +<h2 id="Atributs">Atributs</h2> + +<dl> + <dt>{{htmlattrdef("behavior")}}</dt> + <dd>Estableix com el text es desplaça dins de la marquesina. Els valors possibles són <code>scroll</code>, <code>slide</code> i <code>alternate</code>. Si no s'especifica cap valor, el valor predeterminat és <code>scroll</code>.</dd> + <dt>{{htmlattrdef("bgcolor")}}</dt> + <dd><span id="result_box" lang="ca"><span>Estableix</span> <span>el color de fons</span> <span>a través del nom</span> <span>del color</span> <span>o el valor</span> <span>hexadecimal</span></span>.</dd> + <dt>{{htmlattrdef("direction")}}</dt> + <dd><span id="result_box" lang="ca"><span>Estableix</span> <span>la direcció del moviment</span> <span>en sentit</span> <span>vertical dins</span> <span>de la</span></span> marquesina. <span id="result_box" lang="ca"><span>Els</span> <span>valors</span> <span>possibles</span> <span>són</span></span> <code>left</code>, <code>right</code>, <code>up</code> i <code>down</code>. <span id="result_box" lang="ca"><span>Si</span> <span>no s'especifica</span> <span>cap valor</span><span>,</span> <span>es</span> <span>deixa el</span> <span>valor per</span> <span>defecte</span></span> <code>left</code>.</dd> + <dt>{{htmlattrdef("height")}}</dt> + <dd><span id="result_box" lang="ca"><span>Estableix</span> <span>l'alçada en</span> <span>píxels o</span> <span>en valor</span> <span>percentual</span></span> .</dd> + <dt>{{htmlattrdef("hspace")}}</dt> + <dd><span id="result_box" lang="ca"><span>Defineix el</span> <span>marge</span> <span>horitzontal</span></span>.</dd> + <dt>{{htmlattrdef("loop")}}</dt> + <dd>Estableix el nombre de vegades que la marquesina es desplaçarà. Si no s'especifica cap valor, el valor predeterminat és -1, el que significa que la marquesina es desplaçarà contínuament.</dd> + <dt>{{htmlattrdef("scrollamount")}}</dt> + <dd>Estableix la quantitat de desplaçament en cada interval en píxels. El valor per defecte és 6.</dd> + <dt>{{htmlattrdef("scrolldelay")}}</dt> + <dd>Estableix l'interval entre cada moviment de desplaçament en milisegons. El valor per defecte és 85. Tingueu en compte que qualsevol valor inferior a 60 és ignorat i el valor 60 s'utilitza en el seu lloc, llevat que s'especifiqui <code>trueSpeed</code>.</dd> + <dt>{{htmlattrdef("truespeed")}}</dt> + <dd> + <p>Per defecte, si els valors de <code>scrollDelay</code> estan per sota 60 son ignorats. Si <code>trueSpeed</code> està present, aquests valors no són ignorats.</p> + </dd> + <dt>{{htmlattrdef("vspace")}}</dt> + <dd>Defineix el marge vertical en píxels o percentatge.</dd> + <dt>{{htmlattrdef("width")}}</dt> + <dd>Estableix l'amplada en píxels o en valor percentual.</dd> +</dl> + +<h2 id="Event_handlers" name="Event_handlers">Controladors d'esdeveniments</h2> + +<dl> + <dt>{{htmlattrdef("onbounce")}}</dt> + <dd>S'activa quan la marquesina ha arribat al final de la seva posició de desplaçament. Només es pot disparar quan l'atribut de comportament està configurat en <code>alternate</code>.</dd> + <dt>{{htmlattrdef("onfinish")}}</dt> + <dd>S'activa quan la marquesina ha acabat la quantitat de desplaçament que s'estableix en l'atribut loop. Només es pot disparar quan l'atribut loop s'estableix en un nombre que és més gran que 0.</dd> + <dt>{{htmlattrdef("onstart")}}</dt> + <dd>S'activa quan la marquesina comença a desplaçar-se.</dd> +</dl> + +<h2 id="Methods" name="Methods">Mètodes</h2> + +<dl> + <dt>start</dt> + <dd><span class="short_text" id="result_box" lang="ca"><span>Inicia</span> el <span>desplaçament de la</span> <span>marquesina.</span></span></dd> + <dt>stop</dt> + <dd> <span class="short_text" id="result_box" lang="ca"><span>Atura el </span><span>desplaçament de la</span> <span>marquesina</span></span> .</dd> +</dl> + +<h2 id="Exemples">Exemples</h2> + +<pre class="brush: html"><marquee>This text will scroll from right to left</marquee> + +<marquee direction="up">This text will scroll from bottom to top</marquee> + +<marquee direction="down" width="250" height="200" behavior="alternate" style="border:solid"> + <marquee behavior="alternate"> + This text will bounce + </marquee> +</marquee></pre> + +<p>{{EmbedLiveSample("Examples", 600, 450)}}</p> + +<h2 id="Especificacions">Especificacions</h2> + +<table class="standard-table"> + <thead> + <tr> + <th scope="col">Especificació</th> + <th scope="col">Estat</th> + <th scope="col">Comentari</th> + </tr> + </thead> + <tbody> + <tr> + <td>{{SpecName('HTML WHATWG', 'obsolete.html#the-marquee-element-2', '<marquee>')}}</td> + <td>{{Spec2('HTML WHATWG')}}</td> + <td>Faci-ho obsolet a favor de CSS, però definiu el seu comportament esperat, per a la compatibilitat amb versions anteriors.</td> + </tr> + <tr> + <td>{{SpecName('HTML5 W3C', 'obsolete.html#the-marquee-element-0', '<marquee>')}}</td> + <td>{{Spec2('HTML5 W3C')}}</td> + <td>Faci-ho obsolet a favor de CSS, però definiu el seu comportament esperat, per a la compatibilitat amb versions anteriors.</td> + </tr> + </tbody> +</table> + +<h2 id="Navegadors_compatibles">Navegadors compatibles</h2> + +<p>{{CompatibilityTable}}</p> + +<div id="compat-desktop"> +<table class="compat-table"> + <tbody> + <tr> + <th>Característica</th> + <th>Chrome</th> + <th>Firefox (Gecko)</th> + <th>Internet Explorer</th> + <th>Opera</th> + <th>Safari</th> + </tr> + <tr> + <td>Suport bàsic</td> + <td>1.0</td> + <td>{{CompatGeckoDesktop("1.0")}}</td> + <td>2.0</td> + <td>7.2</td> + <td>1.2</td> + </tr> + <tr> + <td>atribut <code>truespeed</code></td> + <td>{{CompatNo}}</td> + <td>{{CompatGeckoDesktop("1.9")}}</td> + <td>4.0</td> + <td>{{CompatNo}}</td> + <td>{{CompatNo}}</td> + </tr> + <tr> + <td>atribut <code>hspace/vspace</code></td> + <td>{{CompatUnknown}}</td> + <td>{{CompatGeckoDesktop("1.9")}}</td> + <td>{{CompatUnknown}}</td> + <td>{{CompatUnknown}}</td> + <td>{{CompatUnknown}}</td> + </tr> + <tr> + <td>atribut <code>loop</code></td> + <td>{{CompatUnknown}}</td> + <td>{{CompatGeckoDesktop("1.9")}}</td> + <td>{{CompatUnknown}}</td> + <td>{{CompatUnknown}}</td> + <td>{{CompatUnknown}}</td> + </tr> + </tbody> +</table> +</div> + +<div id="compat-mobile"> +<table class="compat-table"> + <tbody> + <tr> + <th>Característica</th> + <th>Android</th> + <th>Firefox Mobile (Gecko)</th> + <th>IE Mobile</th> + <th>Opera Mobile</th> + <th>Safari Mobile</th> + </tr> + <tr> + <td>Suport bàsic</td> + <td>{{CompatUnknown}}</td> + <td>{{CompatGeckoMobile("1.0")}}</td> + <td>{{CompatUnknown}}</td> + <td>{{CompatUnknown}}</td> + <td>{{CompatUnknown}}</td> + </tr> + <tr> + <td>atribut <code>truespeed</code></td> + <td>{{CompatUnknown}}</td> + <td>{{CompatGeckoMobile("1.0")}}</td> + <td>{{CompatUnknown}}</td> + <td>{{CompatUnknown}}</td> + <td>{{CompatUnknown}}</td> + </tr> + <tr> + <td>atribut<code>h space/vspace</code></td> + <td>{{CompatUnknown}}</td> + <td>{{CompatGeckoMobile("1.0")}}</td> + <td>{{CompatUnknown}}</td> + <td>{{CompatUnknown}}</td> + <td>{{CompatUnknown}}</td> + </tr> + <tr> + <td>atribut <code>loop</code></td> + <td>{{CompatUnknown}}</td> + <td>{{CompatGeckoMobile("1.0")}}</td> + <td>{{CompatUnknown}}</td> + <td>{{CompatUnknown}}</td> + <td>{{CompatUnknown}}</td> + </tr> + </tbody> +</table> +</div> |
