|
|
SELECT: SELECT / OPTION
Για τη δημιουργία των στοιχείων "αναδιπλούμενη λίστα" και "λίστα πολλαπλών επιλογών" έγινε χρήση των εντολών SELECT / OPTION. Σ'αυτή τη σελίδα βλέπουμε περισσότερα για τη σύνταξη και τις παραμέτρους αυτών των εντολών .
Η σύνταξη είναι:
<FORM ... >
...
< SELECT παράμετροι>
< OPTION παράμετροι> επιλογή < /OPTION >
...
< /SELECT >
...
</FORM>
|
Παράμετροι της SELECT
- ACCESSKEY=string
- Specifies an accelerator for the element.
- ALLIGN=ABSBOTTOM ή ABSMIDDLE ή BASELINE ή BOTTOM ή LEFT ή MIDDLE ή RIGHT ή TEXTTOP ή TOP
- Specifies the alignment for the control-like element.
- DISABLED
- Used to disable an element.
- CLASS=string
- Specifies the class of the tag being defined. This is most often used to associated a sub-classed style sheet with the tag.
- ID=string
- An SGML identifier used as the target for hypertext links or for naming particular elements in associated style sheets. Valid names to script with are any alphanumeric string that begins with a letter. Valid special characters include underbar "_".
- LANG=string
- This specifies the language to use. The specifier is an ISO standard language abbreviation.
- LANGUAGE=JAVASCRIPT ή JSCRIPT ή VBS ή VBSCRIPT
- Specifies the language that the current script is written in. JavaScript is the default for this attribute.
- MULTIPLE
- Indicates that multiple items in the list can be selected.
- ΝΑΜΕ=string [ απαραίτητη δήλωση]
- Καθορίζεται το αποκλειστικό όνομα του στοιχείου SELECT.
- SIZE=variant
- Specifies the size of the control.
- STYLE=string
- Specifies an in-line style sheet for the tag.
- TABINDEX=integer
- Sets the tabindex for the object.
- TITLE=string
- The Title attribute is used to provide advisory information.
- event=script
- Can be one or more of these events:
onafterupdate, onbeforeupdate, onblur, onchange, onclick, ondblclick, ondragstart, onfocus, onhelp, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onresize, onrowenter, onrowexit,
onselectstart.
Παράμετροι της OPTION
- CLASS=string
- Specifies the class of the tag being defined. This is most often used to associated a sub-classed style sheet with the tag.
- ID=string
- An SGML identifier used as the target for hypertext links or for naming particular elements in associated style sheets. Valid names to script with are any alphanumeric string that begins with a letter. Valid special characters include underbar "_".
- LANGUAGE=JAVASCRIPT ή JSCRIPT ή VBS ή VBSCRIPT
- Specifies the language that the current script is written in. JavaScript is the default for this attribute.
- SELECTED
- Δήλωση προεπιλογής αυτού του στοιχείου της λίστας. Αν δεν υπάρχει αυτή η δήλωση τότε προεπιλεγμένο είναι το πρώτο στοιχείο της λίστας.
- TITLE=string
- The Title attribute is used to provide advisory information.
- VALUE=string
- For textual/numerical controls, specifies the default value of the control. For Boolean controls, specifies the value to be returned when the control is turned on
- event=script
- Can be one or more of these events:
onselectionchange, onselectstart.
Syntax Forms, March 2000
|