Graphic Web Design, Computer Network, Balinese Culture

No comments
Album with Image Slider on Blogger
Ok, for those of you blogger fans, on this time I will give you my notes on the applying of jquery cycle and easing to make an Album Image Slider on your blog. Image slider that I have made using with scroll horizontal for the images. Album Image slider it looks good we apply to the content post on your blog that much images or image gallery. You can combine it with the image sexy lightbox evolution to the images that will scroll horizontally. I have been applied on the post that titled as The Soul of Balinese Carvings at the last pictures!

In order to make an Album using Image Slider we are going to add any two links of jquery and define jquery function slider using class or id css that related with the images list that will given the image slider effect. The Album of image slider actually just display the image from images list that that will display horizontal scroll animation one by one. Ok we shall practice in the content that uses gallery images. If you are not sure or not confidence to apply something new on the template script, backup your template code at first.

1. Go to your blogger dashboard, click on Template>Edit HTML. On the script code of your template, your template must be used jquery.min.js link on the head section. Inside the script templates, press Ctrl+F on your keyboard, and type just "min.js". Add jquery.cycle.all.js and jquery.easing.js together with function plugin for image slider, just put below of jquery.min.js link, Let's See the picture below!

Script Code is added as follows:

<script src='' type='text/javascript'/>
<script src='' type='text/javascript'/>

And define the function animation slider, #art-slide is the css id that used in the image style list that we will make.
<script type='text/javascript'>
    fx:     'scrollLeft', 
    easing: 'easeOutBack', 
    delay:  -4000 

All Script that mentioned above placed into the head of the template, as shown like the right picture above, you can parse the function plugin code at first. But a long as my experience, the template blog will directly parse the function code that we added automatically.

2. Defining the css id that we used in the function code in this case i use #art-slide. Find the place for its location, I was just placed at the end of the skin template. Ctrl+F on the script of your templates and type ]]></b:skin>.

I define it as follows:
#art-slide {
width: 66%;
height: 300px;
left : 0px;
margin: 0 auto;
#art-slide img {
padding: 15px;
border: 1px solid rgb(204, 204, 204);
background-color: rgb(238, 238, 238);
#art-slide li:before {
content: none !important;

Description :
  • width: 66% : determine the width of the slider movement on the post content blog
  • height: 300px : slightly larger than the image that will be used as a border to make beautify of the image slider
  • overflow: hidden : in order not to fall apart during the loading process
  • # art-slide li: before : to eliminate the bullet list style, define it according to the character your template. May be like this # art-slide ul{list-style:none !important;} depending on how you defined your bullet style on your template.

3. If you are using such a image sexy lightbox evolution in the post content images on your blog, just grab the code on the <a>...</a>, collect the images code that you have, adjust the size image that you, and something another not required then put inside <ul> and <li> tag. So that the code that will inserted to the content post will be like this:
<ul id="art-slide">
<li><a class="lightbox" href="" imageanchor="1" title="Balinese Motif Carving as Frame-Download 1"><img src="" /></a></li>
<li><a class="lightbox" href="" imageanchor="1" title="Balinese Motif Carving as Frame-Download 2"><img src="" /></a></li>
<li><a class="lightbox" href="" imageanchor="1" title="Balinese Motif Carving-Download 3"><img src="" /></a></li>
<li><a class="lightbox" href="" imageanchor="1" title="Balinese Frame-Download 4"><img src="" /></a></li>
The code above is under the rule of <ul id="art-slide">, while the images still use image lightbox evolution style. S320 is the image size that has a width: 320 pixels and will be proportional to the height. For more clearly and easier to understanding, let's see the article video!
Share This Article :
Related Articles

No comments :

Post a Comment