Wednesday, September 22, 2010

Tutorial


How to put a YouTube video on your website.

Embedding a video on your web page becomes as easy as cutting and pasting. Plus with YouTube it’s free, they provide the service, and they also provide the bandwidth. So the video is hosted on their servers and uses their bandwidth! Hard to beat a deal like that!

  • ·      Go to YouTube.com
  • ·      Find the video that you want on your website.
  • ·      When you’ve located the video you’d like to add to your page on YouTube, look below the video for an <Embed> link as shown below.


  • ·      When you click the Embed link, the HTML code used to embed that video is displayed directly below it.


  • ·      By clicking your mouse within the new embed code (in the form field), all the text in that field is highlighted.
  • ·      You then right mouse click in that field, and select Copy from your browser's drop down that will appear when you right click in the field.

The code should look like this
<object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/ARpzavb7PQk?fs=1&amp;hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/ARpzavb7PQk?fs=1&amp;hl=en_US" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object>
  •  Then, open the source code of your web page. 
  • Paste it into your page (either right click again where you want it, and select Paste, or place the mouse cursor  where you want it, and hit Control and V on your keyboard at the same time.
  •    The embed code will be thusly deposited into your web page.
  •    Save the page, upload it to your web server using an FTP client, and view it in your browser!

No comments:

Post a Comment