Set YouTube Video as webpage background

Best WordPress Hosting

Do you ever think of adding a YouTube video as a background of your web page? Many of you think it as impossible. But Tubular is a nice jQuery plugin which allow users to set a video from YouTube as web page background. This requires javascript and Flash at the client’s browser. The script is totally dependent on the Flash and jQuery.

You will need to know the YouTube ID of the video you want to use as well as the container DIV of your web page.

How to use:

Attach the jQuery to your webpage.

Load swfobject.

Load the tubular plugin. tubular must be called AFTER the previous two calls.

Call tubular on your BODY tag with the YouTube ID and your content container DIV as parameters.

Demo Download

advertisement

About The Author

  • ADD YOUR COMMENT

Subscribe To Our Newsletter

Subscribe To Our Newsletter

Receive fresh web design resources and SEO tips in your email by our weekly newsletter

You have Successfully Subscribed!