Tuesday, 25 December 2012

GoDaddy Promo Codes : 76% Off On .COM

GoDaddy is back with a superb discount on .COM domains. Get 76% Off on .COM Domains which means you get a .COM for just $2.95 (Rs 162.99). So don't waste your time and score a .COM. You can get a .COM For Rs 162.99 by clicking here. Merry Christmas!!!

Why Choose GoDaddy? :

Go Daddy offers everything you need to make a name for yourself on the Web, from domain names and website builders to complete eCommerce solutions. GoDaddy earned their place as the world's #1 ICANN-accredited domain registrar by delivering world-class products at competitive prices and supporting them with industry-best service, delivered 24/7/365. GoDaddy is proud to serve our customers from locations around the world, including Arizona, Iowa, California, Colorado, Washington, D.C., India, Singapore, and The Netherlands.

So go and get a .COM for $2.95 only by clicking here.

Monday, 24 December 2012

3 In 1 Like Box Widget For Blogger - Version 5.0

Previous Versions : Version 1.0 | Version 2.0 | Version 3.0 | Version 4.0

So here is last pop-up social subscribing widget of the year. It's awesome and better than all previous widgets and you can also set appear time and other features of this widget. Happy Holidays.

You can generate this widget using our widget generator :

BigRock Promo Codes : .ASIA Domain @ Rs 99

BigRock is back with another superb discount on .ASIA domains. Get a Free Website with every .ASIA domain. Includes Web and Email Hosting for 6 months @ Rs. 99 only!!! So don't waste your time and score a .ASIA. You can get a .ASIA For Rs 99 by clicking here.

Why Choose BigRock? :

BigRock is an ICANN-Accredited Domain Name Registrar that sells Domain names at the most competitive rates in the industry. BigRock's platform powers over 6 million domains. At BigRock they have a seamless domain search process and our cheap domain registration prices are upto 80% lesser than other Registrars. Bigrock is India #1 domain registration and web hosting provider. On BigRock you can register domain names in many different name spaces including .com, .net, .org, .biz, .info, .mobi, .in, .co.in, .co.uk, .asia and many other spaces. Additionally they offer 24X7 support for all your domain registration and web hosting services. So if you are looking for Domain Registration in India look no further. BigRock is the destination for you!.

So go and get a .ASIA for Rs 99 only by clicking here.

Note : This is a limited time offer only but if this offers expires then you can always get 10% discount on domains by clicking here.

Saturday, 22 December 2012

Top 10 Google Search Trends Of 2012

It's December and 2012 has come to an end. So i wanted to post top 10 Google Search Trends/Terms. You can get all latest Google Trends of 2012 on Zeitgeist 2012.

Here are top ten terms of 2012 in all categories:


  1. Whitney Houston
  2. Gangnam Style
  3. Hurricane Sandy
  4. iPad 3
  5. Diablo 3
  6. Kate Middleton
  7. Olympics 2012
  8. Amanda Todd
  9. Michael Clarke Duncan
  10. BBB12


  1. One Direction
  2. Selena Gomez
  3. iPhone 5
  4. Megan Fox
  5. Rihanna
  6. Justin Bieber
  7. Harry Styles
  8. Minecraft
  9. Nicki Minaj
  10. Katy Perry


  1. Jeremy Lin
  2. Michael Phelps
  3. Peyton Manning
  4. McKayla Maroney
  5. Junior Seau
  6. Sarah Burke
  7. Tom Daley
  8. Lance Armstrong
  9. Mario Balotelli
  10. Ryan Lochte


  1. Hurricane Sandy
  2. Kate Middleton Pictures Released
  3. Olympics 2012
  4. SOPA Debate
  5. Costa Concordia crash
  6. Presidential Debate
  7. Stratosphere Jump
  8. Penn State Scandal
  9. Trayvon Martin shooting
  10. Pussy Riots


  1. Whitney Houston
  2. Kate Middleton
  3. Amanda Todd
  4. Michael Clarke Duncan
  5. One Direction
  6. Felix Baumgartner
  7. Jeremy Lin
  8. Morgan Freeman
  9. Joseph Kony
  10. Donna Summer

Feature Films

  1. The Hunger Games
  2. Skyfall
  3. Prometheus
  4. The Avengers
  5. Magic Mike
  6. John Carter
  7. Ek Tha Tiger
  8. Paranormal Activity 4
  9. Taken 2
  10. Dark Shadows

TV Shows

  1. BBB12
  2. Avenida Brasil
  3. Here Comes Honey Boo Boo
  4. The Voice
  5. American Idol
  6. Game of Thrones
  7. Homeland
  8. Revenge
  9. Cheias de Charme
  10. Carrossel

Performing Artists

  1. Whitney Houston
  2. Michael Clarke Duncan
  3. One Direction
  4. Donna Summer
  5. Lana Del Rey
  6. Carolina Dieckmann
  7. Dirk Bach
  8. Carly Rae Jepsen
  9. Michel Telo
  10. LMFAO

Consumer Electronics

  1. iPad 3
  2. Samsung Galaxy S3
  3. iPad Mini
  4. Nexus 7
  5. Galaxy Note 2
  6. Play Station
  7. iPad 4
  8. Microsoft Surface
  9. Kindle Fire
  10. Nokia Lumia 920


  1. Southwest Airlines
  2. United Airlines
  3. American Airlines
  4. Delta Airlines
  5. Air France
  6. Lufthansa
  7. British Airways
  8. JetBlue
  9. Air Canada
  10. US Airways

Google+ Hashtags

  1. #SOPA
  2. #Awesome
  3. #Sandy
  4. #IO12
  5. #Curiosity
  6. #Olympics
  7. #SXSW
  8. #Debate
  9. #BlastFromThePast
  10. #Eastwooding


  1. Gangnam Style
  2. Somebody That I Used to Know by Walk off the Earth
  3. KONY 2012
  4. Call Me Maybe featuring Justin Bieber
  5. Obama vs. Romney Epic Rap Battles of History
  6. A Dramatic Suprise on a Quiet Square
  7. Why You Asking All Them Questions?
  8. Crystallize by Lindsey Stirling
  9. Facebook Parenting: For the Troubled Teen
  10. Felix Baumgartner's Supersonic Free

Facebook Introduces Two New Features

Facebook has announced two new features and in my opinion these are one of the best features of the year. It's Christmas time and i guess this is a Christmas gift for us. Now let's talk above these two new features.

Multiple Photos On Status

Now you can upload more than one pic on your Facebook status. If you want  to post your tour, favorite celebs and more than now you can upload them on one single status instead of creating an album.

As you can see in above picture that i have uploaded two pictures in one status (And also that I'am a WWE Fan) and you can upload more photos in it. Just click on that + sign and upload more. After posting your status your pictures will look something like:

Now as you can see in above picture my profile pic is a Black Dot and let me tell you why. In Delhi last Sunday a girl was rapped and all Indians are demanding justice and security for her and for other girls by changing their profile pic to a Black Dot.

Privacy Shortcuts

Also Facebook has a new privacy shortcut option in it's menu. Where you can control "Who can see my stuff?" , "Who can contact me?" and "How do i stop someone from bothering me?" . You can control all your privacy under this option.

That's it for now and hopefully i except that Facebook will launch more new features in 2013 and also i wish you a very Happy Holidays!!

Friday, 21 December 2012

Facebook Events Widget For Blogger

Facebook event is a really good way to remind your fans and friends of some important events of your life and Facebook has bunch of useful plugins/widgets for websites and blog but still there is no events widget yet. Thanks to BandRx now you can also embed your upcoming events on your blog or website. It's simple you can generate your widget code at BandRx or you can also use by our tutorial.

<iframe src="http://www.bandrx.com/facebook/events.php?theme=zuck&page=PAGEUSERNAME&bgcolor=ffffff&textcolor=000000&linkcolor=555555&max=5" width="320" height="520" frameborder="no" scrolling="auto"></iframe>

Just replace red text in above code with your Facebook page username and it's done...now i hope you guys know how to add this widget to your blogger. You can also use this plugin on wordpress and all html sites.

Thursday, 20 December 2012

Styling Blogger Static Pages

In some points Static pages should look different than all other posts of our blog. We all use static pages for our forms, forums and all other stuff. They all need a big space and in this tutorial i'll tell you how to apply custom style on your blogger static pages. First make sure you have some basic css and html knowledge:

  • Go To Blogger > Template > Edit HTML 
  • Search for <body>
  • Copy the code below and paste it right after <body>:

<!-- Static page styling Start-->
<b:if cond='data:blog.pageType == &quot;static_page&quot;'>
.blog-pager, .footer, .post-footer, .feed-links, .sidebar, #rsidebar { display:none !important;}
#main-wrapper {width: 95%; float:none; margin: 0 auto !important;}
<!-- http://www.bwidgets.com -->
<!-- Static page styling End -->

Now between <style> ... < /style> add id or class of thing that you want to hide on your static pages.

You can also add background color, and so many things to style your static pages....If you're having any problems then please leave a comment.

Wednesday, 19 December 2012

How To Customize Google Drive Form

First of all this article is from Immersion Media. It's a very useful article and don't forget to visit their site. Before trying this you need some basic html and css knowledge so first get some lessons then come here.

If you're wondering how to create forms using Google Drive/Docs then you can learn it by clicking here.

Now let's get to our topic. It's very useful and i hope you'll use it in good way.

After creating your form visit your form and Right click on page and select view source from menu. Copy form code by selecting everything between the <form>…</form>tags. See example below. You can also include the JavaScript at the end. This will be the form field validation.

Paste code in a new page/document.

This step is optional, but since you’ve taken the time to stylizing your form, you might as well create a nice confirmation page. After creating a confirmation page, replace the <form> tag of your form page and replace it with the JavaScript listed below.

Find and Replace this:

<form action="YOUR-GOOGLE-SPREADSHEET-LINK" method="POST">

With this:

<script type="text/javascript">var submitted=false;</script>
<iframe name="hidden_iframe" id="hidden_iframe"
style="display:none;" onload="if(submitted)
<form action="YOUR-GOOGLE-SPREADSHEET-LINK" method="post"
target="hidden_iframe" onsubmit="submitted=true;">

Even though the form is no longer hosted on Google, form submissions will continue to be posted to your Google Drive/Docs account.  Hope this will help you.....

Tuesday, 18 December 2012

20 CSS3 Examples And Tutorials

Showing Only Post Titles On Blogger

If you own a news website or a website where you post so many times in a day with lots of text and sometimes short posts then you probably need to show only post tiles on your homepage instead of whole content or some thumbnails.

This trick is very useful because sometimes you may post very little posts like "Someone Returns Tonight" and instead of checking the post your viewers can know who returned in the short version in homepage like "Vampire returned at last night's Halloween party....Read More."

You don't wanna spoil that i mean you ruined Vampire's return because of your creepy blog. So now it's time to go practical...

  • Go To Blogger > Template > Mark 'Expand Widgets Templates'
  • Now find:

<b:include data='post' name='post'/>

  • Now replace above code with following:

 <!--Post Titles Only Trick-->
<b:if cond='data:blog.pageType == &quot;index&quot;'>
<h3 class='title-only'><a expr:href='data:post.url'><data:post.title/></a></h3>
<b:include data='post' name='post'/>

OK so after this your blog's post widget will look something like this:

Well you saved Vampire's return but your blog's post widget will look a bit ugly after this so now it's time to add some css.

  • Go To Blogger > Template
  • Search for ]]></b:skin> and just above it post following css:

/* -- Homepage Title Styling -- */
background: whiteSmoke;
padding: 10px;
color: black;
margin: 0;
border-bottom: dotted 2px;
.title-only:hover {
background: white;

Save your template and after doing all this your blog's post widget will look something like this:

That's It...For any help or if you want to nominate me for president then leave your responses in the comment section below..... :)

Monday, 10 December 2012

5 Amazing Search Boxes For Blogger

First of all if you want to download these search boxes for your website or if you want to see the demo then please visit this page.

Here are some fresh new search boxes for blogger and it's also easy to add these boxes.

  • Go To Blogger > Template > Edit HTML
  • Search for ]]></b:skin> and just above it paste following css:

/*-----Search One Starts-----*/
font-family: cursive;

form.search1 {
background: url(http://3.bp.blogspot.com/-qV4MBYkvlaI/UMYAwtvAtvI/AAAAAAAASdA/61V-ALXRcOg/s1600/1.png);
width: 320px;
height: 38px;
.text1 {
background: transparent;
width: 275px;
height: 38px;
border: 0px;
outline: 0px;
padding: 5px;
font-size: 20px;
.submit1 {
background: transparent;
border: 0px;
height: 38px;
position: relative;
width: 41px;
top: -12;
cursor: pointer;
/*-----Search One Ends-----*/
/*-----Search Two Starts-----*/
form.search2 {
background: url(http://4.bp.blogspot.com/-p2Raz0jXZK0/UMYAyIKgZgI/AAAAAAAASdI/sagqliIpAoE/s1600/2.png);
width: 320px;
height: 38px;
.text2 {
background: transparent;
width: 270px;
height: 38px;
border: 0px;
outline: 0px;
padding: 5px;
font-size: 20px;
.submit2 {
background: transparent;
border: 0px;
height: 38px;
position: relative;
width: 45px;
top: -12;
cursor: pointer;
/*-----Search Two Ends-----*/
/*-----Search Three Starts-----*/
form.search3 {
background: url(http://1.bp.blogspot.com/-QCgisy1nsC4/UMYAy7xup_I/AAAAAAAASdM/abWQYHcGSNg/s1600/3.png);
width: 320px;
height: 38px;
.text3 {
background: transparent;
width: 260px;
height: 38px;
border: 0px;
outline: 0px;
padding: 5px;
font-size: 20px;
.submit3 {
background: transparent;
border: 0px;
height: 38px;
position: relative;
width: 50px;
top: -12;
cursor: pointer;
left: 5px;
/*-----Search Three Ends-----*/

/*-----Search Four Starts-----*/
form.search4 {
background: url(http://2.bp.blogspot.com/-onxhkH3XTFA/UMYAzlJ218I/AAAAAAAASdU/OpqYBb89LtM/s1600/4.png);
width: 334px;
height: 49px;
.text4 {
background: transparent;
width: 290px;
height: 38px;
border: 0px;
outline: 0px;
padding: 10px 0 0 10px;
font-size: 20px;
.submit4 {
background: transparent;
border: 0px;
height: 38px;
position: relative;
width: 40px;
top: -12;
cursor: pointer;
/*-----Search Four Ends-----*/

/*-----Search Five Starts-----*/
form.search5 {
background: url(http://2.bp.blogspot.com/-q831rXqPvRI/UMYA0QSauoI/AAAAAAAASdc/VSZ_cib_Uf0/s1600/5.png);
width: 320px;
height: 32px;
.text5 {
background: transparent;
width: 290px;
height: 32px;
border: 0px;
outline: 0px;
padding: 10px;
font-size: 15px;
border-radius: 18px 0 0 20px;
-webkit-border-radius: 18px 0 0 20px;
-moz-border-radius: 18px 0 0 20px;
-o-border-radius: 18px 0 0 20px;
.submit5 {
background: transparent;
border: 0px;
height: 23px;
position: relative;
width: 25px;
top: -5px;
left: -3px;
cursor: pointer;
border-radius: 100%;
-webkit-border-radius: 100%;
-moz-border-radius: 100%;
-o-border-radius: 100%;

  • Go To Blogger > Layout > Add A Widget > HTML/JavaScript > And paste following code: 

<form class="search1" action="/search" style="method="get">
<input class="text1" type="text" name="q" value="Search Here" onclick="value=''" />
<input class="submit1" type="submit" value="" />

Now replace search1, text1 and submit1 one with your preferred search box. For example if you want 3rd search box then make this code like this:

<form class="search2" action="/search" style="method="get">
<input class="text2" type="text" name="q" value="Search Here" onclick="value=''" />
<input class="submit2" type="submit" value="" />
You can view all five designs and demo of this searchbox at this link.

Monday, 3 December 2012

Pledge To Support A Free And Open Internet

So today here at BWidgets.com this post is not about any Blogger widgets or tutorials but today we're requesting your support for a free and open internet.

Join Google and billions of peoples around the world and pledge your support for a free and open internet.

Here is a short quote from #freeandopen project:

The Internet has connected more than two billion people around the world. Some governments want to use a closed-door meeting in December to increase censorship and regulate the Internet. Join together to keep the Internet free and open.

You can add your voice and get more info about this at google.com/takeaction.

A free and open world depends on a free and open Internet. Governments alone, working behind closed doors, should not direct its future. The billions of people around the globe who use the Internet should have a voice. 

Wednesday, 28 November 2012

How To Setup Custom Domain On Blogger

Congratulations, You're reading this article probably because you bought a new domain for your blog. Using a custom domain is the best investment you can do. So in this tutorial we'll explain how to setup your custom domain on blogger.

Go To Blogger > Settings > Publishing > Click on Add a custom domain

Click on Switch to advanced settings

Now click on settings instructions

Now choose your domain type. We will use top-level domain

Now after above step this below part will appear...now you have to copy highlighted part from it. Please note that these two codes are different for every blog. So grab your own code from that page.

Now go to your domain provider (for example BigRock). And locate your DNS (Domain Name System) settings. Now choose CNAME records.

Add two CNAME records. In Host, Label or Name enter www and in Destination, Target or Points enter ghs.google.com just like showns below:

In second CNAME enter first yellow code as Host Name and second long yellow code as Destination, Target or Points.

Now again Go To Blogger > Settings > Publishing > Click on Add a custom domain > Click on Switch to advanced settings > Enter your domain and click on save.

It's done....After this we will setup A-Records for Naked Domain Redirection (Using your domain without www. )

Monday, 26 November 2012

CSS3 Credit Card Form

Earlier today i found this amazing CSS3 Credit Card Form. This form has been developed purely in CSS3 and does not include any images. In this article i'am sharing one Visa style form with you but there are more credit card forms and they all can be found here.

Let's get started with HTML:

<section class="credit-card visa gr-visa">
<div class="logo">Visa</div>
<h2>Payment Details</h2>
<ul class="inputs">
<label>Card Number</label>
<input type="text" name="card_number" pattern="[0-9]{13,16}" value="9842 9472 9457 9472" onclick="value=''" class="full gr-input" required />
<li class="expire last">
<input type="text" name="expire_month" value="December (12)" onclick="value=''" size="10" class="month gr-input" required />
<input type="text" name="expire_year" value="2014" onclick="value=''" size="10" class="year gr-input" required />
<div class="clearfix"></div>
<li class="cvc-code last">
<label>CVC Code</label>
<input type="text" name="cvc_code" value="174" onclick="value=''" size="10" class="gr-input" required />
<div class="clearfix"></div>
<div class="watermark">Visa</div>

After adding our html we'll add CSS coding:

/* === Basic reset === */
* { margin: 0; padding: 0; outline: none; box-sizing:border-box; }
a>img { border: none; }
header, footer, article, section, nav, aside { display: block; }
/* === General === */
body {
    font-size: 14px;
.clearfix {
/* === Credit Card === */
.credit-card {
    width:93.75%;   /* This is 300px on 320px wide screen */
    max-width:500px;    /* Just to make sure that it doesnt get crazy on bg screens */
    min-width:300px;    /* And make sure that it contains at least some size */
    margin:30px auto;
.credit-card .inputs {
.credit-card .inputs li {
.credit-card .inputs li.last {
.credit-card .inputs li.expire {
.credit-card .inputs li.expire input{
.credit-card .inputs li.expire input.month{
.credit-card .inputs li.cvc-code {
.credit-card .inputs li.cvc-code input {
.credit-card .watermark {
.credit-card form {
.credit-card .logo {
/* === Visa === */
.visa {
    box-shadow: 0px 0px 4px rgba(0,0,0,0.8), inset 0px 1px 3px rgba(255,255,255,0.3), inset 0px 0px 2px rgba(255,255,255,0.2);
.visa h2 {
    text-shadow:1px 1px 2px rgba(17,121,173,0.8);
.visa .logo {
    text-shadow:0px 0px 3px rgba(17,123,173,0.9);
.visa .logo:after {
    content:' ';
    width: 0;
    height: 0;
    border-top: 10px solid orange;
    border-left: 10px solid transparent;
.visa .watermark {
/* === Forms === */
label {
    text-shadow:0px 1px 2px rgba(17,123,173,0.6);
input {
    padding:12px 10px;
    text-shadow:1px  1px 1px #fff;
    border:1px solid rgba(16,103,133,0.6);
    box-shadow:0px 0px 3px rgba(255,255,255,0.5), inset 0px 1px 4px rgba(0,0,0,0.2);
input.full {

/* === Gradients === */
.gr-visa {
    background: #1db1cf; /* Old browsers */
    background: -moz-linear-gradient(top,  #1db1cf 0%, #1078ab 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#1db1cf), color-stop(100%,#1078ab)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  #1db1cf 0%,#1078ab 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  #1db1cf 0%,#1078ab 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  #1db1cf 0%,#1078ab 100%); /* IE10+ */
    background: linear-gradient(to bottom,  #1db1cf 0%,#1078ab 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#1db1cf', endColorstr='#1078ab',GradientType=0 ); /* IE6-9 */
.gr-input {
    background: #d3d3d3; /* Old browsers */
    background: -moz-linear-gradient(top,  #d3d3d3 0%, #d9d9d9 38%, #e5e5e5 82%, #e7e7e7 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#d3d3d3), color-stop(38%,#d9d9d9), color-stop(82%,#e5e5e5), color-stop(100%,#e7e7e7)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  #d3d3d3 0%,#d9d9d9 38%,#e5e5e5 82%,#e7e7e7 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  #d3d3d3 0%,#d9d9d9 38%,#e5e5e5 82%,#e7e7e7 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  #d3d3d3 0%,#d9d9d9 38%,#e5e5e5 82%,#e7e7e7 100%); /* IE10+ */
    background: linear-gradient(to bottom,  #d3d3d3 0%,#d9d9d9 38%,#e5e5e5 82%,#e7e7e7 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#d3d3d3', endColorstr='#e7e7e7',GradientType=0 ); /* IE6-9 */

That's It....Don't forget to leave a comment!!!

Saturday, 24 November 2012

Resizing Web Page Elements With CSS3

Just a simple trick I wanted to show you guys. You can resize web elements with the CSS3 property resize: both. For images make sure it has width and height set to 100%.

Here is an example for you. First let's start with basic markup:

<div class="post">
BWidgets: Visit BWidgets.com for more!
Try resizing me or my media friend below.
<div class="post photo">
<img src="http://2.bp.blogspot.com/-LFU-85rj1jo/UHgF7RJNEbI/AAAAAAAAPLg/dmyZ0i7L5GA/s1600/Google+++Style+Subscription+Box+Widget+For+Blogger.jpg">

Now we'll put our CSS code in it:

body {
  width: 240px;
  height: 200px;
  margin: 0px auto;
  padding: 40px 0 0;
  background-color: #fff;
  font-family: Verdana, sans-serif;
  font-size: 11px;
.post {
  margin: 0px 0px 40px;
  padding: 15px;
  position: relative;
  background-color: #fff;
  -webkit-box-shadow: 0 1px 3px rgba(100, 100, 100, 0.4), 0 0 40px rgba(100, 100, 100, 0.1) inset;
  -moz-box-shadow: 0 1px 3px rgba(100, 100, 100, 0.4), 0 0 40px rgba(100, 100, 100, 0.1) inset;
  box-shadow: 0 1px 3px rgba(100, 100, 100, 0.4), 0 0 40px rgba(100, 100, 100, 0.1) inset;
  overflow: hidden;
  resize: both;
.photo img {
  width: 100%; height: 100%;
Now see it in action... :)

Wednesday, 21 November 2012

HTML 5 Shattering Text Effect

So today we're gonna do this amazing HTML 5 Shattering Text Effect with JavaScript and this script doesn't contains jquery or mootolls only JavaScript. Let's get started with basic HTML markup:

<canvas id="canvas"></canvas>

After adding above html we will add some css to make it better:

body {
margin: 0;
padding: 0;
overflow: hidden;
#canvas {
background: black;

Now finally it's time for us to add some JavaScript:

window.requestAnimFrame = (function(){
return  window.requestAnimationFrame       ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame    ||
window.oRequestAnimationFrame      ||
window.msRequestAnimationFrame     ||
function( callback ){
window.setTimeout(callback, 1000 / 60);
var canvas = document.getElementById("canvas"),
ctx = canvas.getContext("2d"),
keyword = "BWidgets.com",
density = 3,
mouse = {},
hovered = false,
colors = ["0,120,232", "8,200,255", "30,140,255"],
minDist = 20,
bounceFactor = 0.7;
var W = window.innerWidth,
H = window.innerHeight;
canvas.width = W;
canvas.height = H;
document.addEventListener("mousemove", function(e) {
mouse.x = e.pageX;
mouse.y = e.pageY;
}, false);
// Particle Object
var Particle = function() {
this.w = Math.random() * 10.5;
this.h = Math.random() * 10.5;
this.x = -W;
this.y = -H;
this.free = false;
this.vy = -5 + parseInt(Math.random() * 10) / 2;
this.vx = -4 + parseInt(Math.random() * 8);
// Color
this.a = Math.random();
this.color = colors[parseInt(Math.random()*colors.length)];
this.setPosition = function(x, y) {
this.x = x;
this.y = y;
this.draw = function() {
ctx.fillStyle = "rgba("+this.color+","+this.a+")";
ctx.fillRect(this.x, this.y,  this.w,  this.h);
var particles = [];
// Draw the text
function drawText() {
ctx.clearRect(0, 0, W, H);
ctx.fillStyle = "#000000";
ctx.font = "100px 'Arial', sans-serif";
ctx.textAlign = "center";
ctx.fillText(keyword, W/2, H/2);
// Clear the canvas
function clear() {
ctx.clearRect(0, 0, W, H);
// Get pixel positions
function positionParticles() {
// Get the data
imageData = ctx.getImageData(0, 0, W, W);
data = imageData.data;
// Iterate each row and column
for (var i = 0; i < imageData.height; i += density) {
for (var j = 0; j < imageData.width; j += density) {
// Get the color of the pixel
var color = data[((j * ( imageData.width * 4)) + (i * 4)) - 1];
// If the color is black, draw pixels
if (color == 255) {
particles.push(new Particle());
particles[particles.length - 1].setPosition(i, j);

// Update
function update() {
for(i = 0; i < particles.length; i++) {
var p = particles[i];
if(mouse.x > p.x && mouse.x < p.x + p.w && mouse.y > p.y && mouse.y < p.y + p.h)
hovered = true;
if(hovered == true) {
var dist = Math.sqrt((p.x - mouse.x)*(p.x - mouse.x) + (p.y - mouse.y)*(p.y - mouse.y));
if(dist <= minDist)
p.free = true;
if(p.free == true) {
p.y += p.vy;
p.vy += 0.15;
p.x += p.vx;
// Collision Detection
if(p.y + p.h > H) {
p.y = H - p.h;
p.vy *= -bounceFactor;
// Friction applied when on the floor
if(p.vx > 0)
p.vx -= 0.1;
p.vx += 0.1;
if(p.x + p.w > W) {
p.x = W - p.w;
p.vx *= -bounceFactor;
if(p.x < 0) {
p.x = 0;
p.vx *= -0.5;
ctx.globalCompositeOperation = "lighter";

(function animloop(){

That's It......

Tuesday, 20 November 2012

Removing Extra Copies Of Windows XP

It's to easy to get rid of extra copies of xp on your pc and all credits of this article goes to EHow.Com. Here we go:


1. Determine if your second copy of Windows XP is just left over from an over-written installation, or if it is in fact a complete second copy of Windows. You can determine this by checking to see if there are two Windows folders on two different drives on your computer. If your computer only has a single Windows folder, then skip ahead to Step 5.

2. Restart your computer and, when prompted, boot the XP installation that you wish to keep on your computer.

3. Locate the Windows folder for the second Windows XP installation. This will be the one located on the drive that does not contain your current Windows XP's "My Documents" folder. If your My Documents folder is located on the C:\ drive, for instance, the Windows folder for the second installation will be on a different drive.

4. Delete the Windows folder for the second Windows XP installation. This will completely remove all files related to the second Windows XP installation from your computer.

5. Right-click your "My Computer" icon and select the "Properties" option. This will bring up a new dialog box. Select the "Advanced" tab, then locate the "Startup and Recovery" section of the new tab.

6. Click the "Settings" button under the "Startup and Recovery" section. This will bring up yet another new dialog box.

7. Click the "Edit" button. This will open a new instance of the Notepad program, and will show several lines of code. Locate the line that reads "[operating systems]". Just beneath this line will be the lines that tell your computer to offer the choice to boot to one of the Windows XP operating systems on your computer.

8. Locate the line that corresponds to the Windows XP installation you do not want to keep, then delete it. If you are having trouble figuring out what installation you want to delete, the operating systems appear in the boot order in the same order they appear on the Operating System Select screen. So if the operating system you wish to delete was second in line on the "choose your operating system" screen, it will be the second option in Notepad.

9. Save the "Boot.ini" once you have deleted the line, then restart your computer. You will no longer be given the option to boot to the removed Windows XP operating system upon restart.

You can read original article at this link.

Friday, 16 November 2012

Adding Online Visitors Widget To Blogger

Adding online visitors widget to your blog or website is a really cool way to show-off your site's visitors and it's also a great way to find more stats of your site. Now the question is which widget will be good for your site but don't worry cuz whos.amung.us is the most trusted and used online visitor counter in the world.

Installing this widget on your website is very easy. There is no registration and they are completely free! Simply copy the html code from their site and paste it into your blog.

You can get your widget code from this page. After copying your widget code follow this simple step:

  • Go To Blogger > Layout > Add A Widget > HTML/JavaScript > Paste html code that you copied in above step and it's done.
I hope this will help you...Don't forget to leave a comment!!!

Popular Posts

Powered by Blogger.