Pages

Wednesday, February 1, 2012

How to set youtube video as your page background

<



If you want to play your fav youtube video on your blog or your company's products video on your website's page background then what? Well there is a very nice way to do that. There's a plugin from JQUERY just to do that work for you.  It is called "TUBULAR".

It lets you play a youtube's video on your page's background just by writing a single line of javascript code. All you have to do is call 'tubular' on your <body>  tag by using the Youtube ID and your content container DIV as parameters.
code$(‘body’).tubular(‘someYTid’,'wrapper’);  
        Where  someYTid =youtube ID
           wrapper=your container div
To see a live demo click on the image below or just go this link    http://www.seanmccambridge.com/tubular/





No comments:

Post a Comment