Show video from YouTube in your own website

To show a video from your website, first upload the video in YouTube.
After uploading the vidio add the following code in your website.


<object style="width: 360; height: 250; margin-top: auto; margin-bottom: auto; vertical-align: middle;">

<param name="movie" value="http://www.youtube.com/v/r-gDDUcaVqI&hl=en&fs=1>
</param>

<param name="allowFullScreen" value="true"> </param>

<embed src="http://www.youtube.com/v/r-gDDUcaVqI&hl=en&fs=1 type="application/x-shockwave-flash" allowfullscreen="true" width="360" height="250">
</embed>

</object>



In the param tag the value attribute holds the url of your video.
To change the display screen size simply change the width and height attribute
of the embed tag.

This is very simplet just copy and paste the code in your site and test it..

4 comments:

Anonymous February 14, 2009 at 4:28 AM  

Nice blog....very helpful....

Unknown February 14, 2009 at 8:30 PM  

thanks hillol...

Maksud February 17, 2009 at 7:42 AM  

Hope this help me... Thanks for the post.

Unknown February 17, 2009 at 7:19 PM  

if you will face any problem feel free to ask me...

Total Pageviews

Tags

Twitter Updates
    follow me on Twitter

    Followers