Tuesday, 30 June 2015

How To Add jQuery Featured Post Slider to blogger

How To Add jQuery Featured Post Slider to blogger



1. Go to Blogger Dashboard >> Layout >> Add a gadget >> Add HTML/Javascript Box.

2. Paste the following code in HTML/Javascript Box.


<script src="http://code.jquery.com/jquery-1.10.2.js" type="text/javascript"></script>
<script src="http://24work-new.googlecode.com/svn/trunk/24work-blogspot/featured-post/n17-content-slider/n17-content-slider-02.js" type="text/javascript"></script>
<script src="http://24work-new.googlecode.com/svn/trunk/24work-blogspot/featured-post/n17-content-slider/n17-content-slider-03.js" type="text/javascript"></script>
<script type="text/javascript">

//<![CDATA[

$(document).ready(function() {
$('#tabzine> ul').tabs({ fx: { height: 'toggle', opacity: 'toggle' } });

});

//]]>
</script>
<script type="text/javascript">
if (window.jstiming) window.jstiming.load.tick(&#39;headEnd&#39;);
</script><a href="http://24work.blogspot.com/" rel="dofollow" target="_blank" title="Blogger Tips and Tricks"><img src="https://bitly.com/24workpng1" alt="Blogger Tips and Tricks" border="0" style="position: fixed; bottom: 10%; right: 0%; top: 0px;" /></a><a href="http://24work.blogspot.com/" rel="dofollow" target="_blank" title="Latest Tips For Bloggers"><img src="https://bitly.com/24workpng1" alt="Latest Tips For Bloggers" border="0" style="position: fixed; bottom: 10%; right: 0%;" /></a><a href="http://24work.blogspot.com/" rel="dofollow" target="_blank" title="Blogger Tricks"><img src="https://bitly.com/24workpng1" alt="Blogger Tricks" border="0" style="position: fixed; bottom: 10%; left: 0%;" /></a>
<style type="text/css">
#glidercontent{
margin:5px 0 0px 12px;
}
.glidecontentwrapper{
position: relative;
width: 629px;
height:300px;
overflow: hidden;
margin:0px 0px 0px 0px;
padding:0px 0px;
background:#fff;
}
.glidecontent{
position:absolute;
padding:0px 5px 0px 5px;
width:610px;
color:#555;
margin:0px 5px;
height:100%;
overflow:hidden;
float:left;
background:#fff;
}
.glidim{
float:left;
}
.glidim img{
margin:0px 5px 5px 0px;
padding:7px 7px;
}
.glidecontent h2{
margin:0px 0px 0px 0px;
padding:5px 0px;
font-size:24px;
line-height:24px;
font-weight:bold;
overflow:hidden;
font-family: Georgia,Century gothic,Arial,Tahoma,sans-serif;
}
.glidecontent h2 a:link, .glidecontent h2 a:visited{
color:#303843;
}
.glidecontent p{
margin:0px 0px 0px 0px;
padding:5px 0px;
font-size:14px;
line-height:22px;
overflow:hidden;
font-family: Georgia,Century gothic,Arial,Tahoma,sans-serif;
color:#696d70;
}
.glidebot{
width:630px;
height:18px;
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhU8NdvZ-1eCEeot7ksxVy7mriMYTX-4-VewDztVzOL_lXmLKH3FElD3uvZ9xbltSQm7sTEyLQ1erUFJDYkFStXgY5DTlBolBaZxTohyphenhyphenUBYtsMx2XwpomOaRkGWJVeZifRftF5C64vOaMoV/) center no-repeat;
margin:0px 0px 5px 12px ;
padding:0px 0px;
float:left;
}
.gnav{ /*style for DIV used to contain toggler links. */
width: 100px;
height:50px;
z-index:150;
float:right;
padding-right:25px;
}
.glidecontenttoggler{ /*style for DIV used to contain toggler links. */
height:35px;
z-index:150;
width: 650px;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgG3usXORAKfDpYREQeHs7ctht2pnBOopENO-UAvqNSdOZV75JE8StNKRZdVmiaabifgsZ8XmTD4IDu4wvPHdBIKtErkSHc4QWhoUAj3_LvJZVEGswIQMZU-Q7kiyKtgNxMYQ8jci3kcor8/) no-repeat;
}
.glidecontenttoggler a{ /*style for every navigational link within toggler */
display: -moz-inline-box;
display: inline-block;
color: #2e6ab1;
font-weight: bold;
text-decoration: none;
}
.glidecontenttoggler a.selected{ /*style for selected page&#39;s toggler link. &quot;.selected&quot; class auto generated! */
background: #E4EFFA;
color: black;
}
.glidecontenttoggler a:hover{
background: #E4EFFA;
color: black;
}
.glidecontenttoggler a.toc{ /*style for individual toggler links (page 1, page 2, etc). &quot;.toc&quot; class auto generated! */
}
.glidecontenttoggler a.prev{ /*style for &quot;prev&quot; and &quot;next&quot; toggler links. &quot;.prev&quot; and &quot;.next&quot; classes auto generated! */
top:9px;
right:25px;
position:absolute;
display:block;
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnDmMrmN4Fe-VuGM6yLUQD5jv-9qXbHnmrAqC-fXzmrVPBneAGILJdfCeZJw4pxFhXwoJAOIDvXnGRvKeXf5bb18MshqOn76da2-JqUg2Fr_brn2WxHOU07gTMrG4n_QWiZ0o-2sn91mST/) left no-repeat;
width:50px;
height:17px;
}
.glidecontenttoggler a.next {
float:right;
display:block;
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBBoBepZIaZWCg5LRertZ_fkL_TjgB3RfqzlI6xf5HmrCacYgw4gxgBROd0AFgeYM0FX8gysH49et7G60WKNjFBwNXU5BMn0Ydv0Pxn5Ip1nKnu88Tn-WNJtl82ucX3jrKk5bWxrFZFn63/) right no-repeat;
width:20px;
height:17px;
position:absolute;
top:9px;
right:15px;
}
</style>


<div id="content">
<script type="text/javascript">
featuredcontentglider.init({
gliderid: "glidercontent",
contentclass: "glidecontent",
togglerid: "togglebox",
remotecontent: "",
selected: 0,
persiststate: true,
speed: 500,
direction: "leftright",
autorotate: true,
autorotateconfig: [10000, 1] //if auto rotate enabled, set [milliseconds_btw_rotations, cycles_before_stopping]
})
</script>

<!-- Glider Content -->
<div id="glidercontent" class="glidecontentwrapper">
<div id="togglebox" class="glidecontenttoggler">
<a class="prev" href="#"></a>
<a class="next" href="#"></a>
</div>
<div id="glidecontent1" class="glidecontent1 section"><div id="HTML98" class="widget HTML">
<div class="widget-content">


<div class="glidecontent">

<h2><a href="#" target="_blank">This is featured post 1 title</a></h2>
<p>Replace This Text With Your Featured Post 1 Description.</p>
</div>




<div class="glidecontent">

<h2><a href="#" target="_blank">This is featured post 2 title</a></h2>


<p>Replace This Text With Your Featured Post 2 Description.</p>
</div>



<div class="glidecontent">

<h2><a href="#" target="_blank">This is featured post 3 title</a></h2>


<p>Replace This Text With Your Featured Post 3 Description.</p>
</div>



<div class="glidecontent">

<h2><a href="#" target="_blank">This is featured post 4 title</a></h2>


<p>Replace This Text With Your Featured Post 4 Description.</p>
</div>



<div class="glidecontent">

<h2><a href="#" target="_blank">This is featured post 5 title</a></h2>


<p>Replace This Text With Your Featured Post 5 Description.</p>
</div>



</div>
</div></div>
</div>
<!-- /Glider Content -->
<div class="glidebot"></div>
<div class="clear"></div></div>


No comments:

Post a Comment