Skip to main content

How to Make YouTube Video As Blogger Background

Usually bloggers just try to be creative and try something new  that can gain more visitors or readers, so here comes another way to make any YouTube video as your blogger blog's main background image. Well thanks tubular jQuery effect we are able to do this in free blogging platform.


It sounds good and attractive but still has three major issues, the first is that video's cannot be silenced up, so if the video has any kind of inbuilt audio then you do not have any option to make it silent, the second one is that if the video has any ads rendering then it will even show up on your blog too and the third is obviously this effect will load up the video so it will take some extra loading time of your blog so if your blog is already very slow and full of widgets then you should not use this effect. But obviously at some occasions this effect will look awesome and will surely add a nice attribute to your blog.
  1. Open Blogger > Template > Edit HTML.
  2. Press Ctrl + F & search for </head> tag & paste below code above it.<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js' type='text/javascript'/><script type='text/javascript'>//<![CDATA[
    function onYouTubePlayerReady(e){ytplayer=document.getElementById("myytplayer");ytplayer.setPlaybackQuality("medium");ytplayer.mute()}function resizePlayer(){var e=jQuery(window).width();var t=jQuery(window).height();jQuery("#yt-container, #video-cover").width(e).height(t);if(t>e/videoRatio){e=t*videoRatio}jQuery("#myytplayer").width(e).height(e/videoRatio)}var videoWidth=853;var videoRatio=16/9;var defaultDiv="wrapper-video";jQuery.fn.tubular=function(e,n){n=typeof n==undefined?"wrapper-video":n;t=setTimeout("resizePlayer()",1e3);jQuery("html,body").css("height","100%");jQuery("body").prepend('<div id="yt-container" style="overflow: hidden; position: fixed; z-index: 1;"><div id="ytapiplayer">You need Flash player 8+ and JavaScript enabled to view this video.</div></div><div id="video-cover" style="position: fixed; width: 100%; height: 100%; z-index: 2;"></div>');jQuery("#"+n).css({position:"relative","z-index":99});var r=0;var i=0;var s=0;var o=videoWidth/videoRatio;var u;var a='<iframe id="myytplayer" width="'+videoWidth+'" height="'+o+'" src="http://www.youtube.com/embed/'+e+"?autoplay=1&controls=0&modestbranding=1&showinfo=0&hd=1&iv_load_policy=3&version=3&wmode=transparent&loop=1&playlist="+e+'" frameborder="0" allowfullscreen></iframe>';jQuery("#ytapiplayer").html(a);jQuery(window).resize(function(){resizePlayer()});return this};$().ready(function(){$("body").tubular("61BLn00AN_w","wrapper-video")})//]]></script>
  3. Now again search for <body> or <body expr:class='&quot;loading&quot;+ data:blog.mobileClass'> tag & add below code below it.<div id='wrapper-video'>
  4. Now once again search for </body> tag & add below code above it.</div>
  5. Now your codes are placed, now its time to change the video to your personal one, just change the video ID in blue color in first code with your ID.
  6. You can find your YouTube video ID on every video URL like above.
  7. So just replace it and hit Save Template, that's it now your codes are placed and its time to check if this thing is working or not.
So now hopefully this trick will work and you will have that awesome video background for your blogger blog. You can also visit helplogger about this how to's.

Comments

Popular posts from this blog

9 Free & Open Source Forum Software Solutions

Forums can be a great way to encourage audience participation, and to change a website from a one dimensional entity into a full fledged community. There are a number of well developed open source forums out there on the web to help you create that, each with their own benefits. This review breaks down some of the best software out there in 2011 with a focus on everything from lightweight forum solutions to the all singing, all dancing heavyweights. Vanilla URL: http://vanillaforums.org/ Features URL: http://vanillaforums.org/features/embed-vanilla License: GPL Runs on: PHP / MySQL / Postgres Vanilla has always prided itself on clean underlying code, bringing together web standards, code reuse and css to create a product that kicks lumps out of 1990′s bulletin software that we’ve become accustomed to on the web. With many of the forum software solutions out there on the web carrying a technical burden of tables and bloatware, Vanilla brings with it a fresh approac...

How to Enable Hidden Options in Windows’ Disk Cleanup Tool

How to Enable Hidden Options in Windows’ Disk Cleanup Tool The  Disk Cleanup tool  has been around in Windows for years. It offers a quick way to remove temporary, cache, and other non-essential files to help you free up some disk space. You can even use it to remove  old versions of Windows  after an upgrade to Windows 10. Disk Cleanup also has several hidden options that you can only access if you run it from the Command Prompt or a custom shortcut. Start by opening the Command Prompt with administrative privileges. Press Windows+X and choose “Command Prompt (Admin)” from the list of commands. At the Command Prompt, type the following command and then press Enter. cleanmgr /sageset:65535 /sagerun:65535 Note that where this command uses the number  65535 , you can actually use any number between  1  and  65535  as long as you use the same number in both places. The reason for this is that the  cleanmgr  command offer...

50 Amazing PC Hacks Which You Don’t Know

Today I am going to share  50 Amazing PC Hacks & Tips  which will make you Pro users  of your  windows 7, 8, 8.1, 10   Laptop or PC ,  these  amazing hacks  will help you in your daily tech lifestyle , I hope you don’t even heard of these kind of  50 secrete PC hacks at any social media platform , so let’s begin with  Amazing PC tricks  50 Amazing PC Hacks  #1 How To Access Your Folder As a Drive Go to start> run> cmd In command prompt, Type:  subst Z: D:\folder then hit Enter… You can replace Z: with your desired New Drive Letter (Except existing Drive letters) You can replace D:\folder with the path of your favorite folder Now, Type: exit This will creates a new drive & When you open this , it will open your folder. NOTE: On Restart the Virtual Drive Disappears . #2 How To Create Folder And Files With No Name This Hacks will allow...