Showing posts with label jQuery. Show all posts
Showing posts with label jQuery. Show all posts

Wednesday, 25 July 2012

Fade/Greyscale jQuery Mouse Hover Effect For Blogger

 This is also another jquery photo fade effect.
Its back and white hover style. you have to use
two image for this.you can add it to your blogger
with easily. Earlier I made a post about How To
Add Attractive Css Image Hover Effect To
Blogger
, So, you can try one of this.its easy.





Demo 

1.
Log in to your blogger account and Go to Design >> Edit HTML

2. Find this tag by using Ctrl+F    </head>

3. Paste below code before </head> tag

<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js' type='text/javascript'/>

<script type='text/javascript'>
//<![CDATA[
$(document).ready(function(){
$("img.a").hover(
function() {
$(this).stop().animate({"opacity": "0"}, "slow");
},
function() {
$(this).stop().animate({"opacity": "1"}, "slow");
});
});
//]]>
</script>

4. Find this tag by using Ctrl+F    ]]></b:skin>

5. Paste below code before ]]></b:skin> tag

span.fadehover {
position: relative;
}

img.a {
position: absolute;
left: 0;
top: 0;
z-index: 10;
}

img.b {
position: absolute;
left: 0;
top: 0;
}

6. HTML Code (you can use this code in post area or sidebar as your like)

<span class="fadehover">

<img src="URL_of_normal_image" alt="" class="a" />

<img src="URL_of_greyscale_image" alt="" class="b" />

</span>

* Replace URL_of_normal_image with your image URL
* Replace URL_of_greyscale_image with back and white image URL

7.  Now save your template
You are done.

Thursday, 19 July 2012

How To Add Cool Jquery Fade Effect To Blogger Images

This is a smooth jquery photo fade effect.you can
add it to your blogger, with easily. your post images
will appear like below image when you move the
courser on it.you can try it. Earlier I made a post
about How To Add Attractive Css Image Hover
Effect To Blogger
, So, you can try on of ths.its easy.

How To Add Cool Jquery Fade Effect To Blogger Images

1.
Log in to your blogger account and Go to Design >> Edit HTML

2. Find this tag by using Ctrl+F    </head>

3. Paste below code before </head> tag

<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js' type='text/javascript'/>
<script type='text/javascript'>
$(document).ready(function(){
$(".post img").fadeTo("slow", 1.0); // This sets the opacity of the thumbs to fade down to 30% when the page loads
$(".post img").hover(function(){
$(this).fadeTo("slow", 0.5); // This should set the opacity to 100% on hover
},function(){
$(this).fadeTo("slow", 1.0); // This should set the opacity back to 30% on mouseout
});
});
</script>
<script type='text/javascript'>
$(document).ready(function(){
$(".latest_img").fadeTo("slow", 1.0); // This sets the opacity of the thumbs to fade down to 30% when the page loads
$(".latest_img").hover(function(){
$(this).fadeTo("slow", 0.5); // This should set the opacity to 100% on hover
},function(){
$(this).fadeTo("slow", 1.0); // This should set the opacity back to 30% on mouseout
});
});
</script>

9. Now save your template
You are done.

Wednesday, 18 July 2012

How To Add Cool Vertical Jquery Slide Menubar To Blogger

Vertical bar is also really helpful, when
we need to keep some link on side bar.
So, this vertical bar include nice hover
style like dancing style.Earlier i posted
about How To Add Cool Vertical Drop
Down Menu For Blogger
. Its also include
nice style with drop down.You can follow
this easy steps to add it to your blog.

Vertical+Jquery+Slide+Menubar

DEMO

1. Log in to blogger  Design > Edit HTML.

2. Find this tag by using Ctrl+F   </head>

3. Paste below code Before </head> tag

<script src='http://bloggtrix.googlecode.com/files/jquery.js' type='text/javascript'/><script src='http://bloggtrix.googlecode.com/files/sliding_effect.js' type='text/javascript'/>
<style>
ul#sliding-navigation li.sliding-element h3{color: #none;background:url() repeat-y;font-weight: normal;}
#hide {position:absolute;top:30px;left:-190px;}
ul#sliding-navigation{background:url();list-style: none;font-size: 14px;margin: 30px 0;}
ul#sliding-navigation li.sliding-element h3,ul#sliding-navigation li.sliding-element a{display: block;width: 150px;padding: 5px 2px;margin-top:-7px;margin-left:10px;margin-bottom: -2px;}
ul#sliding-navigation li.sliding-element h3{color: #fff;background: #none;border: 1px solid #1a1a1a;font-weight: normal;}
ul#sliding-navigation li.sliding-element a{color: #999;background: #none;border: 0px solid #1a1a1a;text-decoration: none;padding:6px 0 6px 12px;margin:0;background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhe_KaumCao0Kt9CxjNVvgROGz6ZccYTc5LaRxzrLsgZX2NLx1UCvrPHeJmj7OIhR8IPcP1tqdtaQ3crjmN1Loq1576rAsRlMAxXiDhBK23QWrcZAW-ntIO0E8RvDiRFUgwMc4PdPdv2Ac/s1600/widget-list.png) left 11px no-repeat;border-bottom:1px solid #e6f2fa;}}
ul#sliding-navigation li.sliding-element a:hover { color: #000000; }
</style>

4. Now Go to DesignPage Element.

5.Click Add Gadget and select 'HTML/Javascript

6. Paste below code.

<ul id="sliding-navigation"><center><h2>
Navigation Title</h2>
</center>
<li class="sliding-element"></li>
<li class="sliding-element"><a href="#">Link 1</a></li>
<li class="sliding-element"><a href="#">Link 2</a></li>
<li class="sliding-element"><a href="#">Link 3</a></li>
<li class="sliding-element"><a href="#">Link 4</a></li>
<li class="sliding-element"><a href="http://www.bloggertrix.com/">Get This</a></li>
</ul>

Replace # with your Links
Replace Links name with your any name.

7. Now save your HTML/Javascript'.

    You are done...

Saturday, 14 July 2012

How Add Attractive Jquery Slide Show Feature For Blogger

Actually slide show helps to show main ideas
of our blog. If we are doing some service via
blog. we can add  images with description
which according to our service.So adding
slide show getting more eye contact.So,
there have more advantage of adding it.you
can check my earlier slideshow.How Add
Cool Jquery Slide Show For Blogger

Follow these simple steps to add it to your
blog. check below link for demo.

Jquery Slide Show Feature

DEMO

1.
Log in to your blogger account and Go to Design >> Edit HTML

2. Find this tag by using Ctrl+F    </head>

3. Paste below code before </head> tag

<style type='text/css'>
#s3slider {
background: none repeat scroll 0 0 #FFFFFF;
border: 4px solid #149CD5;
height: 280px;
margin-bottom: 25px;
margin-top: 0;
overflow: hidden;
position: relative;
text-shadow: 0 1px 0 #000000;
width: 585px;
}
#s3sliderContent {
background: none repeat scroll 0 0 #FFFFFF;
height: 300px;
list-style: none outside none;
margin-left: 0;
overflow: hidden;
padding: 0;
position: absolute;
top: -14px;
width: 585px;
}
.s3sliderImage {
float: left;
position: relative;
width: 585px;
}
.s3sliderImage span {
background-color: #000000;
color: #FFFFFF;
display: none;
font-size: 12px;
height: 300px;
line-height: 16px;
opacity: 0.7;
overflow: hidden;
padding: 10px 13px;
position: absolute;
right: 0;
top: 0;
width: 180px;
}
.s3sliderImage strong a {
font-family: 'Myriad Pro',Helvetica,Arial,Sans-Serif;
font-size: 20px;
}
.s3sliderImage strong a:hover {
color: #FFFFFF;
}
</style>

<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js' type='text/javascript'></script>

<script type='text/javascript'>
//<![CDATA[
/* ------------------------------------------------------------------------
s3Slider

Developped By: Boban Kari�ik -> http://www.serie3.info/
CSS Help: M�sz�ros R�bert -> http://www.perspectived.com/
Version: 1.0

Copyright: Feel free to redistribute the script/modify it, as
long as you leave my infos at the top.
-------------------------------------------------------------------------- */


(function($){

$.fn.s3Slider = function(vars) {

var element = this;
var timeOut = (vars.timeOut != undefined) ? vars.timeOut : 4000;
var current = null;
var timeOutFn = null;
var faderStat = true;
var mOver = false;
var items = $("#" + element[0].id + "Content ." + element[0].id + "Image");
var itemsSpan = $("#" + element[0].id + "Content ." + element[0].id + "Image span");

items.each(function(i) {

$(items[i]).mouseover(function() {
mOver = true;
});

$(items[i]).mouseout(function() {
mOver = false;
fadeElement(true);
});

});

var fadeElement = function(isMouseOut) {
var thisTimeOut = (isMouseOut) ? (timeOut/2) : timeOut;
thisTimeOut = (faderStat) ? 10 : thisTimeOut;
if(items.length > 0) {
timeOutFn = setTimeout(makeSlider, thisTimeOut);
} else {
console.log("Poof..");
}
}

var makeSlider = function() {
current = (current != null) ? current : items[(items.length-1)];
var currNo = jQuery.inArray(current, items) + 1
currNo = (currNo == items.length) ? 0 : (currNo - 1);
var newMargin = $(element).width() * currNo;
if(faderStat == true) {
if(!mOver) {
$(items[currNo]).fadeIn((timeOut/6), function() {
if($(itemsSpan[currNo]).css('bottom') == 0) {
$(itemsSpan[currNo]).slideUp((timeOut/6), function() {
faderStat = false;
current = items[currNo];
if(!mOver) {
fadeElement(false);
}
});
} else {
$(itemsSpan[currNo]).slideDown((timeOut/6), function() {
faderStat = false;
current = items[currNo];
if(!mOver) {
fadeElement(false);
}
});
}
});
}
} else {
if(!mOver) {
if($(itemsSpan[currNo]).css('bottom') == 0) {
$(itemsSpan[currNo]).slideDown((timeOut/6), function() {
$(items[currNo]).fadeOut((timeOut/6), function() {
faderStat = true;
current = items[(currNo+1)];
if(!mOver) {
fadeElement(false);
}
});
});
} else {
$(itemsSpan[currNo]).slideUp((timeOut/6), function() {
$(items[currNo]).fadeOut((timeOut/6), function() {
faderStat = true;
current = items[(currNo+1)];
if(!mOver) {
fadeElement(false);
}
});
});
}
}
}
}

makeSlider();
};
})(jQuery);
//]]>
</script>
<script type='text/javascript'>
$(document).ready(function() {
$('#s3slider').s3Slider({
timeOut: 4000
});
});
</script>


6. Find this code by using Ctrl+F <div id="main-wrapper">

7.  Paste below code before <div id="main-wrapper">  code

<div id="s3slider">

<ul id="s3sliderContent">
<li class="s3sliderImage">
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdjj2EFpaS4qPGMaEF9je8Biu92YRR2m2Ere8gDxTcoUzENS2bRRhIZm_ZR33tsdBYx-CZRNJttWSQbT73BdrDi4l_c9S2b2Q-X942ZtoTvLtjDGWAWqu1MSRj553LyxAqaU9VJYz0pnA/s1600/image1.jpg" />
<span><strong><a href="ADD HERE POST1 URL">POST TITLE</a></strong>
<p>DESCRIPTION</p>
</span>
</li>

<li class="s3sliderImage">
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEil08n9nk7h0nOSTG_1qw53mD4SJDkQzCT6qoTqUPlVt2Zg7i6rPsWKjdBbpW7JK6bJ1fX414GUfNC7diQRcbd4iQbEBkijAZDGCf27F65JBoCXXgYdM0NumsLtgXs4XCk-j02LLA_GOTM/s1600/image2.jpg" />
<span><strong><a href="ADD HERE POST2 URL">POST TITLE</a></strong>

<p>DESCRIPTION</p>

</span>
</li>
<li class="s3sliderImage">
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgM570uSrATlLjrHExTDT-gkewge9ch3xAFPKfEWlcQLN5VGh7c-fE4yF9734b8OwPMVdkiMX-AVnqXBKrxDJo8bFbPXowkrST95E8voINJkGtR2Az2UzfA-NQfAvG_EI8HF7GwbElZldQ/s1600/image5.jpg" />
<span><strong><a href="ADD HERE POST2 URL">POST TITLE</a></strong>

<p>DESCRIPTION</p>

</span>
</li>

<li class="s3sliderImage">
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGqqnfTj1hWuFSZMvIO_Kqq3p6a-R4eSh6tt0rbUz0-3e2UL1xwOAmu8pkdh1WuvWQ80HRxDeqAV43UN24HIn4tAMogPvgDWeeiDsJz7-CKQq0VBltyg5yVlt_wbs-RihV9TYhGyO0BBU/s1600/image6.png" />
<span><strong><a href="ADD HERE POST2 URL">POST TITLE</a></strong>

<p>DESCRIPTION</p>

</span>
</li>
<div class="clear s3sliderImage"></div>
</ul>
</div>

* Replace Post Title with your title
* Replace DESCRIPTION with your short description.
* You can change the images by changing links.

9. Now save your template
You are done.

Wednesday, 11 July 2012

How To Add Cool Vertical Drop Down Menu For Blogger

Horizontal bar is most important part of blogger.
But, vertical bar also really helpful when we need
to add some menu link on side bar.So, in this
tutorial im going to explain, how to add drop down
clever bar to blogger.Earlier i posted about more
vertical bars with different styles.
Vertical bar Style 1
Vertical bar Style 2
Vertical bar Style 3
Vertical bar Style 4
Vertical bar Style 5
You can follow this easy steps to add it to
your blog.

Vertical-drop-down-menu



1. Log in to blogger  Design > Page Element.

2. Click Add Gadget and select 'HTML/Javascript

3.Paste below code.

<style>
/*By Bloggertrix ========= */
.ddsmoothmenu-v ul {
margin: 0;
padding: 0;
width: 250px;
/* Main Menu Item widths */
list-style-type: none;
font: bold 12px Verdana;
border-bottom: 0px solid #ccc;}
.ddsmoothmenu-v ul li {
position: relative;}
.downarrowclass {
position: absolute;
top: 12px;
right: 7px;}
.rightarrowclass {
position: absolute;
top: 10px;
right: 5px;
}
/* Top level menu links style */
.ddsmoothmenu-v ul li a {
display: block;
overflow: auto;
/*force hasLayout in IE7 */
height: 32px;
color: white;
text-decoration: none;
padding: 5px 5px 5px 25px;
border-bottom: 0px solid #778;
border-right: 0px solid #778;}
.ddsmoothmenu-v ul li a:link, .ddsmoothmenu-v ul li a:visited, .ddsmoothmenu-v ul li a:active {
color: white;
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmgytwzissquCkn-375EeLRpFCVPd12wtqqlBg0gVgD8GVh7LOLR42rAaPRXh7Ed-I68pULBgOcGTbBRcfz9rTlNS7YGwfA6gNbtirbreMfG8YknXn_RXXBCa8vCaHmgZSL0l8IhbUPXQ/s1600/tab_bg.gif);
height: 22px;
background-repeat: repeat-x;
background-position: left center;
margin-bottom: 1px;}
.ddsmoothmenu-v ul li a.selected {
/*CSS class that's dynamically added to the currently active menu items' LI A element*/
color: white;
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFr4TD8B3h-27pYNaT2H_Hmo3OVUTt99HYr-ymoWeON15o6lqRpbYbldw-DxAOjvwBBkix3WzHk2bTcQuG4mmkkC9lw8Pq_oFwbozZry1d3fC9Z_j7JpIHY04_QpAQPtYO57RprbXlhr4/s1600/tabhover_bg.gif);
height: 22px;
background-repeat: repeat-x;
background-position: left center;}
.ddsmoothmenu-v ul li a:hover {
color: white;
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFr4TD8B3h-27pYNaT2H_Hmo3OVUTt99HYr-ymoWeON15o6lqRpbYbldw-DxAOjvwBBkix3WzHk2bTcQuG4mmkkC9lw8Pq_oFwbozZry1d3fC9Z_j7JpIHY04_QpAQPtYO57RprbXlhr4/s1600/tabhover_bg.gif);
height: 22px;
background-repeat: repeat-x;
background-position: left center;
} /*Sub level menu items */
.ddsmoothmenu-v ul li ul {
position: absolute;
width: 170px;
/*Sub Menu Items width */
height: 22px;
top: 0;
font-weight: normal;
visibility: hidden;
}
/* Holly Hack for IE \*/
* html .ddsmoothmenu-v ul li {
float: left;
height: 1%;
}* html .ddsmoothmenu-v ul li a {
height: 1%;
}
/*======= Vertical Drop Down Menu By Helper Blogger ========= */
</style>
<script src="http://bloggertrix.googlecode.com/files/jquery.js" type="text/javascript">
</script>
<script src="http://bloggertrix.googlecode.com/files/menubar.js" type="text/javascript">
</script>
<script type="text/javascript">
})
</script>
<script type="text/javascript">
ddsmoothmenu.init({

mainmenuid: "smoothmenu2",
//Menu DIV id
orientation: 'v',
//Horizontal or vertical menu: Set to "h" or "v"
classname: 'ddsmoothmenu-v',
//class added to menu's outer DIV

//customtheme: ["#804000", "#482400"],
contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})
</script>
<div class="ddsmoothmenu-v" id="smoothmenu2">
<ul>
<li>
<a href="http://www.bloggertrix.com/">Home</a>
</li>
<li>
<a href="#">Download</a>
<ul>
<li>
<a href="#">Sub Item 1.1</a>
</li>
<li>
<a href="#">Sub Item 1.2</a>
</li>
</ul>
</li>
<li>
<a href="#">Cart</a>
<ul>
<li>
<a href="#">Sub Item 1.1</a>
</li>
<li>
<a href="#">Sub Item 1.2</a>
</li>
</ul>
</li>
<li>
<a href="#">Item 3</a>
</li>
<li>
<a href="#">About</a>
<ul>
<li>
<a href="#">Sub Item 2.1</a>
</li>
</ul>
</li>
<li>
<a href="http://www.bloggertrix.com/">Add This</a>
</li>
</ul></div>

Replace # with your Links
Replace Links name with your any name.

4. Now save your HTML/Javascript'.

    You are done...

Monday, 9 July 2012

Jquery Popup Facebook Like Box With Timer For Blogger

This is a great widget for Facebook fan page.
Facebook is the greatest way to drive traffic to
your blog.You have to add fan page to your blogger.
So, this tutorial about Facebook fan page.
This tutorial helps you to make your fan page
popup with timer.No need to close it manually.
It will auto close with time.This will helps you
increase Facebook fans.here is query Popup
Facebook Like Box without timer
. Its was my
earlier post.You can follow these steps.


1. Log in to blogger  Design > Page Element.

2.Find this code  by using Ctrl+F </body>

3.Paste below code before </body> code.

<script type='text/javascript'>
//<![CDATA[
KNFBFansPRO='Bloggertrix'
//]]></script><style>#fblikepop{background-color:#fff;display:none;position:fixed;top:200px;_position:absolute; /* hack for IE 6*/width:450px;border:10px solid #6F6F6F;z-index:200;-moz-border-radius: 9px;-webkit-border-radius: 9px;margin:0pt;padding:0pt;color:#333333;text-align:left;font-family:arial,sans-serif;font-size:13px;}
#fblikepop body{background:#fff none repeat scroll 0%;line-height:1;margin:0pt;height:100%;}
.fbflush{cursor: pointer;font-size:11px !important;color:#FFF !important;text-decoration:none !important;border:0 !important;}
#fblikebg{display:none;position:fixed;_position:absolute; /* hack for IE 6*/height:100%;width:100%;top:0;left:0;background:#000000;z-index:100;}
#fblikepop #closeable{float:right;margin:7px 15px 0 0;}
#fblikepop h1{background:#6D84B4 none repeat scroll 0 0;border-top:1px solid #3B5998;border-left:1px solid #3B5998;border-right:1px solid #3B5998;color:#FFFFFF !important;font-size:18px !important;font-weight:normal !important;padding:5px !important;margin:0 !important;font-family:&quot;Lucida Sans Unicode&quot;, &quot;Lucida Grande&quot;, sans-serif !important;}
#fblikepop #actionHolder{height:30px;overflow:hidden;}
#fblikepop #buttonArea{background:#F2F2F2;border-top:1px solid #CCCCCC;padding:10px;min-height:50px;}
#fblikepop #buttonArea a{color:#999999 !important;text-decoration:none !important;border:0 !important;font-size:10px !important;}
#fblikepop #buttonArea a:hover{color:#333 !important;text-decoration:none !important;border:0 !important;}
#fblikepop #popupMessage{font-size:12px !important;font-weight:normal !important;line-height:22px;padding:8px;background:#fff !important;}
#fblikepop #counter-display{float:right;font-size:11px !important;font-weight:normal !important;margin:5px 0 0 0;text-align:right;line-height:16px;}</style>
<script src='http://bloggertrix.googlecode.com/files/btrixlikebox.js' type='text/javascript'/>
<script src='http://connect.facebook.net/en_US/all.js#xfbml=1' type='text/javascript'/>
<script src='http://bloggertrix.googlecode.com/files/btrixlikebox2.js' type='text/javascript'/>
<script language='javascript'>
//<![CDATA[
$(document).ready(function(){
$().KNFBFansPRO({
timeout: 30,
wait: 0,
url: 'http://www.facebook.com/BloggerTrix',
closeable: true });
});
//]]></script><div id='fbtpdiv'/>

Replace Bloggertrix with your Facebook Fan page name
Timer Set as 30 You can change it
You can change wait time to show the popup by changing 0

4. Now Click Save Template

    You are done...

Sunday, 8 July 2012

How To Add Jquery Slide Out Social Bookmark Gadget To Blogger

Social bookmarking is important part of blogger.
Because, it is the easiest way to promote our blog
or site.We can get fast traffic to our blog. So
we need attractive social bookmark buttons to
our blog.This is slideout vertical social buttons.
It will show every page in your blog. Earlier i
created a nice social sharing button.How To
Add Cool Social Sharing Widget To Blogger Post

Follow these steps.You can check demo before/
add it to your blog.
slideout-bookmark-button

DEMO

1. Log in to blogger account and Go to Design >> Edit HTML
  
2. Find this tag by using Ctrl+F   </head>

3. Paste below code Before </head> tag

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
<script src='http://apis.google.com/js/plusone.js' type='text/javascript'> {lang: &#39;en-US&#39;} </script>

4. Click Save Template and  Go to Design >> Page Element

5. Click Add Gadget and select 'HTML/Javascript'

6. Paste below code.

<script type="text/javascript">
/*<![CDATA[*/
jQuery(document).ready(function () {
jQuery(".hbslidebox").hover(function () {
jQuery(this).stop().animate({
left: "0"
}, "medium");
}, function () {
jQuery(this).stop().animate({
left: "-70"
}, "medium");
}, 500);
});
/*]]>*/
</script>
<style type="text/css">
.hbslidebox {
background: url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyxib5UAhIIRW3nvY_0KZftCfi2PbgQmBLcoJ8DTf6uqVX20mqis-XghTaVt58GEumU9u6snMImzfS4tUVCr0y6JEpg2HqvfomLgqJk3PAajo2Ex0G2hxMH6YEwTFtw0Htcq1MNBlwO3U/s1600/vertical-bar.png") no-repeat scroll right top transparent !important;
display: block;
float: left;
height: auto;
padding: 0 45px 0 0px;
width: 65px;
z-index: 99999;
position:fixed;
left:-70px;
top:20%;
}
.hbslidebox div {
border:none;
position:relative;
display:block;
}
#floatingbuttons {
background: #fff;
border-radius: 5px 5px 5px 5px;
border: 1px solid #CCCCCC;
float:left;
padding:0 0 3px 0;
bottom:15%;
z-index:399;
}
#floatingbuttons .floatbutton {
float:left;
clear:both;
margin:5px 4px 0 4px;
}
.addbuttons {
clear:both;
text-align:center;
padding-top:5px;
}
.addbuttons a span.getfloat, .addbuttons a span.sharebuttons {
color:#000;
background:none;
font-family:arial, sans-serif;
display:block;
font-size:9px;
font-weight:bold;
text-decoration:none;
line-height:11px;
}
.addbuttons a:hover span {
color:#fff;
background:none;
text-decoration:underline;
}
</style>
<div class="hbslidebox" style="">
<div>
<div id='floatingbuttons' title="Share this post!">
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1">

</script>
<script type="text/javascript">
(function () {
var s = document.createElement('SCRIPT'),
s1 = document.getElementsByTagName('SCRIPT')[0];
s.type = 'text/javascript';
s.async = true;
s.src = 'http://widgets.digg.com/buttons.js';
s1.parentNode.insertBefore(s, s1);
})();
</script>
<!-- Medium Button -->
<script src='http://platform.twitter.com/widgets.js' type="text/javascript"></script>
<div class='floatbutton' id='facebook'>
<fb:like layout="box_count" show_faces="false" font=""></fb:like>
</div>
<div class='floatbutton' id='google+1'>
<g:plusone size="tall"></g:plusone>
</div>
<div class='floatbutton' id='stumbleupon'>
<script src="http://www.stumbleupon.com/hostedbadge.php?s=5"></script>
</div>
<div class='floatbutton' id='digg'>
<a class="DiggThisButton DiggMedium"></a>
</div>
<div class='floatbutton' id='twitter'>
<a href="http://twitter.com/share" class="twitter-share-button" data-count="vertical">Tweet</a>
</div>
<div class="addbuttons">
<a href="http://www.bloggertrix.com/" title="Add floating social media share buttons to your blog!"><span class="getfloat">Get This</span></a>
</div>
</div>
</div>
</div>

7. Now save  'HTML/Javascript'
 you are done.

Friday, 6 July 2012

How To Add Jquery Classic Clock For Blogger

This post also did with including  jquery. Time is
import thing for everyone.In this post im going to explain
how to add cool analog clock for your blogger.You can
add this on your sidebar top. it will helps you to give a
nice  looking for your blogger.Earlier i made post about
How to add a animated clock for blogger  that post also
have nice clock gadget.So you can choose best one for
your blog.Follow these steps to add it to your blog.


1. Log in to blogger account and Go to Design >> Edit HTML
    (make sure backup your template first)

2. Find this tag by using Ctrl+F    </head>

3. Paste below code Before </head> tag
<script src='http://bloggertrix.googlecode.com/files/jquery-1.2.6.min.js' type='text/javascript'/>
<script type='text/javascript'>

$(document).ready(function() {

setInterval( function() {
var seconds = new Date().getSeconds();
var sdegree = seconds * 6;
var srotate = &quot;rotate(&quot; + sdegree + &quot;deg)&quot;;

$(&quot;#sec&quot;).css({&quot;-moz-transform&quot; : srotate, &quot;-webkit-transform&quot; : srotate});

}, 1000 );


setInterval( function() {
var hours = new Date().getHours();
var mins = new Date().getMinutes();
var hdegree = hours * 30 + (mins / 2);
var hrotate = &quot;rotate(&quot; + hdegree + &quot;deg)&quot;;

$(&quot;#hour&quot;).css({&quot;-moz-transform&quot; : hrotate, &quot;-webkit-transform&quot; : hrotate});

}, 1000 );


setInterval( function() {
var mins = new Date().getMinutes();
var mdegree = mins * 6;
var mrotate = &quot;rotate(&quot; + mdegree + &quot;deg)&quot;;

$(&quot;#min&quot;).css({&quot;-moz-transform&quot; : mrotate, &quot;-webkit-transform&quot; : mrotate});

}, 1000 );

});

</script>



4. Now Go to Design >> Page Element

5. Click Add Gadget and select 'HTML/Javascript'

6. Paste  below code.

<style type="text/css">
* {
margin: 0;
padding: 0;}

#clock {
position: relative;
width: 120px;
height: 120px;
margin: 20px auto 0 auto;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj807blt-pVvxABkZs-g76Sqk2MxGESOQw8W6Zfqd6UoYYfpJLgV4GPcs8QSLTO4pCaHvsxW3XHt-In7Mq53f3wQmeaq3VvepNSmXzylo7t_RJU2hpi3Kd5J2Aj48NlUAOkpwDO7I8edfI/s1600/clockface+copy.png);
list-style: none;
}

#sec, #min, #hour {
position: absolute;
width: 6px;
height: 120px;
top: 2px;
left: 57px;
}

#sec {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjETwuEjzUVTp3U4PC5fl0W3YE734LEpfZcnK1v4XXh6swP8d0xLRIKrq9dE45QO1XroK6KuRcQUtV0J_LeXKfY5VjpMNSb1GaiwUE3ENaBPeOxOsFktTLU8iD_BLu7ukF0Flw5f9TG_F8/s1600/sechand.png);
z-index: 3;
}

#min {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWB1mtdcOo_mbVlMqpT1pWD_QQnxGuESi9SJ4Q4A3yKokgOS7Eu2-ZupmpaU9B1EEnH0UHa_q3rsfPEnaPl2qIFRd1wSWBt4t9ezPGHsdTjajPQqnzqc6RyJcxpnIuwDbownqH1FfM1mQ/s1600/minhand.png);
z-index: 2;
}

#hour {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCRGF0S6x45qiWrtekCVw2If-TgnGdaXUMLY2vX-Jl00PArkCJ5OfiBo4FXcWkW35DrBAvh-stGVnNeXtZGVr5G9PXOCPZpdaMiCdGAzWhUcnbhKALdi9awu8BHMEXFRKLFXisGQ61JiQ/s1600/hourhand.png);
z-index: 1;
}

p {
text-align: center;
padding: 10px 0 0 0;
}
</style>


<ul id="clock">
<li id="sec"></li>
<li id="hour"></li>
<li id="min"></li>
</ul>

7. Now save your template
 you are done.

Monday, 2 July 2012

How To Add Jquery Recent Post Slider For Blogger

This is cool trick. You can add recent post as your
slider. So, This will help you to show your recent post
with  slider effect.This is not hard to add it to your blog.
Im Providing Demo for this post. so you can figure out
how this trick working. click below demo link to see
demo.

Demo


1. Log in to blogger account and Go to Design >> Edit HTML
    (make sure backup your template first)

2. Find this tag by using Ctrl+F    ]]></b:skin>

3. Paste below code Before ]]></b:skin> tag

#slide-container {
height: 300px;
position: relative;
width: 480px;
}
#slider {
height: 360px;
left: 25px;
overflow-x: hidden;
overflow-y: hidden;
position: relative;
width: 480px;
font-family: calibri;}
.slide-desc {
background: transparent url(http://i195.photobucket.com/albums/z105/dantearaujo/darkbg.png) repeat scroll 0 0;
color: #FFFFFF;
padding: 10px;
position: absolute;
right: 0px;
text-align: left;
top: 0;
width: 200px;
z-index: 99999;
}
.slide-desc h2 {
display: block;
}
.crosscol .widget-content {
position: relative;
}
#slider ul, #slider li,
#slider2 ul, #slider2 li {
margin: 0;
padding: 0;
list-style: none;
}
#slider2 {
margin-top: 1em;
}
#slider li, #slider2 li {

width: 480px;
height: 360px;
overflow: hidden;
}
#prevBtn, #nextBtn,
#slider1next, #slider1prev {
display: block;
width: 30px;
height: 77px;
position: absolute;
left: -30px;
text-indent: -9999px;
top: 71px;
z-index: 1000;
}
#nextBtn, #slider1next {
left: 520px !important;
}
#prevBtn, #nextBtn, #slider1next, #slider1prev {
display: block;
height: 77px;
left: 0;
position: absolute;
top: 132px;
width: 30px;
z-index: 1000;
}
#prevBtn a, #nextBtn a,
#slider1next a, #slider1prev a {
display: block;
position: relative;
width: 30px;
height: 77px;
background: url(http://i195.photobucket.com/albums/z105/dantearaujo/prev.png) no-repeat 0 0;
}
#nextBtn a, #slider1next a {
background: url(http://i195.photobucket.com/albums/z105/dantearaujo/next.png) no-repeat 0 0;
}
/* numeric controls */
ol#controls {
margin: 1em 0;
padding: 0;
height: 28px;}
ol#controls li {
margin: 0 10px 0 0;
padding: 0;
float: left;
list-style: none;
height: 28px;
line-height: 28px;}
ol#controls li a {
float: left;
height: 28px;
line-height: 28px;
border: 1px solid #ccc;
background: #DAF3F8;
color: #555;
padding: 0 10px;
text-decoration: none;}
ol#controls li.current a {
background: #5DC9E1;
color: #fff;}
ol#controls li a:focus, #prevBtn a:focus, #nextBtn a:focus {
outline: none;}
/* By bloggertrix.com */

4. Now again Find this tag by using Ctrl+F    </body>

<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js' type='text/javascript'></script>
<script src='http://accordion-template.googlecode.com/svn/trunk/easySlider1.7.js' type='text/javascript'></script>
<script type='text/javascript'>
//<![CDATA[
$(document).ready(function(){
$("#slider").easySlider({
auto: true,
continuous: true
});
});
//]]>
</script>
<!-- by bloggertrix.com -->

5. Click Save Template

6. Now Go to Design >> Page Element

7. Click Add Gadget and select 'HTML/Javascript'

8. Paste below code.

<div id="slider">
<script style="text/javascript" src="http://btrixx.googlecode.com/files/recentslider.js"></script>
<script style="text/javascript">
var numposts_gal = 6;
var numchars_gal = 150;
var random_posts = false; // random posts
</script>
<!-- replace with your web address (marked with red color) -->
<script src="http://bloggertrix.com/feeds/posts/default?orderby=published&alt=json-in-script&callback=showgalleryposts&max-results=999999"></script>
</div>

* You can change numbers of showing post by Changing   6
* You can change numbers of post characters  by Changing  150

  Replace bloggertrix.com with your site/ URL

9. Now save HTML/Javascript'. You are done.

4 In 1 Smooth Social Subscribing Slide Out For Blogger

This is nice widget for your blog.This will help
specially who don't have more space in blogger.In
this wideget include Smooth Jquery Facebook fan
page
, Twitter Follower Box, Google Plus 1 Button
and Rss  SubscribeWidget.That's why it say 4 in one.
Its too easy to add to  your blogger.You can follow
these simple steps to add it.




Demo

1. Log in to blogger and Go to  Design >> Page Element.

2. Click Add Gadget and select 'HTML/Javascript'

3.Paste below code.

<style>
img,a {
border: 0;}
#on {
visibility: visible;}
#off {
visibility: hidden;}
#facebook_div {
width: 196px;
height: 340px;
overflow: hidden;}
#twitter_div {
width: 246px;
height: 353px;
overflow: hidden;}
#google_plus_div {
width: 152px;
height: 97px;
overflow: hidden;
margin-left: 50px;
margin-top: 10px;}
#knfeedburner_div {
width: 300px;
height: 97px;
overflow: hidden;
margin-top: 5px;
margin-left: -4px;}
#kakinetwork_div {
width: 300px;
height: 97px;
overflow: hidden;
}/* right side style */#facebook_right {
z-index: 10005;
border: 2px solid #3c95d9;
background-color: #fff;
width: 196px;
height: 353px;
position: fixed;
right: -200px;}
#facebook_right img {
position: absolute;
top: -2px;
left: -35px;}
#facebook_right iframe {
border: 0px solid #3c95d9;
overflow: hidden;
position: static;
height: 360px;
left: -2px;
top: -3px;}
#twitter_right {
z-index: 10004;
border: 2px solid #6CC5FF;
background-color: #6CC5FF;
width: 246px;
height: 353px;
position: fixed;
right: -250px;}
#twitter_right_img {
position: absolute;
top: -2px;
left: -35px;
border: 0;}
#google_plus_right {
z-index: 10003;
background-color: #F2F2F2;
border: 2px solid #006ec9;
border-top: 2px solid #0056a0;
border-bottom: 2px solid #0056a0;
border-right: 2px solid #0056a0;
border-left: hidden;
width: 152px;
height: 97px;
position: fixed;
right: -154px;}
#google_plus_right_img {
position: absolute;
top: -2px;
left: -33px;
border: 0;}
#feedburner_right {
z-index: 10003;
background-color: #fefefe;
border: 2px solid #5b5b5b;
border-top: 2px solid #5b5b5b;
border-bottom: 2px solid #5b5b5b;
border-right: 2px solid #5b5b5b;
border-left: hidden;
width: 300px;
height: 97px;
position: fixed;
right: -303px;}
#feedburner_right_img {
position: absolute;
top: -2px;
left: -33px;
border: 0;}
#kakinetwork_right {
z-index: 10003;
border: 2px solid #303030;
background-color: #fff;
width: 300px;
height: 97px;
position: fixed;}
#kakinetwork_right img {
position: absolute;
top: -2px;
left: -101px;
}/* left side style */#facebook_left {
z-index: 10005;
border: 2px solid #3c95d9;
background-color: #fff;
width: 196px;
height: 353px;
position: fixed;
left: -200px;}
#facebook_left img {
position: absolute;
top: -2px;
right: -35px;}
#facebook_left iframe {
border: 0px solid #3c95d9;
overflow: hidden;
position: static;
height: 360px;
right: -2px;
top: -3px;}
#twitter_left {
z-index: 10004;
border: 2px solid #6CC5FF;
background-color: #6CC5FF;
width: 246px;
height: 353px;
position: fixed;
left: -250px;}
#twitter_left_img {
position: absolute;
top: -2px;
right: -35px;
border: 0;}
#google_plus_left {
z-index: 10003;
background-color: #006ec9;
border: 2px solid #006ec9;
border-top: 2px solid #0056a0;
border-bottom: 2px solid #0056a0;
border-left: 2px solid #0056a0;
border-right: hidden;
width: 152px;
height: 97px;
position: fixed;
left: -154px;}
#google_plus_left_img {
position: absolute;
top: -2px;
right: -33px;
border: 0;}
#feedburner_left {
z-index: 10003;
background-color: #fefefe;
border: 2px solid #5b5b5b;
border-top: 2px solid #5b5b5b;
border-bottom: 2px solid #5b5b5b;
border-left: 2px solid #5b5b5b;
border-right: hidden;
width: 300px;
height: 97px;
position: fixed;
left: -303px;}
#feedburner_left_img {
position: absolute;
top: -2px;
right: -33px;
border: 0;}
#kakinetwork_left {
z-index: 10003;
border: 2px solid #303030;
background-color: #fff;
width: 300px;
height: 97px;
position: fixed;}
#kakinetwork_left img {
position: absolute;
top: -2px;
right: -101px;}
.box-title1 {
border: 1px solid #ddd;
/*border-radius*/
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
/*box-shadow*/
-webkit-box-shadow: 5px 5px 5px #CCCCCC;
-moz-box-shadow: 5px 5px 5px #CCCCCC;
box-shadow: 5px 5px 5px #CCCCCC;
padding: 10px;
margin: 10px 0;}
.enteryouremail {
background: #fff !important;
border: 1px solid #d2d2d2;
padding: 0px 8px 0px 8px;
color: #a19999;
font-size: 12px;
height: 25px;
width: 165px;
/*border-radius*/
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
margin: 0px;}
.submitbutton {
background: #F2F2F2;
border: 1px solid #F66303;
/*box-shadow*/
-webkit-box-shadow: 3px 3px 3px #666;
box-shadow: 3px 3px 3px #666;
font: bold 12px Arial, sans-serif;
color: #000000;
height: 25px;
padding: 0 12px 0 12px;
margin: 0 0 0 5px;
/*border-radius*/
-webkit-border-radius: 5px;
border-radius: 5px;
cursor: pointer;}
</style><script src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js'></script>
<script type="text/javascript" src="http://apis.google.com/js/plusone.js"></script>
<script type="text/javascript">jQuery(document).ready(function(){ jQuery("#facebook_right").hover(function(){ jQuery(this).stop(true,false).animate({right: 0}, 500); },function(){ jQuery("#facebook_right").stop(true,false).animate({right: -200}, 500); }); jQuery("#twitter_right").hover(function(){ jQuery(this).stop(true,false).animate({right: 0}, 500); },function(){ jQuery("#twitter_right").stop(true,false).animate({right: -250}, 500); }); jQuery("#google_plus_right").hover(function(){ jQuery(this).stop(true,false).animate({right: 0}, 500); },function(){ jQuery("#google_plus_right").stop(true,false).animate({right: -154}, 500); }); jQuery("#feedburner_right").hover(function(){ jQuery(this).stop(true,false).animate({right: 0}, 500); },function(){ jQuery("#feedburner_right").stop(true,false).animate({right: -303}, 500); }); });</script>
<div id="on">
<div id="facebook_right" style="top: 18%;">
<div id="facebook_div">
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiDgy8fuQjKAZ4pBms5nZPcqr7kOXKypmF8KlH8i-7LIy_9TW1kLxKa6Wovj8KPwhnwi9fP7anI2N0SiuakfIUp-V-_NMSYpGdRXXv-oXkeDdwRPAdk2H5hVOQgUPx3Y2-7-gHJDyFOLDP/s1600/facebook-icon.png" alt=""/>
<iframe src="//www.facebook.com/plugins/likebox.php?
href=http%3A%2F%2Fwww.facebook.com%2Fbloggertrix&amp;width=200&amp;height=346&amp;colorscheme=light&amp;show_faces=true&amp;border_color&amp;stream=false&amp;header=false" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:200px; height:346px;" allowtransparency="true">
</iframe>
</div>
</div>
</div>
<div id="on">
<div id="twitter_right" style="top: 35%;">
<div id="twitter_div">
<img id="twitter_right_img" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgic4_Idzo_dJbz9BwOg8d3PwPAJDmEhOkyQFo1JfglimTlKQh5z5YBwAXSHyoJUGz_GSDeoYna_QIG_CjR_N7ZnUFnXl8zHJ_sd7nFXBrSceZmdwzPb6hg-p2GT6RKtGF57CV1ysc5KbiS/s1600/twitter-icon.png"/>
<script src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>new TWTR.Widget({version: 2,type: 'profile',rpp: 4,interval: 1000,width: 246,height: 265,theme: {shell: {background: '#63BEFD',color: '#FFFFFF'},tweets: {background: '#FFFFFF',color: '#000000',links: '#47a61e'}},features: { loop: false,live: true,scrollbar: false,hashtags: false,timestamp: true,avatars: true,behavior: 'all' }})
.render().setUser('bloggertrix').start();</script>
</div>
</div>
</div>
<div id="on">
<div id="google_plus_right" style="top: 52%;">
<div id="google_plus_div">
<img id="google_plus_right_img" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgA5Qxu2wNkrLVXcu9ZbgrkqnRHfnB5PJh0AQqdeO2XUrhiYB4t3b9MFot_vWWJB58feNw9yOodpH3HAr1eXMc916Kh0epMi2qbH7hOdXn1XT5-cYl6ufxZrz0hdkj7XzWDArj_nmB7Ic_3/s1600/google-plus-icon.png"/>
<div style="float:left;margin:10px 10px 10px 0;">
<g:plusone size="tall" expr:href="data:post.url"></g:plusone>
</div>
</div>
</div>
<div id="on">
<div id="feedburner_right" style=" top: 69%;">
<div id="knfeedburner_div">
<center>
<h4 style="color:#F66303;">You can also receive Free Email Updates:</h4>
<form action="http://feedburner.google.com/fb/a/mailverify" method="post" target="popupwindow" onsubmit="window.open
('http://feedburner.google.com/fb/a/mailverify?uri=bloggertrix', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true">
<input gtbfieldid="10" class="enteryouremail" name="email" value="Enter your email here..." onblur="if (this.value == &#39;&#39;) {this.value = &#39;Enter your email here...&#39;;}" onfocus="if (this.value == &#39;Enter your email here...&#39;) {this.value = &#39;&#39;;}" type="text"/>
<input value="bloggertrix" name="uri" type="hidden"/><input value="Submit" class="submitbutton" type="submit"/>
</form>
</center><img id="feedburner_right_img" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaxqNUneIjNDraVfKXIBrRrnFE-jXGHCJQR6NEoCFWWrqnXRUYdtVTgcJYgrrokwn56iwNudBBzZ3uhXcS6nCRORSPcHucxHdREWVJoGSw-JfkwPcnaoFUHraQyu-xpKaO_IyXmCYaPC1G/s1600/subscribe-icon.png"/>
</div>
</div>
</div>
</div>

* Replace  bloggertrix  With Facebook fan page.
* Replace  bloggertrix  With your Twitter Username.
* Replace  bloggertrix  With Your feedburner Username

4. Now save your HTML/Javascript'.

Sunday, 10 June 2012

A Complete Sharing Widget With jQuery Effect

Previously, I had shared A Complete Sharing Widget for blogger. Widget perform very good on every type of blogger template and we also get positive response from our readers. But most of the readers constantly requesting to make this widget more attractive. So that we are here to increase the beauty of this widget by adding two gorgeous effect of animation and opacity. Both of these effect uses jQuery, which will execute on mouse hovering.

How To Add Attractive Sharing Widget To Blogger:-

Before proceeding to the tutorial, you should add the basic widget code to your blog from this tutorial.  

How To Add Special Effect To Sharing Widget:-


If you want to add animated effect in your share widget then following change should be done in your blog template. Find the following code in blogger template.
</head>
Paste the following code just above it to make your sharing widget animated.
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script> 
<!-- internetricks4u.blogspot.in-->
<script type="text/javascript">
$(document).ready(function(){

$("#myshare tr td").hover(function(){

$(this).find("img").animate({left:10},50);

$(this).find("img").animate({left:-10},50);

$(this).find("img").animate({left:0},50);

});

});
</script>
<!-- internetricks4u.blogspot.in-->
To add opacity effect to sharing widget then add following code just above the </head>.
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script> 
<!-- internetricks4u.blogspot.in-->
<script type="text/javascript">
$(document).ready(function() {
$('#myshare tr td img').each(function() {
$(this).hover(function() {
$(this).stop().animate({ opacity: 0.3 }, 350);
},
function() {
$(this).stop().animate({ opacity: 1.0 }, 350);
});
});
});

</script>
<!-- internetricks4u.blogspot.in-->
More Article From The Same Author

Friday, 8 June 2012

Change Opacity Of An Element Using jQuery

jquery effect opacity change
jQuery is a great library of JavaScript function. You can easily create special effects in page with the help of jQuery. Most common jQuery effects are drop down menus, drag and drop elements and animations. Professional Web Designers effectively uses jQuery to change the opacity of various HTML elements like image tag <img> and ordered list or unordered list <ol> or <li> etc.  All standard browsers supports jQuery which makes it more important for web developers. In Blogger, you can increase the appearance of your article and make your Blog template to look more professional with the help of jQuery by adding special effect in the post. So lets see how it works ?


Change Opacity Of An Element Using jQuery:-

The complete jQuery code given below is an example to change the opacity of an image from any desired value to any desired value with animation, which will execute on mouse hovering.

Change Opacity Of An Image Using jQuery:-

/* Code Written on http://internetricks4u.blogspot.com/ */

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script>

<script type="text/javascript">
$(document).ready(function() {
$('img').each(function() {
$(this).hover(function() {
$(this).stop().animate({ opacity: 0.3 }, 500);
},
function() {
$(this).stop().animate({ opacity: 1.0 }, 500);
});
});
});
</script>
/* Code Written on http://internetricks4u.blogspot.com/ */

Explanation:-

This simple jQuery script changes opacity of images from 0.3 (Mouse hover state) to 1.0 ( Normal state) with animation. Corresponding HTML code is given below.
<div>      
<img src="URL Of Image 1" />
<img src="URL of Image 2" />
</div>

Suppose if you want to focus a particular image that comes under specific CSS id or class then the corresponding jQuery and HTML code is as follows

HTML Code

<div>

<div id="testingcss">

<img src="Image url"/>

<div id="workingcss">
<img src="Image Url 1"/>
<img src="Image Url 2"/>
</div>

</div>

</div>

jQuery Code

For hovering a image that comes under the CSS id workingcss, without affecting the image that comes under testingcss id, the  following changes should be done in above jQuery code.
.
/* Code Written on http://internetricks4u.blogspot.com/ */

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script>

<script type="text/javascript">
$(document).ready(function() {
$("#workingcss img").hover function(){
$(this).hover(function() {
$(this).stop().animate({ opacity: 0.3 }, 500);
},
function() {
$(this).stop().animate({ opacity: 1.0 }, 500);
});
});
});
</script>
/* Code Written on http://internetricks4u.blogspot.com/ */

Only the code in pink color should be change in order to focus particular image.

More Article From The Same Author

Saturday, 2 June 2012

Beautiful Slide Egg Bookmarking Widget for Blogger

This is a attractive Social bookmark gadget.It woks
great with side open with including Hover Effect also.
It Include the buttons  Facebook share, Twitter,
Google +, Blogger, LinkedIn, Stumble Upon, Email
and the Share This Icon.This tutorial will helps you to
add it to your blog. Follow These Steps.


1. Log in to blogger account and Go to Design >> Edit HTML
  
2. Put checked marked in Expand Widget Templates

3. Find this tag by using Ctrl+F    </head>

4. Paste below code Before </head> tag


<script src='http://w.sharethis.com/gallery/shareegg/shareegg.js' 
type='text/javascript'/><script src='http://w.sharethis.com/button/buttons.js'
type='text/javascript'/><script type='text/javascript'>stLight.options
({publisher: &quot;bea50586-2b9f-448d-947a-01385f28e305&quot;, onhover:false});
</script><link href='http://w.sharethis.com/gallery/shareegg/shareegg.css'
media='screen' rel='stylesheet' type='text/css'/>


Egg Bookmarking

5. Now Find this code  by using Ctrl+F </body>

6.  Paste below code Before </body> tag

<div style='position: fixed; bottom: 2%; left:
2%;'><div class='shareEgg'
id='shareThisShareEgg'/></div><script
type='text/javascript'>stlib.shareEgg.createEgg(&#39;shareThisShareEgg&#39;,

[&#39;facebook&#39;,&#39;twitter&#39;,&#39;googleplus&#39;,&#39;linkedin&#39;,&#39;blogger&#39;,&#39;stumbleupon&#39;,&#39;sharethis&#39;],
{title:&#39;
<data:blog.pageTitle/>&#39;,url:&#39;<data:blog.url/>&#39;,theme:&#39;shareegg&#39;});</script><a
href="http://www.bloggertrix.com/">Blogger Widgets</a>

7. Now save your template
 you are done.

Friday, 1 June 2012

Jquery Image Zoom Effect For Blogger

This Effect will help to view your high resolution
images with Zooming,Follow below steps to add
it to your blog.

Demo

1. Log in to blogger and Go to Design >> Edit HTML

5. Now find  </head> tag

3. Paste below code before </head> tag

<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js' type='text/javascript'/>
<script src='http://wierdwalker.googlecode.com/files/easyzoom.js' type='text/javascript'/>
<script type='text/javascript'>

jQuery(function($){

$(&#39;a.zoom&#39;).easyZoom();

});

</script>

    

4. Paste below code before ]]></b:skin> tag

#easy_zoom{
width:600px;
height:400px;
border:5px solid #eee;
background:#fff;
color:#333;
position:fixed;
top:35px;
left:50%;
overflow:hidden;
-moz-box-shadow:0 0 10px #555;
-webkit-box-shadow:0 0 10px #555;
box-shadow:0 0 10px #555;
/* vertical and horizontal alignment used for preloader text */
line-height:400px;
text-align:center;
}

5. Now When you creating a post you can add following Code. (by Edit HTML)

<div class="separator" style="clear: both; text-align: center;">
<a class="zoom" href="Image url" imageanchor="1"
style="margin-left: 1em; margin-right: 1em;">
<img border="0" height="205" src="Image url" width="320" /></a></div>

* Replace image URL with your image URL
* You can change image size by changing 205, and 320 value.

6. Now preview post and Click Publish Post.
      You are done,

Wednesday, 30 May 2012

How To Add Smooth JQuery Facebook Like Box to Blogger

How To Add Smooth Jquery Facebook Like Box to Blogger

This is a Facebook like box with j query smooth
hover effect. This will help you to make your
blog attractive. Follow below steps to
add it to your blog.

Facebook Likebox


1. Log in to blogger account and Go to Design >> Edit HTML

2. Make sure you put check mark to �Expand Widget Templates

3. Find this tag by using Ctrl+F    </head>

4. Paste  below code Before  </head> tag

<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js' type='text/javascript'/>

<script type='text/javascript'>

jQuery(document).ready (

function(){jQuery(&quot;#facebook_right&quot;).hover(function(){
jQuery(this).stop(true,false).animate({right: 0}, 500); },

function(){ jQuery(&quot;#facebook_right&quot;).stop(true,false).animate({right: -249}, 500); });

});

</script>

5. Now save the template.

5. Now Go to Design >> Page Element

6. Click Add Gadget and select 'HTML/Javascript'

7. Paste  below code.

<style>
img, a { border: 0; }#on {visibility:visible;}#off {visibility:hidden;}#facebook_div {width:245px;height: 310px;overflow: hidden;}
#facebook_right {z-index: 10005;border:2px solid #3c95d9;background-color: #fff;width:245px;height: 290px;position: fixed;right: -249px;}
#facebook_right img {position: absolute;top: 70px;left: -35px;}
#facebook_right iframe {border:0px solid #3c95d9;overflow: hidden;position: static;height: 360px;left:-2px;top:-3px;}
</style><div id="on"><div id="facebook_right" style="top: 30%;">
<div id="facebook_div">
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgD9Dfs9eDpQSpZaz9maCUO8ZYtzYBn0Y2PkT03uNvvEJteg_CwBZhWF95-tdkBqv3Bfc4h8cqs1MROThs6qgc0gIrnJKBAXW4HtV6M098Pm0V9mxEM5tQH-EdBUipxdi-_uLopnlJzpXvN/s1600/FB.png" />

<iframe src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2Fpages%2FBlogger-Trix%2F110888928990749&amp;
width=292&amp;height=258&amp;colorscheme=light&amp;show_faces=true&amp;border_color&amp;stream=false&amp;header=false" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:292px; height:258px;" allowtransparency="true">
</iframe>


<a style=" font-size:9px; color:#3B78CD; text-decoration:none;"href="http://www.bloggertrix.com/2012/05/how-to-add-smooth-jquery-facebook-like.html"> Get This Gadget</a></div></div></div>

Now you have to replace red color code with your facebook like box code.
To make your own Facebook like box code to click here

You will get box like below.
you have to change your fan page URL with like below i mentioned.

After you can click create code button, you will get popup will like below.


You have to select iFrame and copy that code and replace with red color code that i given.
Now you can save the 'HTML/Javascript'.
You are done. if you have any problem, comment below.

Monday, 26 March 2012

Change Home,Newer Post & Older Post to Page Naviagation

Blogger_page_navigation

Finally, I have done with this cool tricks after going through so many errors. You often see a Home, Newer Post and Older Post ( How to Remove these links? ) link at the bottom of Blog. There is no need to customising these links but if you are interested in blog designing and wants your blog to look more professional then obviously this tutorial is for you. Anyone can easily change these links to Numbered page navigation by going through this tutorial. If your blog having a large number of posts with large number of visitors then visitors on your site can reach to different posts easily. So lets to apply this tricks on the blog.

How To Change Home, Newer Post to Numbered Navigation:-



  1. Login to Blogger Dashboard.
  2. Go to Design /  Edit HTML.
  3. Click "Expand widget templates'.
  4. Download full template before making any changes in it ( More info).
 Blogger_degin_edir-html
  1. Find following piece of code in template.
 ]]></b:skin>

  1. Paste the following code just above it.
<!.. Plugins By Shahbaz Malik at http://internetricks4u.blogspot.com ..> 

#blog-pager-newer-link {display:none;}

#blog-pager-older-link { display:none; }

#blog-pager {display:none; }

.showpageArea a{text-decoration:none;}

 .showpageNum a {text-decoration:none;border: 1px solid #cccccc;margin:0 3px;padding:3px;}

.showpageNum a:hover
{border: 4px solid #cccccc;background-color:#cccccc;text-decoration:none;}

.showpagePoint
 {color:#333;text-decoration:none;border: 1px solid #cccccc;background: #cccccc;margin:0 3px;padding:3px;}

.showpageOf
{text-decoration:none;padding:3px;margin: 0 3px 0 0;}
.showpage a
{text-decoration:none;border: 1px solid #cccccc;padding:3px;}

.showpage a:hover
{text-decoration:none;}
.showpageNum a:link,.showpage a:link
{text-decoration:none;color:#333333;}

  1. Find </body> in template and paste following code just above it.
<b:if cond='data:blog.pageType != &quot;item&quot;'><b:if cond='data:blog.pageType != &quot;static_page&quot;'><script type='text/javascript'>var pageCount=5;var displayPageNum=5;var upPageWord =&#39;Previous&#39;;var downPageWord =&#39;Next&#39;;                                                     </script>                                                                        <script src='http://blogger-page-navigation.googlecode.com/files/blogger-page-navi..js' type='text/javascript'/></b:if></b:if> 
  1. Finally save the template and see the result.

Note:Make Following Modification

  • pagecount=5 is the number of post per page.
  • displayPagenum=5 additional page navigation number that will be displayed on the page.
If you find difficulty in this tutorial then comments are always open for that. More article by the same author