|
|
ΚΕΙΜΕΝΟ: Περιοχή κειμένου (TEXTAREA)
Στοιχείο μιας φόρμας μπορεί να είναι και μια περιοχή στην οποία μπορεί να εισαχθεί από τον χρήστη κείμενο. Η σύνταξη είναι:
<FORM ... >
<TEXTAREA παράμετροι >
αρχικό κείμενο
</TEXTAREA>
</FORM>
|
Οι βασικές παράμετροι της TEXTAREA είναι:
NAME="όνομα στοιχείου"
ROWS="αριθμός γραμμών παράθυρου"
COLS="αριθμός στηλών παράθυρου"
Δοκίμασε να πληκτρολογήσεις κείμενο στο παράθυρο που ακολουθεί . To κείμενο που μπορεί να δεχτεί δεν περιορίζεται από τις διαστάσεις του παράθυρου.
Έχει ενεργοποιηθεί με τις εντολές:
<form>
<textarea name="test" rows="3" cols="40">
εδώ γράφουμε το αρχικό κείμενο
</textarea>
</form>
Αναλυτικά οι παράμετροι της TEXTAREA
- 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.
-
- COLS=long
- Specifies how many characters wide the text area is.
- DISSABLED
- 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.
- ΝΑΜΕ=string [ απαραίτητη δήλωση]
- Καθορίζεται το αποκλειστικό όνομα του στοιχείου TEXTAREA.
- READONLY
- Causes the element's contents to be read only.
- ROWS=long
- Specifies the number of rows tall the textarea control should be.
- 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.
- WRAP=OFF ή PHYSICAL ή VIRTUAL
- Καθορίζει την αναδίπλωση του κειμένου μέσα στην περιοχή.
Αν WRAP=OFF τότε δεν γίνεται αναδίπλωση.
Αν WRAP=VIRTUAL τότε έχουμε αναδίπλωση του κειμένου.
Aν WRAP=PHYSICAL τότε το κείμενο εμφανίζεται μέσα στις φυσικές διαστάσεις της περιοχής.
- 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, onscroll, onselect, onselectstart.
Syntax Forms, March 2000
|