Showing posts with label blogger. Show all posts
Showing posts with label blogger. Show all posts

Saturday, December 3, 2011

Add Text Box and Text Area

|0 comments
There are times when you want to insert plain text into your Blog Post or template. This may be a piece of HTML code or JavaScript that you would like readers to copy, such as the “Link to Our Site” code in the sidebar. It could also be the Terms of a Legal Agreement that users can view. As we shall be discussing in our article on creating forms in Blogs, the text box can also be used in feedback forms for users to input feedback and comments.

The HTML code of the text box makes use of the <textarea> property. For the text box to be in a Blog Post, while drafting the Post, switch to “Edit HTML” mode to insert the following code. If it is to appear in the sidebar or other parts of the template, go to Template -> Page Elements -> Add a Page Element and select “HTML/JavaScript” to insert this code.


Users can input text

The textarea HTML code which allows users to input TEXT is this:-

<textarea rows="5" cols="40">
TEXT
</textarea>


The attribute cols indicates the number of visible columns and the rows shows the number of visible rows. Note that this simply sets the dimensions of the text box. The lines of text can exceed the specified area, and when that happens, there will be scrollbars at the sides to allow users to view all the contents. In the above code, users can input words and characters into the text area. There is no limit to the amount of text that can be inserted but browsers may have their own preset limits. This is what readers will see:-



Read only Textbox

If the text box contains terms and conditions or information, we can insert a <readonly> attribute into the textarea code. Readers can view the text but they cannot edit or amend it, or insert any input into the box. This is the HTML code:-

<textarea rows="2" cols="30" name="Famous Quotes" readonly="readonly">
“Asking a working writer what he thinks about critics is like asking a lamp-post how it feels about dogs.” ... Christopher Hampton
</textarea>


We changed the value of the rows and cols to give you an idea how big the boxes will be with these values. A name can be assigned to the textbox for scripting purposes. Here, we have set it to display a readonly text which users cannot edit, but can still select and copy, like this:-



Link to Site Text Box

To display a code for readers to link to your Blog, you can make use of the <readonly> attribute. Instead of text, insert the Hyperlink HTML code. The textarea code can be this:-

<textarea rows="4" cols="25" name="Link to Site" readonly="readonly">Hyperlink Code</textarea>


Textarea Word Wrap

This is perhaps more relevant when we apply the textarea code to forms. When the text reaches the end of a row, the words can be wrapped in these manners:-

"soft" wrap – text will wrap as the user types but line breaks are not included when the text is submitted in a form.

"hard" wrap – if users enter line breaks into the text, it will be shown in the submitted form.

wrap is "off" – this will put all the words in one line, without any line breaks or wrapping.

The default value is "soft" wrap.

<textarea rows="8" cols="30" wrap="hard">
TEXT
</textarea>

Friday, December 2, 2011

How To Embed Yahoo Media Player to Blogger

|0 comments
Yahoo Media Player is one of the easiest way to play audio files from your website or blog.It is very easy to embed into your site and only display when you click on the audio file name.Yahoo Media Player is not spend long time to load and someone can play all audio files of your website/blog using Play-list.
These are the main features of Yahoo Media Player:
  • Adds audio to your site with one line of HTML
  • Uses simple, easy-to-hack HTML instead of complicated proprietary markup, ushering in the REAL Media Web
  • Magical floating design never gets lost, is available when you need it, gets out of your way when you don't need it
  • Automatically finds all audio links on your page, turning your page into a playlist
  • Plays all your blog entries with a single button click
  • Allows you to put the play buttons where they belong: IN CONTEXT
  • Keeps the user in the page rather than sending them away to a media player
  • Picks up your images and adds them as cover art
  • Requires no download, install or maintenance
Yahoo Media Players
Follow these simple steps to embed Yahoo Media Player to your blog or website.
1.Login to your blogger dashboard--> Design - -> Edit HTML.
2.Scroll down to where you see </head> tag .
3.Copy below code and paste it just before the </head> tag .

<script type="text/javascript" src="http://mediaplayer.yahoo.com/js"></script>
4.Now save your template.
5.Go to Layout --> Page Elements.
6.Click on 'Add a Gadget'.
7.Select 'HTML/Javascript' and add the code given below (You can also add this code into Edit Html section of your Post Editor.

<a href="DIRECT_URL_OF_YOUR_MP3-FILE">Name_Of_the_Mp3_File</a>
Note:
Replace "DIRECT_URL_OF_YOUR_MP3-FILE" with your .mp3 file direct url.
Replace "Name_Of_the_Mp3_File" with any name you like.
Look at the example given below:
<a href="http://mediaplayer.yahoo.com/example1.mp3">First link</a>
You can see more info about Yahoo Media Player from here :
http://mediaplayer.yahoo.com/
.

Site Info

IP

free counters

Google Translate

English French German Spain Italian Dutch

Russian Portuguese Japanese Korean Arabic Chinese Simplified

Enter your email address: