efek loading ini hanya dibuat dengan CSS , untuk menambahkan efek menarik ini di blog anda, silahkan ikuti langkah-langkah berikut: 1. Untu...
Automatic Recent Posts Slider With jQuery For Blogger
Now save your template. Step 3 -Adding The Gadget Now go to Page Layout Add a Gadget > HTML/JavaScript Paste below piece of code and save...
Automatic Recent Posts Slider With jQuery For Blogger
Recent posts slider is a best way to show of you blog's recent posts as a slide show.You may see the slider such slider in many wordpress blogs but when coming to blogger it is certainly not much seen.This widget is shared by Abu-Farhan and using my own tricks further I customized this plugin to works perfect with your blog.If you are thinking that customization's will be hard then you are wrong,this gadget is very easy to customize and very easy to add.You don't need to add images,text or any links like other sliders all is Automatic :D. Here I am giving a tutorial about adding recent post slider to blogger.First take a preview on slider.
How To Add This Slider To Blogger?
Step 1 - Applying Styles
- Go to Blogger Dashboard > Design > Edit HTML. (In new User Interface It Is - Dashboard > Template)
- As always download a copy of your template first.
- Now find for ]]></b:skin>
- Add below code just before ]]></b:skin>
/* START EasySlider By helperblogger.com */
#slide-container {
height: 360px;
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 {
/*
define width and height of list item (slide)
entire slider area will adjust according to the parameters provided here
*/
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;
}
/* END EasySlider By helperblogger.com */
You can edit above CSS values as you wish.You may use our HTML Editor to see a live preview of your changes.(Note - If you are editing this gadget in HTML Editor then you have to add all three codes simultaneously in editor)
Step 2 - Adding JavaScript
- Now find for </body> tag
- Add below code just after/below </body> tag.
<!-- Start easy content slider by helperblogger.com -->
<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>
<!-- End easy content slider by helperblogger.com -->
Now save your template.
Adding The Gadget
- Now go to Page Layout
- Add a Gadget > HTML/JavaScript
- Paste below piece of code and save it.
<div id="slider">
<script style="text/javascript" src="http://code.helperblogger.com/easySlider.min.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://yourblog.blogspot.com/feeds/posts/default?orderby=published&alt=json-in-script&callback=showgalleryposts&max-results=999999"></script>
</div>
- Now replace
yourblog.blogspot.com
with your own blog url.[Code Line - 10] (Only change blog URL don't change any other things.
- To change number of post find this
var numposts_gal = 6;
line in above code. (Code Line - 4)
- If you want to change number of characters to show in description find this piece of code
var numchars_gal = 150;
(Code Line - 5)
Follow this tutorial to show this gadget only on specific page or only in homepage.
Recent posts slider is a best way to show of you blog's recent posts as a slide show.You may see the slider such slider in many wordpres...
What can I do with CSS?
You can change almost any aspect of your blog's appearance just by
changing the style sheet in your template. Some of the most common
things to do are listed here. For more in-depth tutorials and examples,
please see W3 Schools CSS Examples and The W3C Introduction to CSS.
Our default templates have all the CSS information towards the top, between
<style></style>
tags. You'll see a bunch of lines there that look like this:The highlighted line shows the style that is applied to every
<h3>
tag in your blog. What we're going to describe here are some options
for how to style it. Any of the pieces of code below can be inserted
between the { curly brackets } in the style sheet.
Code | Examples | |
---|---|---|
Colors | ||
color:blue; | This text is blue. | |
background:yellow; | This has a yellow background. | |
You can insert the names of many common colors here (e.g. red, green, yellow) or you can use hexadecimal codes for a greater range of colors (e.g. #0033AA). For more information on color, please see the Web Color Reference. | ||
colspan="2">Borders | ||
border:solid 1px red; | This has a red border. | |
A border can be solid, dotted or dashed. The width here is specified in pixels (px). Colors can be names or hexadecimal codes. To only do a border on one side, use border-top, border-bottom, border-right, or border-left. | ||
Fonts | ||
font-family:"Times New Roman",Serif; | This is in a serif font. | |
font-family:Verdana,Sans-Serif; | This is in a sans-serif font. | |
You can specify a list of font choices. If the first one isn't available on your reader's computer, the next will be used, and so on. Indicating "Serif" will use any available serif font. | ||
font-size:24px; | This text is 24 pixels high. | |
The units of size can be pixels (px), points (pt), inches (in) or percent of the default size (%). | ||
font-weight:bold; | This text is bold. | |
Choices are bold and normal. | ||
text-decoration:underline; | This text is underlined. | |
The text decoration can be set to none, underline, overline, or line-through. This is most commonly used to remove the underlining on links. | ||
text-align:right; | This text is right aligned. | |
The alignment can be set to left, right, or justify. | ||
Margins and Padding | ||
margin:15px; | This has a 15px margin all around. | |
padding:15px; | This has 15px of padding all around. | |
Margin and padding both specify the amount of space around something. The difference is that a margin is outside the border and padding is inside. (The border here is just for illustration.) As with the border, you can specify one side at time with margin-left, padding-top, etc. You can also set all at once with margin:1px 2px 3px 4px; where the order is top, right, bottom, left. |
Notes:
You can also use inline styles, if you want to do one-time formatting
for a specific piece of text in a post. Here is the format to use:
<span style="color:red;">
This text will be red.</span>
updated
03/08/2013
Rate this article:
Feedback recorded. Thanks!
You can change almost any aspect of your blog's appearance just by changing the style sheet in your template. Some of the most common th...
What can I do with CSS?
Our default templates have all the CSS information towards the top, between
<style></style>
tags. You'll see a bunch of lines there that look like this:The highlighted line shows the style that is applied to every
<h3>
tag in your blog. What we're going to describe here are some options for how to style it. Any of the pieces of code below can be inserted between the { curly brackets } in the style sheet.Code | Examples | |
---|---|---|
Colors | ||
color:blue; | This text is blue. | |
background:yellow; | This has a yellow background. | |
You can insert the names of many common colors here (e.g. red, green, yellow) or you can use hexadecimal codes for a greater range of colors (e.g. #0033AA). For more information on color, please see the Web Color Reference. | ||
colspan="2">Borders | ||
border:solid 1px red; | This has a red border. | |
A border can be solid, dotted or dashed. The width here is specified in pixels (px). Colors can be names or hexadecimal codes. To only do a border on one side, use border-top, border-bottom, border-right, or border-left. | ||
Fonts | ||
font-family:"Times New Roman",Serif; | This is in a serif font. | |
font-family:Verdana,Sans-Serif; | This is in a sans-serif font. | |
You can specify a list of font choices. If the first one isn't available on your reader's computer, the next will be used, and so on. Indicating "Serif" will use any available serif font. | ||
font-size:24px; | This text is 24 pixels high. | |
The units of size can be pixels (px), points (pt), inches (in) or percent of the default size (%). | ||
font-weight:bold; | This text is bold. | |
Choices are bold and normal. | ||
text-decoration:underline; | This text is underlined. | |
The text decoration can be set to none, underline, overline, or line-through. This is most commonly used to remove the underlining on links. | ||
text-align:right; | This text is right aligned. | |
The alignment can be set to left, right, or justify. | ||
Margins and Padding | ||
margin:15px; | This has a 15px margin all around. | |
padding:15px; | This has 15px of padding all around. | |
Margin and padding both specify the amount of space around something. The difference is that a margin is outside the border and padding is inside. (The border here is just for illustration.) As with the border, you can specify one side at time with margin-left, padding-top, etc. You can also set all at once with margin:1px 2px 3px 4px; where the order is top, right, bottom, left. |
Notes:
You can also use inline styles, if you want to do one-time formatting for a specific piece of text in a post. Here is the format to use:
<span style="color:red;">
This text will be red.</span>
Feedback recorded. Thanks!
You can change almost any aspect of your blog's appearance just by changing the style sheet in your template. Some of the most common ...
Edit CSS in the Template Designer
Blogger's Template Designer allows you to customize almost any aspect of your blog's appearance through the use of cascading style sheets (CSS). To add custom CSS snippets to your template, go to the Template tab and click Customize. Then, add your code to the field located in the Advanced | Add CSS tab. Changes you make will reflect instantly in a live preview beneath the editor.
Note: Editing CSS allows you to change the look and
feel of your blog. For changes to the actual content of your blog,
including the adding of gadgets or changes to the layout, click Edit HTML on the Template tab. Also remember that, like other customizations, your CSS will be removed if you change designs.
For a comprehensive list of various CSS tweaks, please see the What can I do with CSS article in our Help Center.
updated
02/15/2013
Blogger's Template Designer allows you to customize almost any aspect of your blog's appearance through the use of cascading style s...
Edit CSS in the Template Designer
Note: Editing CSS allows you to change the look and feel of your blog. For changes to the actual content of your blog, including the adding of gadgets or changes to the layout, click Edit HTML on the Template tab. Also remember that, like other customizations, your CSS will be removed if you change designs.
For a comprehensive list of various CSS tweaks, please see the What can I do with CSS article in our Help Center.
Blogger's Template Designer allows you to customize almost any aspect of your blog's appearance through the use of cascading style ...