mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-01 12:51:38 +01:00
429 lines
13 KiB
XML
429 lines
13 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision$ -->
|
|
<sect1 id="language.function.popup">
|
|
<title>popup</title>
|
|
<informaltable frame="all">
|
|
<tgroup cols="5">
|
|
<colspec colname="param" align="center" />
|
|
<colspec colname="type" align="center" />
|
|
<colspec colname="required" align="center" />
|
|
<colspec colname="default" align="center" />
|
|
<colspec colname="desc" />
|
|
<thead>
|
|
<row>
|
|
<entry>Nome Attributo</entry>
|
|
<entry>Tipo</entry>
|
|
<entry>Obbligatorio</entry>
|
|
<entry>Default</entry>
|
|
<entry>Descrizione</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry>text</entry>
|
|
<entry>stringa</entry>
|
|
<entry>sì</entry>
|
|
<entry><emphasis>nessuno</emphasis></entry>
|
|
<entry>testo o codice html da visualizzare nel popup</entry>
|
|
</row>
|
|
<row>
|
|
<entry>trigger</entry>
|
|
<entry>stringa</entry>
|
|
<entry>mo</entry>
|
|
<entry><emphasis>onMouseOver</emphasis></entry>
|
|
<entry>evento usato per attivare il popup. Può essere
|
|
onMouseOver oppure onClick</entry>
|
|
</row>
|
|
<row>
|
|
<entry>sticky</entry>
|
|
<entry>booleano</entry>
|
|
<entry>no</entry>
|
|
<entry><emphasis>false</emphasis></entry>
|
|
<entry>fa sì che il popup rimanga visibile fino a quando non viene chiuso</entry>
|
|
</row>
|
|
<row>
|
|
<entry>caption</entry>
|
|
<entry>stringa</entry>
|
|
<entry>no</entry>
|
|
<entry><emphasis>nessuno</emphasis></entry>
|
|
<entry>imposta il titolo del popup</entry>
|
|
</row>
|
|
<row>
|
|
<entry>fgcolor</entry>
|
|
<entry>stringa</entry>
|
|
<entry>no</entry>
|
|
<entry><emphasis>nessuno</emphasis></entry>
|
|
<entry>colore dell'interno del popup</entry>
|
|
</row>
|
|
<row>
|
|
<entry>bgcolor</entry>
|
|
<entry>stringa</entry>
|
|
<entry>no</entry>
|
|
<entry><emphasis>nessuno</emphasis></entry>
|
|
<entry>colore del bordo del popup</entry>
|
|
</row>
|
|
<row>
|
|
<entry>textcolor</entry>
|
|
<entry>stringa</entry>
|
|
<entry>no</entry>
|
|
<entry><emphasis>nessuno</emphasis></entry>
|
|
<entry>colore del testo del popup</entry>
|
|
</row>
|
|
<row>
|
|
<entry>capcolor</entry>
|
|
<entry>stringa</entry>
|
|
<entry>no</entry>
|
|
<entry><emphasis>nessuno</emphasis></entry>
|
|
<entry>colore del titolo del popup</entry>
|
|
</row>
|
|
<row>
|
|
<entry>closecolor</entry>
|
|
<entry>stringa</entry>
|
|
<entry>mo</entry>
|
|
<entry><emphasis>nessuno</emphasis></entry>
|
|
<entry>colore del link di chiusura</entry>
|
|
</row>
|
|
<row>
|
|
<entry>textfont</entry>
|
|
<entry>stringa</entry>
|
|
<entry>no</entry>
|
|
<entry><emphasis>nessuno</emphasis></entry>
|
|
<entry>carattere del testo</entry>
|
|
</row>
|
|
<row>
|
|
<entry>captionfont</entry>
|
|
<entry>stringa</entry>
|
|
<entry>no</entry>
|
|
<entry><emphasis>nessuno</emphasis></entry>
|
|
<entry>carattere del titolo</entry>
|
|
</row>
|
|
<row>
|
|
<entry>closefont</entry>
|
|
<entry>stringa</entry>
|
|
<entry>mo</entry>
|
|
<entry><emphasis>nessuno</emphasis></entry>
|
|
<entry>carattere del link di chiusura</entry>
|
|
</row>
|
|
<row>
|
|
<entry>textsize</entry>
|
|
<entry>stringa</entry>
|
|
<entry>no</entry>
|
|
<entry><emphasis>nessuno</emphasis></entry>
|
|
<entry>dimensione del carattere del testo</entry>
|
|
</row>
|
|
<row>
|
|
<entry>captionsize</entry>
|
|
<entry>stringa</entry>
|
|
<entry>no</entry>
|
|
<entry><emphasis>nessuno</emphasis></entry>
|
|
<entry>dimensione del carattere del titolo</entry>
|
|
</row>
|
|
<row>
|
|
<entry>closesize</entry>
|
|
<entry>stringa</entry>
|
|
<entry>no</entry>
|
|
<entry><emphasis>nessuno</emphasis></entry>
|
|
<entry>dimensione del carattere del link di chiusura</entry>
|
|
</row>
|
|
<row>
|
|
<entry>width</entry>
|
|
<entry>intero</entry>
|
|
<entry>no</entry>
|
|
<entry><emphasis>nessuno</emphasis></entry>
|
|
<entry>larghezza del box</entry>
|
|
</row>
|
|
<row>
|
|
<entry>height</entry>
|
|
<entry>intero</entry>
|
|
<entry>no</entry>
|
|
<entry><emphasis>nessuno</emphasis></entry>
|
|
<entry>altezza del box</entry>
|
|
</row>
|
|
<row>
|
|
<entry>left</entry>
|
|
<entry>boolean</entry>
|
|
<entry>No</entry>
|
|
<entry><emphasis>false</emphasis></entry>
|
|
<entry>posiziona il popup a sinistra del mouse</entry>
|
|
</row>
|
|
<row>
|
|
<entry>right</entry>
|
|
<entry>booleanp</entry>
|
|
<entry>no</entry>
|
|
<entry><emphasis>false</emphasis></entry>
|
|
<entry>posiziona il popup a destra del mouse</entry>
|
|
</row>
|
|
<row>
|
|
<entry>center</entry>
|
|
<entry>booleano</entry>
|
|
<entry>no</entry>
|
|
<entry><emphasis>false</emphasis></entry>
|
|
<entry>posiziona il popup centrato rispetto al mouse</entry>
|
|
</row>
|
|
<row>
|
|
<entry>above</entry>
|
|
<entry>booleano</entry>
|
|
<entry>no</entry>
|
|
<entry><emphasis>false</emphasis></entry>
|
|
<entry>posiziona il popup al di sopra del mouse. NOTA: possibile
|
|
solo se è stata impostata l'altezza</entry>
|
|
</row>
|
|
<row>
|
|
<entry>below</entry>
|
|
<entry>booleano</entry>
|
|
<entry>no</entry>
|
|
<entry><emphasis>false</emphasis></entry>
|
|
<entry>posiziona il popup al di sotto del mouse</entry>
|
|
</row>
|
|
<row>
|
|
<entry>border</entry>
|
|
<entry>intero</entry>
|
|
<entry>no</entry>
|
|
<entry><emphasis>nessuno</emphasis></entry>
|
|
<entry>rende il bordo del popup più grosso o più sottile</entry>
|
|
</row>
|
|
<row>
|
|
<entry>offsetx</entry>
|
|
<entry>intero</entry>
|
|
<entry>no</entry>
|
|
<entry><emphasis>nessuno</emphasis></entry>
|
|
<entry>distanza orizzontale del popup rispetto al mouse</entry>
|
|
</row>
|
|
<row>
|
|
<entry>offsety</entry>
|
|
<entry>intero</entry>
|
|
<entry>no</entry>
|
|
<entry><emphasis>nessuno</emphasis></entry>
|
|
<entry>distanza verticale del popup rispetto al mouse</entry>
|
|
</row>
|
|
<row>
|
|
<entry>fgbackground</entry>
|
|
<entry>url di un'immagine</entry>
|
|
<entry>no</entry>
|
|
<entry><emphasis>nessuno</emphasis></entry>
|
|
<entry>definisce un'immagine da usare invece del colore di
|
|
sfondo nel popup.</entry>
|
|
</row>
|
|
<row>
|
|
<entry>bgbackground</entry>
|
|
<entry>url di un'immagine</entry>
|
|
<entry>no</entry>
|
|
<entry><emphasis>nessuno</emphasis></entry>
|
|
<entry>definisce un'immagine da usare invece del colore per
|
|
il bordo del popup. NOTA: dovete impostare il bgcolor a "",
|
|
altrimenti il colore si vedrà comunque. NOTA: quando è
|
|
presente un link di chiusura, Netscape ridisegnerà le
|
|
celle della tabella, rendendo la visualizzazione
|
|
non corretta</entry>
|
|
</row>
|
|
<row>
|
|
<entry>closetext</entry>
|
|
<entry>stringa</entry>
|
|
<entry>no</entry>
|
|
<entry><emphasis>nessuno</emphasis></entry>
|
|
<entry>imposta un testo come link di chiusura invece di "Close"</entry>
|
|
</row>
|
|
<row>
|
|
<entry>noclose</entry>
|
|
<entry>booleano</entry>
|
|
<entry>no</entry>
|
|
<entry><emphasis>nessuno</emphasis></entry>
|
|
<entry>non mostra il link di chiusura sui popup "sticky"
|
|
con un titolo</entry>
|
|
</row>
|
|
<row>
|
|
<entry>status</entry>
|
|
<entry>stringa</entry>
|
|
<entry>no</entry>
|
|
<entry><emphasis>nessuno</emphasis></entry>
|
|
<entry>imposta il testo sulla barra di stato del browser</entry>
|
|
</row>
|
|
<row>
|
|
<entry>autostatus</entry>
|
|
<entry>booleano</entry>
|
|
<entry>no</entry>
|
|
<entry><emphasis>nessuno</emphasis></entry>
|
|
<entry>imposta il testo della barra di stato uguale a quello del popup.
|
|
NOTA: prevale sull'impostazione di status</entry>
|
|
</row>
|
|
<row>
|
|
<entry>autostatuscap</entry>
|
|
<entry>stringa</entry>
|
|
<entry>no</entry>
|
|
<entry><emphasis>nessuno</emphasis></entry>
|
|
<entry>imposta il testo della barra di stato uguale a quello del titolo.
|
|
NOTA: prevale sull'impostazione di status e autostatus</entry>
|
|
</row>
|
|
<row>
|
|
<entry>inarray</entry>
|
|
<entry>intero</entry>
|
|
<entry>no</entry>
|
|
<entry><emphasis>nessuno</emphasis></entry>
|
|
<entry>comunica ad overLib di leggere il testo da questo indice
|
|
dell'array ol_text, che si trova in overlib.js. Questo parametro
|
|
può essere usato al posto di text</entry>
|
|
</row>
|
|
<row>
|
|
<entry>caparray</entry>
|
|
<entry>intero</entry>
|
|
<entry>no</entry>
|
|
<entry><emphasis>nessuno</emphasis></entry>
|
|
<entry>comunica ad overLib di leggere il titolo da
|
|
questo indice nell'array ol_caps</entry>
|
|
</row>
|
|
<row>
|
|
<entry>capicon</entry>
|
|
<entry>url</entry>
|
|
<entry>no</entry>
|
|
<entry><emphasis>nessuno</emphasis></entry>
|
|
<entry>mostra l'immagine indicata prima del titolo</entry>
|
|
</row>
|
|
<row>
|
|
<entry>snapx</entry>
|
|
<entry>intero</entry>
|
|
<entry>no</entry>
|
|
<entry><emphasis>nessuno</emphasis></entry>
|
|
<entry>aggancia il popup ad una posizione in una griglia
|
|
orizzontale</entry>
|
|
</row>
|
|
<row>
|
|
<entry>snapy</entry>
|
|
<entry>intero</entry>
|
|
<entry>no</entry>
|
|
<entry><emphasis>nessuno</emphasis></entry>
|
|
<entry>aggancia il popup ad una posizione in una griglia
|
|
verticale</entry>
|
|
</row>
|
|
<row>
|
|
<entry>fixx</entry>
|
|
<entry>intero</entry>
|
|
<entry>no</entry>
|
|
<entry><emphasis>nessuno</emphasis></entry>
|
|
<entry>blocca la posizione orizzontale del popup. Nota:
|
|
prevale su qualsiasi altro posizionamento orizzontale</entry>
|
|
</row>
|
|
<row>
|
|
<entry>fixy</entry>
|
|
<entry>intero</entry>
|
|
<entry>no</entry>
|
|
<entry><emphasis>nessuno</emphasis></entry>
|
|
<entry>blocca la posizione verticale del popup. Nota:
|
|
prevale su qualsiasi altro posizionamento verticale</entry>
|
|
</row>
|
|
<row>
|
|
<entry>background</entry>
|
|
<entry>url</entry>
|
|
<entry>no</entry>
|
|
<entry><emphasis>nessuno</emphasis></entry>
|
|
<entry>imposta un'immagine da utilizzare al posto dello
|
|
sfondo della tabella</entry>
|
|
</row>
|
|
<row>
|
|
<entry>padx</entry>
|
|
<entry>intero,intero</entry>
|
|
<entry>no</entry>
|
|
<entry><emphasis>nessuno</emphasis></entry>
|
|
<entry>imposta un padding orizzontale sull'immagine di sfondo
|
|
per il testo. Nota: l'attributo richiede due valori</entry>
|
|
</row>
|
|
<row>
|
|
<entry>pady</entry>
|
|
<entry>intero,intero</entry>
|
|
<entry>no</entry>
|
|
<entry><emphasis>nessuno</emphasis></entry>
|
|
<entry>imposta un padding verticale sull'immagine di sfondo
|
|
per il testo. Nota: l'attributo richiede due valori</entry>
|
|
</row>
|
|
<row>
|
|
<entry>fullhtml</entry>
|
|
<entry>booleano</entry>
|
|
<entry>no</entry>
|
|
<entry><emphasis>nessuno</emphasis></entry>
|
|
<entry>consente di utilizzare codice html per l'immagine di sfondo.
|
|
Il codice html dovrà trovarsi nell'attributo text</entry>
|
|
</row>
|
|
<row>
|
|
<entry>frame</entry>
|
|
<entry>stringa</entry>
|
|
<entry>no</entry>
|
|
<entry><emphasis>nessuno</emphasis></entry>
|
|
<entry>controlla il popup in un altro frame. Vedere la documentazione
|
|
di overlib per maggiori informazioni su questa funzione</entry>
|
|
</row>
|
|
<row>
|
|
<entry>timeout</entry>
|
|
<entry>stringa</entry>
|
|
<entry>no</entry>
|
|
<entry><emphasis>nessuno</emphasis></entry>
|
|
<entry>chiama la funzione javascript specificata e prende il
|
|
valore restituito come testo da mostrare nel popup</entry>
|
|
</row>
|
|
<row>
|
|
<entry>delay</entry>
|
|
<entry>intero</entry>
|
|
<entry>no</entry>
|
|
<entry><emphasis>nessuno</emphasis></entry>
|
|
<entry>fa sì che il popup si comporti come un tooltip. Verrà
|
|
visualizzato solo dopo questo ritardo in millisecondi.</entry>
|
|
</row>
|
|
<row>
|
|
<entry>hauto</entry>
|
|
<entry>booleano</entry>
|
|
<entry>no</entry>
|
|
<entry><emphasis>nessuno</emphasis></entry>
|
|
<entry>determina automaticamente se il popup deve apparire a sinistra
|
|
o a destra del mouse.</entry>
|
|
</row>
|
|
<row>
|
|
<entry>vauto</entry>
|
|
<entry>booleano</entry>
|
|
<entry>no</entry>
|
|
<entry><emphasis>nessuno</emphasis></entry>
|
|
<entry>determina automaticamente se il popup deve
|
|
apparire sopra o sotto il mouse.</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</informaltable>
|
|
<para>
|
|
popup si usa per creare finestre popup javascript.
|
|
</para>
|
|
<example>
|
|
<title>popup</title>
|
|
<programlisting>
|
|
<![CDATA[
|
|
{* popup_init deve essere chiamata una volta in cima alla pagina *}
|
|
{popup_init src="/javascripts/overlib.js"}
|
|
|
|
{* crea un link con un popup che appare al passaggio del mouse *}
|
|
<a href="mypage.html" {popup text="This link takes you to my page!"}>mypage</a>
|
|
|
|
{* potete usare html, links, etc nel testo del popup *}
|
|
<a href="mypage.html" {popup sticky=true caption="mypage contents"
|
|
text="<ul><li>links</li><li>pages</li><li>images</li></ul>" snapx=10
|
|
snapy=10}>mypage</a>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</sect1>
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"../../../../manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|