Sabtu, 19 November 2011

How to Create Text Area

Text area? what is it? Text area is the area or place to store the text or writings by forming a new area. Usually this text area used to store the HTML code or other text to be copied by the visitors. Textarea no effect with html code, so that we can put html code without the first parse. There are 2 text area which I will explain here, the first is a text area with no button highlights and the text area to highlight button. with the highlight button will allow visitors to copy text that is inside the text area without blocking the text.
To create a text area, please copy the code below:

so the result is


Explanation:
Rows is the height of text area, you can change it to value that you want
Cols is the width of text area, change it to value that you want
To create a text area using Highlight, please copy the code below:
<div><form name="copy"><div align="center"><input onclick="javascript:this.form.txt.focus();this.form.txt.select();"
type="button" value="Highlight All"> </div><div align="center"></div><p
align="center"><textarea style="WIDTH: 300px; HEIGHT: 144px" name="txt"
rows="100" wrap="VIRTUAL" cols="55">Write your text that you want here, you can put html code here</textarea></p></div></form>

And the result is


Explanation:
You can change the blue code with value that you want, and the red code is the value of highlight element
source : http://trick-id.blogspot.com/2011/06/how-to-create-text-area.html

Tidak ada komentar:

Posting Komentar