Monday, May 23, 2011

A Simple Stylish jQuery Featured Slideshow For Blogger


Earlier this week i brought you a very cool jQuery Featured Image Slider that can slide images and videos.In that post i explained how i hadn't covered featured sliders or slideshows too much but was gonna make up for it.So here we have another featured slider slash slideshow slash image carousel.The slideshow in this post has a simple style but that gives us some extra options, the main one is you can easily make it any size to suit your blog or the images you want to use.

In the demo i have made it quiet small so it will fit above the posts section.But you can have it fit neatly above your posts or you can have it span across your full blog in the cross column zone.

View Demo Button

Pretty nifty, credit goes to Sohtanaka and the download for Wordpress or other platforms can be found there.Lets see how you can add it to Blogger.

Add The Simple Stylish Featured Slideshow To Blogger


Step 1. In your Blogger dashboard click Design > Edit Html

Design Edit Html Blogger

Step 2. Find the following piece of code in your blogs Html : (Click Ctrl and F for a search bar to help find the code - More Info)

]]>

Step 3. Copy and Paste the following code Directly Above / Before ]]>

/*--Main Container--*/
.main_view {
float: left;
position: relative;
}
/*--Window/Masking Styles--*/
.window {
height:250px; width: 500px;
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 Styles--*/
.paging {
position: absolute;
bottom: 40px; 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/AVvXsEjHbkXOMos2Ze-YEgNZFYCCtM3Mbvdb67kgf6DEpCmcjdJCR4Jn0u50fNpylw8rJZVqeIB8hH34-lFgqyiUCihrRJ8aHYLc5nz5wO8GnNDhihkWbN3CUqES53Sh6gnUkpuk1c2Ldkrt7gPy/s1600/paging_bg2.png) no-repeat;
display: none; /*--Hidden by default, will be later shown with jQuery--*/
}
.paging a {
padding: 5px;
text-decoration: none;
color: #fff;
}
.paging a.active {
font-weight: bold;
background: #920000;
border: 1px solid #610000;
-moz-border-radius: 3px;
-khtml-border-radius: 3px;
-webkit-border-radius: 3px;
}
.paging a:hover {font-weight: bold;}

Change the size - I currently have the size set to 500x250 as highlighted in the code above.You can change this to make it bigger and remember that size is also the size of the images you add.

Step 4. Find the following piece of code in your blogs Html : (Click Ctrl and F for a search bar to help find the code - More Info)


Step 5. Copy and Paste the following code Directly Above / Before


Step 6. Save your template.

That's the Script and Css added to your template to make the slider work now we add the html.

Step 1. OK back to your blogs design page and click Add A Gadget > Choose Html/Javascript :





Step 2. Copy and Paste the following code into the Html/Javascript gadget ;


Adding Your Slides

Highlighted in red are the URLs this is were the image will lead to when clicked.
Highlighted in green is the Image URLs replace these with the URLs of your images.

To add more than 5 slides simply add another link and image the same as the ones there now.But make sure to add another number to the pager highlighted in blue.So at the moment there are 5 slides and the pager in blue goes to 5.If you added a 6th slide you would add it like this :

6

Once you have your images and links added save the gadget and drag and drop it into position.

That's your simple jQuery slider added to Blogger.

No comments:

Post a Comment