cialis online pharmacy generic xenical cheap cialis online cialis generic viagra online in canada buy cheap levitra online cialis without a perscription order viagra uk no prescription flagyl cheap generic levitra buying viagra in the uk cheap viagra approved cialis deltasone online buy viagra online without prescription non prescription cialis buy orlistat uk buy cialis in india prednisone 60 mg female viagra online buy viagra without prescription celebrex prescriptions buy cialis canada best prices viagra alternative to prednisone cheapest generic levitra levitra 5mg cheap viagra cialis on line buy xenical without prescription online accutane canadian health care prednisone no prescreption viagra online generic female viagra europe buy cialis low price cheap india viagra

Use YouTube Videos As Your Websites Background

If showcasing an animated background is what you’re looking to put in your website, you don’t have to limit your options to CSS or Flash. You can actually use a video from YouTube, all thanks to a clever little jQuery plugin called Tubular by Sean McCambridge. Some of you may have already known about this since it’s been around for quite a while.

Tubular is deployed on a web server to function and, needless to say, requires that JavaScript (and Flash player) is enabled on the client’s browser to work since it is dependent on jQuery and swfobject. All you’d need is the YouTube ID of the video you want to use and the content wrapper or DIV container ID on your web page.

To implement it into your site, you need to perform the following:

  • Insert the following code right before the </head?> tag in your template’s code.
<script type="text/javascript" charset="utf-8" src=""></script>
<script type="text/javascript" charset="utf-8" src=""></script>
<script type="text/javascript" charset="utf-8" src="js/jquery.tubular.js"></script>
<script type="text/javascript" charset="utf-8">
 $().ready(function() {
 $('body').tubular('someYTid','wrapper'); // where someYTid is the YouTube ID and wrapper is your containing DIV.

  • Replace the necessary values in the above code with the proper info or data (i.e. YouTube ID, div ID).
  • Save your file and you’re done!

You can find more detailed info, and even feel free to fork it over at GitHub.

Related Posts

Adding Instagram Badges to Your WordPress Profile

How to Create a Custom WordPress Registration Form with Flat UI

Making Your WordPress Widget Title Linkable With WP’s Plugin

10 Best Adobe Photoshop Free Alternatives