Thursday, 24 November 2016

Add JavaScript Image Slider to Blogger Easily

Adding image slider to your blogger blog does only beautify your blog, but make it easy for users to easily navigate through your blog with no much hustle.

Today I’m sharing a cool JavaScript image slider for blogger. It could be usable as featured content on blogger blog. This image slider is created by A really cool slider is this. It has pretty nice sliding effect, and a less loading time as created by Javascript, no jQuery or flash used. And another thing is it’s easily customizable. I have customized it little to suite perfectly for blogger blog. See Demo or download source code from below link.

Let’s Install the Image Slider to your Blogger Blog

1. Go to Blogger Dashboard > Layout > Add a Gadget
2. Select HTML/Javascript
3. Copy the code below and paste on it.
<style type="text/css">
/* */

#sliderFrame {
    position: relative;
    width: 700px;
    margin: 0 auto 40px;

#slider {
    width: 700px;
    height: 306px;
    /* Make it the same size as your images */
    background: #fff url( no-repeat 50% 50%;
    position: relative;
    margin: 0 auto;
    /*make the image slider center-aligned */
    -webkit-box-shadow: 0px 1px 5px #999999;
    -moz-box-shadow: 0px 1px 5px #999999;
    box-shadow: 0px 1px 5px #999999;

#slider img {
    position: absolute;
    border: none;
    display: none;

/* the link style (if an image is wrapped in a link) */

#slider a.imgLink {
    z-index: 2;
    display: none;
    position: absolute;
    top: 0px;
    left: 0px;
    border: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;

/* Caption styles */, {
    position: absolute;
    width: 100%;
    height: auto;
    padding: 0;
    left: 0px;
    bottom: 15px;
    z-index: 3;
    overflow: hidden;
    font-size: 0;
} {
    background-color: black;
} {
    font: bold 14px/20px Arial;
    color: #EEE;
    z-index: 4;
    padding: 10px 0;
    text-align: center;
} a {
    color: #FB0;
} a:hover {
    color: #DA0;

/* ------ built-in navigation bullets wrapper ------*/

div.navBulletsWrapper {
    top: 320px;
    left: 280px;
    /* Its position is relative to the #slider */
    width: 150px;
    background: none;
    padding-left: 20px;
    position: relative;
    z-index: 5;
    cursor: pointer;

/* each bullet */

div.navBulletsWrapper div {
    width: 11px;
    height: 11px;
    background: transparent url( no-repeat 0 0;
    float: left;
    overflow: hidden;
    vertical-align: middle;
    cursor: pointer;
    margin-right: 11px;
    /* distance between each bullet*/
    _position: relative;
    /*IE6 hack*/

div.navBulletsWrapper {
    background-position: 0 -11px;

.intro {
    bottom: 0;
    color: rgba(0, 0, 0, 0.2);
    font-size: 16px;
    position: absolute;
    right: 0;
    text-decoration: none;
    z-index: 99999;

/* --------- Others ------- */

#slider {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    -o-transform: translate3d(0, 0, 0);
<script src="" type="text/javascript"></script>
<div id="sliderFrame">
    <div id="slider">
        <a href="#"><img src="" alt="#htmlcaption1" /></a>
        <a href="#"><img src="" alt="Go UP!" /></a>
        <a href="#"><img src="" alt="Pure Javascript. No jQuery. No flash." /></a>
        <a href="#"><img src="" alt="#htmlcaption2" /></a>
        <a href="#"><img src="" alt="Stay Connected" /></a>
    <div id="htmlcaption1" style="display: none;">
        Image Slider by <a href="" target="_blank"></a>
    <div id="htmlcaption2" style="display: none;">
        <a href="" target="_blank">CSS</a> <a href="" target="_blank">JavaScript</a> Rocks.
 4. Now you can change Image URL with your own image, slider link/permalink, image caption etc. as your way.


Post a Comment

We love comment.

Your comment encourages us to serve you more...