Friday, January 14, 2011

How To Create JQuery Featured Content Slideshow

0 comments



Instructions To Follow:


STEP #1
Log in to Blogger, go to Layout -> Edit HTML
and mark the tick box "Expand Widget Templates"

STEP #2
Now find (CTRL+F) this code in the template:
</head>
And immediately before it, paste this code:




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

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

$(document).ready(function() {

//Execute the slideShow, set 6 seconds for each images
slideShow(3000);

});

function slideShow(speed) {


//append a LI item to the UL list for displaying caption
$('ul.slideshow').append('<li id="slideshow-caption" class="caption"><div class="slideshow-caption-container"><h3></h3><p></p></div></li>');

//Set the opacity of all images to 0
$('ul.slideshow li').css({opacity: 0.0});

//Get the first image and display it (set it to full opacity)
$('ul.slideshow li:first').css({opacity: 1.0});

//Get the caption of the first image from REL attribute and display it
$('#slideshow-caption h3').html($('ul.slideshow a:first').find('img').attr('title'));
$('#slideshow-caption p').html($('ul.slideshow a:first').find('img').attr('alt'));

//Display the caption
$('#slideshow-caption').css({opacity: 0.7, bottom:0});

//Call the gallery function to run the slideshow
var timer = setInterval('gallery()',speed);

//pause the slideshow on mouse over
$('ul.slideshow').hover(
function () {
clearInterval(timer);
},
function () {
timer = setInterval('gallery()',speed);
}
);

}

function gallery() {


//if no IMGs have the show class, grab the first image
var current = ($('ul.slideshow li.show')?  $('ul.slideshow li.show') : $('#ul.slideshow li:first'));

//Get next image, if it reached the end of the slideshow, rotate it back to the first image
var next = ((current.next().length) ? ((current.next().attr('id') == 'slideshow-caption')? $('ul.slideshow li:first') :current.next()) : $('ul.slideshow li:first'));

//Get next image caption
var title = next.find('img').attr('title');
var desc = next.find('img').attr('alt');

//Set the fade in effect for the next image, show class has higher z-index
next.css({opacity: 0.0}).addClass('show').animate({opacity: 1.0}, 1000);

//Hide the caption first, and then set and display the caption
$('#slideshow-caption').animate({bottom:-70}, 300, function () {
//Display the content
$('#slideshow-caption h3').html(title);
$('#slideshow-caption p').html(desc);
$('#slideshow-caption').animate({bottom:0}, 500);
});

//Hide the current image
current.animate({opacity: 0.0}, 1000).removeClass('show');

}

//]]>
</script>

<style type="text/css">
ul.slideshow {
list-style:none;
width:600px;
height:240px;
overflow:hidden;
position:relative;
margin:0;
padding:0;
font-family:Arial,Helvetica,Trebuchet MS,Verdana;
;
}
ul.slideshow li {
position:absolute;
left:0;
right:0;
}
ul.slideshow li.show {
z-index:500;
}
ul img {
width:600px;
height:240px;
border:none;
}
#slideshow-caption {
width:600px;
height:70px;
position:absolute;
bottom:0;
left:0;
color:#fff;
background:#000;
z-index:500;
}
#slideshow-caption .slideshow-caption-container {
padding:5px 10px;
z-index:1000;
}
#slideshow-caption h3 {
margin:0;
padding:0;
font-size:16px;
}
#slideshow-caption p {
margin:5px 0 0 0;
padding:0;
}
</style>






Now click Save Template







STEP #3 Log in to Blogger, go to Layout



page-elements

Add a Gadget of HTML/JavaScript type.


image
Then add this code in to it:.

<ul class="slideshow">

<li><a href="#"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjogUCvmwtxpHYZhOzAGWMWjY9Zyl7X4UMy0JiOxmg93u0Lzp-lVds_dwpn_l3kqeWlCTJSaJiC0pPUqvbVL5Dd_Ojg3gAA-si-swsZdWgV9QV9c-aOscm8Ddu9SHLYSE2yiliMfEDkfp4/s1600/1.jpg" title="This is featured post 1 title" alt="Replace This Text With Your Featured Post 1 Description." /></a></li>

<li><a href="#"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjVgWSc6ocAgWjhjR_ej3u4TYHPoQlXbBc3MEZmtZJXf8UU4ImYy61l7EG4iG6AUFo-pHBQ-RzHwq6Cxu8VsvKzHsIROWxt-hbh4Pgc2soh1rVk5rpH4d_5KaWc8-EAQaZeor2I1oyYM4/s1600/2.jpg" title="This is featured post 2 title" alt="Replace This Text With Your Featured Post 2 Description." /></a></li>

<li><a href="#"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfvG5vpVSzc7u_xC9PpQ817Tytshlk1Q4j5cz5nVC6w8Zvmu_K15cbDrLJUlBUQJWQX54ToS0GPuOEyd1VIkYwybpwnm0YI_BUrRF8iE90nVPWL7P6sMRqQVfvz9WAtmpDaq6c4gHJj44/s1600/3.jpg" title="This is featured post 3 title" alt="Replace This Text With Your Featured Post 3 Description." /></a></li>

<li><a href="#"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWgenh2M2DjbLfmOd0a1GSnm72Cfx3zxy8sr0_Bob9fDtvip0-5lPIjjkw_U2ETASU4sKGSqpum8fv-OIRELF-d0vjtuCv1nGfa3w-iqrG4SqwJ_QtfuxZ7MHqjz0l5Kg-EJsANvTYId8/s1600/4.jpg" title="This is featured post 4 title" alt="Replace This Text With Your Featured Post 4 Description." /></a></li>

</ul>

You can add more slides as you like.

Note : Replace images URLs,"This is featured post X title","Replace This Text With Your Featured Post X Description" with your content.

You are done.

Add a Customized Three Column Footer Widget In Blogger

1 comments
Instructions To Follow:

STEP #1
Log in to Blogger, go to Layout -> Edit HTML
and mark the tick box "Expand Widget Templates"

STEP #2
Now find (CTRL+F) this code in the template:

]]></b:skin>
And immediately before it, paste this code:
/* -----   LOWER SECTION   ----- */
#lower {
       margin:auto;
       padding: 0px 0px 10px 0px;
       width: 100%;
       background:#333434; }
#lower-wrapper {
       margin:auto;
       padding: 20px 0px 20px 0px;
       width: 960px;
}
#lowerbar-wrapper {
     border:1px solid #DEDEDE;
       
background:#fff;        float: left;
       margin: 0px 5px auto;
       padding-bottom: 20px; 
       width: 32%;        text-align: justify;
       font-size:100%;
       line-height: 1.6em;
       word-wrap: break-word;
       overflow: hidden;
}

       .lowerbar {margin: 0; padding: 0;}
       .lowerbar .widget {margin: 0; padding: 10px 20px 0px 20px;}
.lowerbar h2 {
      margin: 0px 0px 10px 0px;
       padding: 3px 0px 3px 0px;
       text-align: left;
       color:#0084ce;         text-transform:uppercase;
      font: bold 14px Arial, Tahoma, Verdana;        border-bottom:3px solid #0084ce; }
.lowerbar ul {
      margin: 0px 0px 0px 0px;
      padding: 0px 0px 0px 0px;
      list-style-type: none;
}
.lowerbar li {
      margin: 0px 0px 2px 0px;
      padding: 0px 0px 1px 0px;
      border-bottom: 1px dotted #ccc;
}


Step#3 Now find the bellow code

</body>just before it, paste this code:


<div id='lower'>
<div id='lower-wrapper'>
<div id='lowerbar-wrapper'>
<b:section class='lowerbar' id='lowerbar1' preferred='yes'>
</b:section>
</div>
<div id='lowerbar-wrapper'>
<b:section class='lowerbar' id='lowerbar2' preferred='yes'>
</b:section>
</div>
<div id='lowerbar-wrapper'>
<b:section class='lowerbar' id='lowerbar3' preferred='yes'>
</b:section>
</div>
<div style='clear: both;'/>
</div> </div>



Now click Save Template






Customization


You can easily customize the look and colours of the this footer widget. I have bolded the important parts in the CSS code above. Read the descriptions below carefully to better stylize your three column widget. For changing colours use our Hex Color Code Chart & Generator   or  Html Color Codes Generator
background:#333434;   Changing the six digit colour code will change the background colour of this widget.

width: 960px;  This is the width of the widget. If you want you can adjust this width value in accordance with the width of your blog.

background:#fff;  and    width: 32%; is the background colour and width of the three columns where the widgets are added.





color:#0084ce; This is the Colour of Title Headings 

font: bold 14px Arial, Tahoma, Verdana;  Edit this to change the font size and family.  
 
border-bottom:3px solid #0084ce;   Edit this to change the thickness, style and colour of the border that appears at the bottom of Title Heading


border-bottom: 1px dotted #ccc; Editing this will change the size, style and colour of the border that appears below links.

 

That’s All!

How to Add Floating Back to Top Icon Button in Blogger

0 comments


Today we’ll learn a very easy and important trick, Specially if you have got a lot of content on you blog pages, And if you want your blog to be easy to use for your visitors, A back to top link or button on your blogspot blog will make it easier and faster to your visitors when it comes to fast exploring and browsing.

Ad
Now we’ll see how to add


STEP #1 Log in to Blogger, go to Layout


page-elements

Add a Gadget of HTML/JavaScript type.


image
Then add this code in to it:.


<script type="text/JavaScript">
var topMargin = 300
var slideTime = 1200
var ns6 = (!document.all && document.getElementById);
var ie4 = (document.all);
var ns4 = (document.layers);
window.setInterval("main()", 10)

function floatObject() {
if (ns4 || ns6) {
findHt = window.innerHeight;
} else if(ie4) {
findHt = document.body.clientHeight;
}
}

function main() {
if (ns4) {
this.currentY = document.floatLayer.top;
this.scrollTop = window.pageYOffset;
mainTrigger();
} else if(ns6) {
this.currentY = parseInt(document.getElementById('floatLayer').style.top);
this.scrollTop = scrollY;
mainTrigger();
} else if(ie4) {
this.currentY = floatLayer.style.pixelTop;
this.scrollTop = document.body.scrollTop;
mainTrigger();
}

}
function mainTrigger() {
var newTargetY = this.scrollTop + this.topMargin
if ( this.currentY != newTargetY ) {
if ( newTargetY != this.targetY ) {
this.targetY = newTargetY
floatStart();
}
animator();
}


}
function floatStart() {
var now = new Date()
this.A = this.targetY - this.currentY
this.B = Math.PI / ( 2 * this.slideTime )
this.C = now.getTime()
if (Math.abs(this.A) > this.findHt) {
this.D = this.A > 0 ? this.targetY - this.findHt : this.targetY + this.findHt
this.A = this.A > 0 ? this.findHt : -this.findHt
} else {
this.D = this.currentY
}
}
function animator() {
var now = new Date()
var newY = this.A * Math.sin( this.B * ( now.getTime() - this.C ) ) + this.D
newY = Math.round(newY)
if (( this.A > 0 && newY > this.currentY ) || ( this.A < 0 && newY < this.currentY )) {
if ( ie4 )floatLayer.style.pixelTop = newY
if ( ns4 )document.floatLayer.top = newY
if ( ns6 )document.getElementById('floatLayer').style.top = newY + "px"
}
}
//-->
</script>
<div id="floatLayer" style="position: absolute; height:20px; width:15; left:650px; top:400px; z-index: 100"><a href="#"><img vspace="0" border="0" hspace="0" alt="Back to Top" width="15" src="http://i35.tinypic.com/sfia38.jpg" height="25" /></a></div>


Now click Save Template






Image Back To Top Buttons With Different Styles

back to top For Blogger
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEid7prMIHb41aYb4jGiSAr3HWqJn5qjh5xL4Mfwo4xc1Hr14Md1ckPK5lVqps6hZcTysc3uESIojbzNsIvZCvVy3TqgZlYNyR51laTMTqMcUqoeTo56_ffsredVWRzY10Gpwzdmxy0L53WF/s1600/bttp-5.png
back to top For Blogger
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjU64feKd0EqCOIHTXTDKPkYcVCVFmEbNhDlGxD9Zl4AjzgcwevUX3OFvloElsPtSBnNkboUOnl8D95-7GoV0GXHLmJA4UJTHJ76Qazt_L_-K3d9ae_7m1-AzSV0i0z3R0qydy1BANCUsgv/s1600/bttp-4.png
back to top For Blogger
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipWjMCbQFU5HEMqLO8lRlewgoH7BgFOl8Ifle_80t1yVa5SeNdbAdTO-yKpwPfs5c0NmVWb2864LJZxvgUndW6ti3n_uqVcZJv0SyM6cla5F_4hE7cPTxLyrkT1VkgXsRzbTxLm7oflFFg/s1600/bttp-3.png
back to top For Blogger
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXBTVJGaOW3bpNSSDn0GftIJ41RqaWlbzkW1RVC9clD_KykCirJ1-JgHzMiMb_1q6EsjlADYBGrNpQMul4lyB-1qkZjKCQIlAQFIpnyTvb_8R7R8Ax3mpDWNA-DlFoidq_WwIKcNmlhy7I/s1600/bttp-1.png
back to top For Blogger
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiL5fh7nWoQ6A5EB_DBTDEiJtTpvXlaUX3sBbTZhwXh_2zvfuqgkbM2GTPi7ACTpbo1l8sQz_6eev39IL8noY67Pj8RXpe_3ff71YPZTKAlBD0Aj824yYgIiB32Cy6fh4ZU-4zDuQ9OdAn8/s1600/bttp-2.png
back to top For Blogger
http://4.bp.blogspot.com/_JwD5r652h00/SvDBBZGgr-I/AAAAAAAAAQg/1X96vgeWqaw/s400/bttp-6.png0/bttp-7.png
back to top For Blogger
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgE95d2PLZZMb9i5MAsmy5ZyjjUz8H2dmZFFYKDEjamctRiWXluSoBe5uoUlgXBiqKhBfSgg69-Uv7qj6zfdJ285mtTX_uRnDrGs0MyFyjvd4xV1Npa6fFawHTGKGaaZDzMnlMciRgTbRuU/s400/bttp-10.png
back to top For Blogger
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDD81pUV9jRlMCHOZdvYiNbz5_ArjUOqal1SghNcSfcauZJljNDV9njsC2Axsh7ATUJVf_NgCjQIucfC8I9-Qkwlm0vvMwd7K8oi3uq_qBOScHFuo4hLR66ou3vWnK_85geR7SvtUqSZAb/s400/bttp-9.png
back to top For Blogger
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3SXGZE9zezPJmak2-qhid6LfH-H9V5xjw-IcDUTt7v0sR65v0AAUerhSUerbrEbvdvVtouPgZF1R_iSknG0zNltJltLnzWoW2DaiYotIDuL6ticzVCBut80f0YPbI9tu-d5GJ6Hqgeydh/s400/bttp-8.png
back to top For Blogger
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhNFNSnl185Raqm6BJbgaSUIeG3faUrmCPtE5WxpyV-Z-sLuyPFiSE0RgmatKMrD9tVhYZMq1_leZAYvBAQ_5vVdzWz6G9DtAaATXZQXh5B0fnPQ-V8Ne5VvNhcbBv8bBEk5WGUcuAzjTj/
back to top For Blogger
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirRF_Tp0zh5teW3krd-1ya3Oqc7tIp0S0CnCeAJLzHKV3-5OASmnNL21v0QqQI6zlAKRX8iRkNm-sQU-z3dJ6N8tPeDG-UKWesAu8HUkOwn_NGnjquxnTWwcsE8Rpn5yhH561laA0tVDIT/s400/bttp-11.png
back to top For Blogger
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMtKMMHi4D_4m_hxjn8aHRYGC0r74XJoIL-p2THhxGLyE7jjrjDeE9txkoRjrnQ6QWMqWmHRaY-lU5WCVgM_1isnFobpXVsiVC7rxSd6M9Gn6ttFZ7HgF5X55QvlU-uwB0VUhYbn_SrFSn/s400/bttp-12.png
back to top For Blogger
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhecWdsD91iGbLYKhGUIdJkfsKcl7XRmHbfQyNIxDaWVYYssK-d-_CLYdlAYkPGhLI2lSDvblwDz9GUnby8qaRK8VMQqOucx6jSTYmi_aDjNNLutuf0emjkeh-XUPmr3jEvr4_154yGPNA4/s400/bttp-13.png
back to top For Blogger
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiupD6M8CGyIfhW9O0TdK9I36iwY_twXDeXyVVsHzQiXi52v1KnIYIxilkCoweyBTwEYXEvVJO-3JE6HpTKUy3JIEPrRsHc8EBZGtmMeYPvA6aGygyZT1ZiaBv603LUfuoPI_6PnhyphenhyphenisjF0/s400/bttp-14.png
back to top For Blogger
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHL7hq5GwPw7st6F4At12vY3br0CJOi2i7nvLGmENfH1xNJIeE1QSDxzg4-B2u4MC9j9TJwMn67GyE_A0aTPiLmRM39v83X8izg6nTv-tt77R1N1tok_0x00rRcOoFd41NdXztuq_a9kPF/s400/bttp-15.png
back to top For Blogger
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgICxmrOrmV4SX-Csasv780ylww7FsKJGuYCMl4MviAufAHQoyn-qaYAkIQaTAp8cF5Rx_6u259YXf4IXqxIYQgKDHEGLzB8LmNHBJ4YtvYT1-2lacNnhcsqZueIJeasOz3i6w2oIH__ezN/s1600/bttp-16.png
back to top For Blogger
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqDLOaiczQ9OCaL_4ERjrJ5EJX0Jr-aJWpK-_L5kX4zDIFfnmw6iwnMetmexpQJiODm_Ovm7fVGAYWrEzUPUCImlJx1lqP_DQxUkqTq1iBBMymqYnnisVo2V66lNEuCpyCcT99geoffo_P/s400/bttp-17.png
back to top For Blogger
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUslU-Tc9wcSTSykTaGRX8HsqDRoC9TZdKCGNuSA_R4pmGaZcTlIlAR5V1HWte4V6Xg_O_IFHHuXdPpeXy2eh7vwhyphenhyphenz4tMDgUqRY_diE1Kyi2ONdaR3gfvCJ7cB0whhjJEgnbOcRmnyYEn/s400/bttp-19.png
back to top For Blogger
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkZDry_tNW1KUgtBvnImW-1CEbDcmw2Xa5qTNSMm0HXqfn0A6JoAiNClZVbExBeEcBBBzB9j71NWXEjLUCXdOhI6hT9fLOWBxMp7jZU-Mm3KZGcpFdRFJfngqdq1um7x4-u0Bt4cXKJj0J/s400/20.png

Add Floating Share Buttons Like Mashable to Blogger

0 comments

Instructions To Follow:

STEP #1

Log in to Blogger, go to Layout -> Edit HTML

and mark the tick box "Expand Widget Templates"


STEP #2

Now find (CTRL+F) this code in the template:
]]></b:skin>
And immediately before it, paste this code:


#sharebox {
background-color:#FFFFFF;
border-color:#C1CDCD;
border-style:solid;
border-width:1px;
left:103px;
bottom:40px;
margin-top:10px;
position:fixed;
width:64px;
}

#sharebox .float {margin:7px}
.FBConnectButton_Text
{
font-size: 8px;
padding:2px 4px 3px !important;
}


Step#3 Now find the bellow code

<div class='post-header-line-1'/>just before it, paste this code:

<b:if cond='data:blog.pageType == &quot;item&quot;'>
<div id='sharebox'>
<div class='float'><script src='http://tweetmeme.com/i/scripts/button.js' type='text/javascript'/></div>
<div class='float'><a href='http://www.facebook.com/sharer.php' name='fb_share' type='box_count'>Share</a><script src='http://static.ak.fbcdn.net/connect.php/js/FB.Share' type='text/javascript'/><div class='clear'/></div>
<div class='float'><a class='google-buzz-button' data-button-style='normal-count' href='http://www.google.com/buzz/post' title='Post on Google Buzz'/>
<script src='http://www.google.com/buzz/api/button.js' type='text/javascript'/></div>
<div class='float'><script src='http://www.stumbleupon.com/hostedbadge.php?s=5'/></div>
</div>

</b:if>

Now click Save Template

Thats it and remember, the floating widget is visible only for blog post, so this widget won’t be visible on your blog homepage.

Followers

Blogumulus by Roy Tanck and Amanda Fazani
Free Blogger Tips, Hacks, Widgets, Templates and more