follow

Adding Featured Content in Blogger

I believe you know WordPress Theme from Brian Gardner, a very popular work in WordPress Theme because he presented a magazine theme called “Revolution Theme”. Now, he has launched “Revolution Theme 2”. One of the Revolution Themes is called “Revolution_music-10”. The biggest interest from “Revolution_music-10” is that it has an image feature Slide Show.
I spent a half day to implement this feature into blogspot and finally, Djenggot can do it. If you are curious what this feature looks like, please see the demo here , watch for a few minutes to see the beauty of its slide show, click featured content or arrow on the side to see the interesting features.
You have seen it, haven’t you? And are you interested in adding it into your template? Just wait for Djenggot’s next posting, ok….Well, just kidding ! If you are interested to make that feature, please read the steps below;
Make images that will be Slide Show with your interest size, for example 550px X 200px. Don’t make too many images because it will slow down when loading. 5 Images are enough for every blog. Example;
Upload the images into the server that you usually use and write the address of the images. example;
http://lh4.ggpht.com/_pt7i0nbIOCY/SSoURAV9qpI/AAAAAAAAAcU/eTn9_n0fB24/icons_thumb%5B2%5D.png?imgmax=800
http://lh5.ggpht.com/_pt7i0nbIOCY/SSoUM_NXlkI/AAAAAAAAAcM/tnzzZwqr7M0/tools_thumb%5B3%5D.png?imgmax=800
http://lh5.ggpht.com/_pt7i0nbIOCY/SSoUU8cXExI/AAAAAAAAAcc/W37l9b00JNQ/blogger-templates_thumb%5B2%5D.png?imgmax=800
http://lh6.ggpht.com/_pt7i0nbIOCY/SSoUBuex4CI/AAAAAAAAAb8/hFNCBbvb_nk/wordpress-theme_thumb%5B2%5D.png?imgmax=800
http://lh6.ggpht.com/_pt7i0nbIOCY/SSoUIumVlwI/AAAAAAAAAcE/VXYo5sYbNH8/wallpapers_thumb%5B2%5D.png?imgmax=800
Find the links that will be the target if the images are clicked by the visitors, example;
http://www.blogspottutorial.com/search/label/free%20icons
http://www.blogspottutorial.com/search/label/free%20template
http://www.blogspottutorial.com/search/label/free%20tool
http://www.blogspottutorial.com/search/label/blogspot%20tutorial
http://www.blogspottutorial.com/search/label/logo

If you have had the image address and the link address, then change them into like below; (sample only)



Wordpress Themes


Get Wordpress Themes for free here!







Blogger Templates


Get Blogger templates for free here!







Icons


Get cute icons web and blog for free here!







Wallpapers


Get beautiful wallpapers for free here!







Tools


Get Powerful tools for free here!








From Now, this script is named file #1

Before continuing, please download both scripts below (right click; Save target as… (for IE), Save Link as (for FF))
Upload both scripts into the server you usually use to save the script, for example yahoo geocities. After uploading, please note the URL of both scripts. Look at below to see the sample (sample only).
http://YourServer.com/jd.gallery.js
http://YourServer.com/mootools.v1.11.js
Change them into like below (sample only);


From now, this script is named file #2
Now, you will do the last step, please follow the steps below;
1. Log in into blogger with you ID
2. Click Layout.
3. Click Edit HTML tab
4. Click Download Full Template, please save first to back up the template.
5. Copy the following code right above ]]> :

#myGallery, #myGallerySet, #flickrGallery

{width: 550px;height: 200px;z-index: 5;}

#flickrGallery

{width: 500px;height: 334px;}

#myGallery img.thumbnail, #myGallerySet img.thumbnail

{display: none;}


.jdGallery

{overflow: hidden;position: relative;}


.jdGallery img

{border: 0;margin: 0;}


.jdGallery .slideElement

{width: 100%;height: 100%;background-color: #000;background-repeat: no-repeat;background-position: center center;background-image: url('http://lh4.ggpht.com/_pt7i0nbIOCY/SSoOO5Za74I/AAAAAAAAAbc/w1cX7FKk97Y/loading-bar-black_thumb%5B1%5D.gif?imgmax=800');
}


.jdGallery .loadingElement

{width: 100%;height: 100%;position: absolute;left: 0;top: 0;background-color: #000;background-repeat: no-repeat;background-position: center center;background-image: url('http://lh4.ggpht.com/_pt7i0nbIOCY/SSoOO5Za74I/AAAAAAAAAbc/w1cX7FKk97Y/loading-bar-black_thumb%5B1%5D.gif?imgmax=800');}

.jdGallery .slideInfoZone

{position: absolute;z-index: 10;width: 100%;margin: 0px;left: 0;bottom: 0;height: 50px;background: #000;color: #fff;text-indent: 0;overflow: hidden;}


* html .jdGallery .slideInfoZone

{bottom: -1px;}

.jdGallery .slideInfoZone h2

{padding: 7px 10px 2px 10px;font-size: 12px;margin: 0;font-weight: bold;color: #ffffff;text-transform: uppercase;background: #111111;letter-spacing:0em;}

.jdGallery .slideInfoZone p

{font-size: 12px;margin: 2px 5px;color: #fff;padding: 0px 0px 0px 5px;font-family:arial;}

.jdGallery div.carouselContainer

{position: absolute;height: 135px;width: 100%;z-index: 10;margin: 0px;left: 0;top: 0;}

.jdGallery a.carouselBtn

{position: absolute;bottom: 0;right: 30px;height: 20px;text-align: center;padding: 0 10px;font-size: 13px;background: #000;color: #fff;cursor: pointer;}

.jdGallery .carousel

{position: absolute;width: 100%;margin: 0px;left: 0;top: 0;height: 115px;background: #000;color: #fff;text-indent: 0;overflow: hidden;}

.jdExtCarousel

{overflow: hidden;position: relative;}

.jdGallery .carousel .carouselWrapper, .jdExtCarousel .carouselWrapper

{position: absolute;width: 100%;height: 78px;top: 10px;left: 0;overflow: hidden;}

.jdGallery .carousel .carouselInner, .jdExtCarousel .carouselInner

{position: relative;}

.jdGallery .carousel .carouselInner .thumbnail, .jdExtCarousel .carouselInner .thumbnail

{cursor: pointer;background: #000;background-position: center center;float: left;border: solid 1px #fff;}

.jdGallery .wall .thumbnail, .jdExtCarousel .wall .thumbnail

{margin-bottom: 10px;}

.jdGallery .carousel .label, .jdExtCarousel .label

{font-size: 13px;position: absolute;bottom: 5px;left: 10px;padding: 0;margin: 0;}

.jdGallery .carousel .wallButton, .jdExtCarousel .wallButton

{font-size: 10px;position: absolute;bottom: 5px;right: 10px;padding: 1px 2px;margin: 0;background: #222;border: 1px solid #888;cursor: pointer;}

.jdGallery .carousel .label .number, .jdExtCarousel .label .number

{color: #b5b5b5;}

.jdGallery a

{font-size: 100%;text-decoration: none;color: inherit;}

.jdGallery a.right, .jdGallery a.left

{position: absolute;height: 99%;width: 25%;cursor: pointer;z-index:10;filter:alpha(opacity=20);-moz-opacity:0.2;-khtml-opacity: 0.2;opacity: 0.2;}


* html .jdGallery a.right, * html .jdGallery a.left

{filter:alpha(opacity=50);}


.jdGallery a.right:hover, .jdGallery a.left:hover

{filter:alpha(opacity=80);-moz-opacity:0.8;-khtml-opacity: 0.8;opacity: 0.8;}


.jdGallery a.left

{left: 0;top: 0;background: url('http://lh6.ggpht.com/_pt7i0nbIOCY/SSoOSD0HNeI/AAAAAAAAAbk/yGPQEEfCcDA/fleche1-1_thumb%5B1%5D.png?imgmax=800') no-repeat center left;}


* html .jdGallery a.left { background: url('http://lh6.ggpht.com/_pt7i0nbIOCY/SSoOSD0HNeI/AAAAAAAAAbk/yGPQEEfCcDA/fleche1-1_thumb%5B1%5D.png?imgmax=800') no-repeat center left; }


.jdGallery a.right

{right: 0;top: 0;background: url('http://lh4.ggpht.com/_pt7i0nbIOCY/SSoOUynKksI/AAAAAAAAAbs/v7o0XgwYdTg/fleche2-1_thumb%5B1%5D.png?imgmax=800') no-repeat center right;}


* html .jdGallery a.right { background: url('http://lh4.ggpht.com/_pt7i0nbIOCY/SSoOUynKksI/AAAAAAAAAbs/v7o0XgwYdTg/fleche2-1_thumb%5B1%5D.png?imgmax=800') no-repeat center right; }

.jdGallery a.open

{left: 0;top: 0;width: 100%;height: 100%;}

.withArrows a.open

{position: absolute;top: 0;left: 25%;height: 99%;width: 50%;cursor: pointer;z-index: 10;background: none;-moz-opacity:0.8;-khtml-opacity: 0.8;opacity: 0.8;}

.withArrows a.open:hover { background: url('http://lh6.ggpht.com/_pt7i0nbIOCY/SSoOXmTl_xI/AAAAAAAAAb0/GLqpxNapKAg/open_thumb.gif?imgmax=800') no-repeat center center; }


* html .withArrows a.open:hover { background: url('http://lh6.ggpht.com/_pt7i0nbIOCY/SSoOXmTl_xI/AAAAAAAAAb0/GLqpxNapKAg/open_thumb.gif?imgmax=800') no-repeat center center;filter:alpha(opacity=80); }

/* Gallery Sets */


.jdGallery a.gallerySelectorBtn

{z-index: 15;position: absolute;top: 0;left: 30px;height: 20px;text-align: center;padding: 0 10px;font-size: 13px;background: #333;color: #fff;cursor: pointer;opacity: .4;-moz-opacity: .4;-khtml-opacity: 0.4;filter:alpha(opacity=40);}


.jdGallery .gallerySelector

{z-index: 20;width: 100%;height: 100%;position: absolute;top: 0;left: 0;background: #000;}


.jdGallery .gallerySelector h2

{margin: 0;padding: 10px 20px 10px 20px;font-size: 20px;line-height: 30px;color: #fff;}


.jdGallery .gallerySelector .gallerySelectorWrapper

{overflow: hidden;}


.jdGallery .gallerySelector .gallerySelectorInner div.galleryButton

{margin-left: 10px;margin-top: 10px;border: 1px solid #888;padding: 5px;height: 40px;color: #fff;cursor: pointer;float: left;}

.jdGallery .gallerySelector .gallerySelectorInner div.hover

{background: #333;}

.jdGallery .gallerySelector .gallerySelectorInner div.galleryButton div.preview

{background: #000;background-position: center center;float: left;border: none;width: 40px;height: 40px;margin-right: 5px;}

.jdGallery .gallerySelector .gallerySelectorInner div.galleryButton h3

{ margin: 0;padding: 0;font-size: 12px;font-weight: normal;}

.jdGallery .gallerySelector .gallerySelectorInner div.galleryButton p.info

{ margin: 0;padding: 0;font-size: 12px;font-weight: normal;color: #aaa;}

6. Copy file #2 and then paste right above
7. Click SAVE TEMPLATE.
8. Click Page Element Tab.
9. Click Add A Gadget. Click (+) or HTML/JavaScript.
10. Copy file #1 (see the script above), Then paste into the available column).
11. Click Save button.
12. Drop that new element into the above of posting element.
13. Click SAVE
14. Finish and see the result.

A little additional, in CSS code above (5th steps) in the beginning code, you will see the code below;
#myGallery, #myGallerySet, #flickrGallery
{width: 550px;height: 200px;z-index: 5;}

You can set the height or height by changing its height and width as you want.
Happy enjoying the new face of your blog.



Artikel Terkait

By Djenggot with 0 comments

0 comments:

Leave a Reply