Creating a Text Area
To make text area, Please you copy the code below:
<p align="center"> <textarea name="code" rows="6" cols="20"> Write the text or code you want here , then your posts will appear later in the text area < / textarea > < / p >
Description: rows = " 6 " , shows the height of the text area , so if you want the text area to high then please replace the number " 6 had a higher number value.
Cols = " 20 " , shows the width of the text area . If you want a wide text area then please replace the number " 20 " had a higher number value.
Highlight Text Area using
There are other variations of these make text area , namely text area using button highlights. with the key highlights This will make it easier for visitors to copy the whole text or the codes given , because with just a single tap it on the button highlights earlier , then the entire text or code in it will be in the highlights and live in the copy only . The facility is very useful when text or codes in the given role in very large quantity and this will reduce the risk tertinggalnya a text or code to be copied . To create a text area using highlights please your copy of this code HTML below:
<form <div> 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 " >save your writing here, then the text you write will appear here and ready to be copied by the visitors< / textarea > </p> </div> </form>
For example :
In order to better understand your code above, I will describe a little . The above code has two parts elements , namely elements of the code to create a button that reads Highlight All, and the second is the element code to make text area .
key element All highlights :
1. <div align="center"> - > words center shows that the position would be in the middle of the button , so if you want to position the switch is on the edge of the left , staying replace it with words left. And if you want to be on the edge of the right, staying replace it with words right.
2. <input onclick="javascript:this.form.txt.focus();this.form.txt.selec()"> - > This code means that when the highlight button is clicked , then the entire text is in it will be in highligt ( the mark or in block ) , so you do not alter this paper.
3. Value ="Highlight All" - > words Highlight All is a word which will appear in the button, so if you want to change this text please replace with the word you want.
Element text area :
1. <div align="center"> - > This shows that the text area will be in the middle , well if you want your text area located at the left edge , replace the word center with words left, whenever you want at the right edge , replace it with words right.
greate thanks
ReplyDelete