Tuesday, August 18, 2009

How to Add Text Box or Text Area in Blogger Post


There are times you need to add text into your Blogger post or sidebar. This may be welcome message, HTML/Javascript code that readers could copy, Terms and Condition that users can view. Moreover this could be "Link To This Site" code in Sidebar. To add Text Box or Text Area in Blogger Post or sidebar follow the instructions:
1.Editable Text Box
This textarea code allows user to input text:
<textarea rows="3" cols="10">
Your Text Here
</textarea>

Now let's explain the code. Here no of rows are used to modify text box height and cols are used to as text area width. If the lines  exceed the specified area then automatically a scroll bar will appear at the text area side to view all contents. Look at carefully, users can edit your text or write words here.  This is what readers will see:
This is text area. You can write here !!

2. Readonly Text Area:
Text Box may contain some information such as privacy policy which readers can view but can not edit the text. This is the readonly text area code:
<textarea rows="5" cols="20" name="Privacy Policy"  readonly="readonly">
Your text here
</textarea>


You use here "readonly" attribute such that readers can only view and copy. The attribute "name" indicates the text box name. You can write down here anything you like. I have just named it as "Privacy Policy" because I will show privacy policy in text box below:
Link To this site TextBox
To display code of link to your blog or site in sidebar, you need readonly textarea:
<textarea rows="5" cols="20" name="Link To Blog"  readonly="readonly">
Your HyperLink Code Here
</textarea>

0 comments:

Post a Comment

 

Easy Tutorial's | Copyright 2009 Tüm Haklar? Sakl?d?r | Blogger Templates by GoogleBoy