- Tạo slider bài viết mới nhất đẹp và chuyên nghiệp
- Thủ thuật tạo Slideshow bài viết mới nhất ngoài trang chủ Blogspot
- Hướng dẫn tạo slider bài viết mới đẹp và chuyên nghiệp cho blogger
- Hướng dẫn tạo Slider Recent Posts cho Blogger
Cách làm: Bước 1: Đăng nhập Blogger => Mẫu => Chỉnh sửa HTML => Tìm và paste đoạn code sau vào ngay trước ]]></b:skin>
/* CSS RECENT NEWS up by SHARE123.VN */
#itechplus-rc {width:310px;height:420px;margin:0;padding:10px;overflow:hidden;border:1px solid #ccc;background:#fff;}
.itechplus-rc h2{background:#F2F4F8;line-height:1.6em;margin:-10px -10px 10px;padding:4px 10px;font-weight:bold;color:#2286A6; font-size:15px; border-bottom:3px solid #2286A6;}
.itechplus-rc h2 a{ text-decoration:none;}
.itechplus-rc h2 a:hover {color:#000;}
.itechplus-rc ul{list-style:none;margin:0;padding:0}
.itechplus-rc li{text-indent:0;background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDxvKxzya2dNkENM9hspvgmQWhMTMKEnwsDdAvT0QG7UM3vq39CyU8yTJzbZbxzvYaTWlKNuglRJCWPFv1_rZgq9JiAVd-LTt5rj3U3J8s7JQUZsSGjQQlQno0_lGfP0CXapFLKSjTIT2y/) no-repeat 0 7px;line-height:1.5em;margin:0;padding:2px 0 2px 15px}
.itechplus-rc h2 a:link, .itechplus-rc h2 a:visited {color:#2286A6}
.itechplus-rc img{ float:left;margin-left:5px;margin-right:5px;background:#F9F9F9;width:70px;height:70px;padding:3px;border:1px solid #999;}
.khungfloat{width:301px;display:block;margin:0px 0;border:1px solid #ccc;background:#fff;font-size:13px}
.khungfloat li a{margin-left:8px}
.khungfloat li{ background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDxvKxzya2dNkENM9hspvgmQWhMTMKEnwsDdAvT0QG7UM3vq39CyU8yTJzbZbxzvYaTWlKNuglRJCWPFv1_rZgq9JiAVd-LTt5rj3U3J8s7JQUZsSGjQQlQno0_lGfP0CXapFLKSjTIT2y/) no-repeat 4px 10px;line-height:1.5em;margin-left:0px;padding:2px 0 2px 10px}
/*SHOW */
.libra-tab {background-color:#fff;width:640px;border:solid 1px #ccc; height:320px!important; height:295px; display:block; padding-top:5px; padding-right:5px;margin-left:3px}
.footer5{margin:0;line-height:27px;font-weight:bold;font-size:12px;}
#dlOverlay{position:relative;z-index:5;margin:0;padding:14px 0 0 0;display:none;}
#dlOverlay span.close{filter:alpha(opacity=95);opacity:.95;float:right;background:url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgeC26g8FKWz4Qsi7Z-o3EYsVV4cWEoV_Q4RqLTs27nEEbq-wo6exiwjh90mCoKbkXtPWHdA4OGXXmOl0YPEW3uqFX8jTA-VcJLn4k2kxhOb_IIeFNmZI147v-Ai0tFRZ-kgSFT1SADZH0/") no-repeat left top;margin:-11px 0 0 0;display:block;height:11px;overflow:hidden;cursor:pointer;font-size:1px;width:48px;}
#dlOverlay div.caption{filter:alpha(opacity=80);opacity:.80;background:#fff;margin:0;padding:0px;height:120px;overflow:hidden;clear:both;}
#dlOverlay div.caption h6.rubric{margin:5px 0 0 10px;width:410px;padding:0;font-size:11px;overflow:hidden;}
#dlOverlay div.caption h1{margin:0px 0 0 10px;padding:0;font-weight:bold;font-size:14px;overflow:hidden;max-height:80px;}
#dlOverlay div.caption h1 a{color:#0000ff;}
#dlOverlay div.caption h1 a:hover {color:#000;}
#dlOverlay div.caption p.deck{margin:0px 0 0 3px;padding:0px;font-size:12px;overflow:hidden;}
#dlOverlay div.caption p.deck a{color:#000;}
#dynamicLead ol.subNav{list-style-type:none;margin:0 2px 0 0;padding:0;font-size:11px;overflow:hidden;display:inline;float:right;height:15px;overflow:hidden;}
#dynamicLead ol.subNav li{float:left;background:url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCtE0Ooekjy4aTEQTm2JfIxYJgHr798pkOOhFsXHGf5vPukxAy4BLhTfHYooVGoV97BPRtP3ic8ML_ATJIf-gMUi0bBq4PIIzi3LOD9m4B-evvdZk7zx8c-YApDcNwlwpYHEK_97Y0Z1o/") no-repeat 16px top;padding:0;width:18px;overflow:hidden;}
#dynamicLead ol.subNav li a{padding:0 0 0 11px;background-image:url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgg9d2PH07JCgoADmPFvHMU1iNxA9aiuvjWSU36q2a14b4PhYD01kgcugFr-13RfbwKAYcuIR-48cpZqyPbnurrYwZ13F_YMtjycQ0S2Wa0AsMGfG5KKDsiXGq6HGQu7dF-_lwViR_imhg/");background-repeat:no-repeat;overflow:hidden;font-size:13px;text-align:center; padding:6px 10px 3px 2px;}
#dynamicLead ol.subNav li a.slide_1{background-position:center 0;}
#dynamicLead ol.subNav li a.slide_2{background-position:center -15px;}
#dynamicLead ol.subNav li a.slide_3{background-position:center -30px;}
#dynamicLead ol.subNav li a.slide_4{background-position:center -45px;}
#dynamicLead ol.subNav li a.slide_5{background-position:center -60px;}
#dynamicLead ol.subNav li a.slide_6{background-position:center -75px;}
#dynamicLead ol.mainNav{list-style-type:none;margin:0;padding:0;font-size:11px;overflow:hidden;display:inline;float:right;height:15px;}
#dynamicLead ol.mainNav li{float:left;margin:0;}
#dynamicLead ol.mainNav li a.ctrl{font-size:12px;}
#dynamicLead ol.mainNav li a.back{background:url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRTZwqtDIFqWr5qZWCIAr-VRUv5D8n2ZK9JuZNiMJzIklgJBs5T_MoRDl9lr27fYwVm6LTMzQ4BvtbUJOfONvLaSbqq4zGtBVZ-bl-BWavSc__ATjzYvSZSIBA1G5EeDk-ZaRb3eXkHRQ/") no-repeat left 0;padding:0 0 0 53px;}
#dynamicLead ol.mainNav li a.pause{background:url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRTZwqtDIFqWr5qZWCIAr-VRUv5D8n2ZK9JuZNiMJzIklgJBs5T_MoRDl9lr27fYwVm6LTMzQ4BvtbUJOfONvLaSbqq4zGtBVZ-bl-BWavSc__ATjzYvSZSIBA1G5EeDk-ZaRb3eXkHRQ/") no-repeat left -15px;padding:0 0 0 53px;}
#dynamicLead ol.mainNav li a.play{background:url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRTZwqtDIFqWr5qZWCIAr-VRUv5D8n2ZK9JuZNiMJzIklgJBs5T_MoRDl9lr27fYwVm6LTMzQ4BvtbUJOfONvLaSbqq4zGtBVZ-bl-BWavSc__ATjzYvSZSIBA1G5EeDk-ZaRb3eXkHRQ/") no-repeat left -30px;padding:0 0 0 53px;}
#dynamicLead ol.mainNav li a.next{background:url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRTZwqtDIFqWr5qZWCIAr-VRUv5D8n2ZK9JuZNiMJzIklgJBs5T_MoRDl9lr27fYwVm6LTMzQ4BvtbUJOfONvLaSbqq4zGtBVZ-bl-BWavSc__ATjzYvSZSIBA1G5EeDk-ZaRb3eXkHRQ/") no-repeat left -45px;padding:0 0 0 51px;}
.dlPreview{background:url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgv368RtAqZLeFVEzwWkUeUCsYxXo4Dss9rJskhT02-IGVtyZpnfvVp2kdDZo25pz6laJHF-gC1zwky3FSuvh0dGTEWEF1-KAfo_4W5_DCCxyiepCWYQvsxMH9N2Wk28hQfZej-7oz2-98/") no-repeat left top;width:118px;height:138px;margin:0;padding:0;position:absolute;z-index:8;padding:0;overflow:hidden;}
.dlPreview .slideContent{font-size:10px;font-family:arial;color:#000;height:130px;overflow:hidden;}
.dlPreview .slideContent .mainArtLink{overflow:hidden;height:60px;margin:7px 10px 0 10px;padding:0;display:block;}
.dlPreview .slideContent .mainArtLink img{margin:3px 0 0 0;padding:0;}
.dlPreview .slideContent h1.title{margin:0 10px;padding:0;font-size:10px;font-family:arial;height:13px;overflow:hidden;}
.dlPreview .slideContent h1.title a{color:#0000ff;}
.dlPreview .slideContent h1.title a:hover{color:#ff0033;}
.dlPreview .slideContent p.deck{display:none;}
.dlPreview .slideContent p.deckShort{display:block;margin:0 6px 2px 6px;padding:0;font-size:10px;overflow:hidden;line-height:11px;height:45px;}
#dynamicLead .lightBox{float:right;overflow:hidden;background:url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCtE0Ooekjy4aTEQTm2JfIxYJgHr798pkOOhFsXHGf5vPukxAy4BLhTfHYooVGoV97BPRtP3ic8ML_ATJIf-gMUi0bBq4PIIzi3LOD9m4B-evvdZk7zx8c-YApDcNwlwpYHEK_97Y0Z1o/") no-repeat 58px top;width:60px;border:none;height:15px;overflow:hidden;}
#dynamicLead .lightBox a{margin:0;background:url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRTZwqtDIFqWr5qZWCIAr-VRUv5D8n2ZK9JuZNiMJzIklgJBs5T_MoRDl9lr27fYwVm6LTMzQ4BvtbUJOfONvLaSbqq4zGtBVZ-bl-BWavSc__ATjzYvSZSIBA1G5EeDk-ZaRb3eXkHRQ/") no-repeat left -60px;padding:0 0 0 57px;font-size:13px;border:none;text-decoration:none;}
#dynamicLead .lightBox a.selected{background:url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRTZwqtDIFqWr5qZWCIAr-VRUv5D8n2ZK9JuZNiMJzIklgJBs5T_MoRDl9lr27fYwVm6LTMzQ4BvtbUJOfONvLaSbqq4zGtBVZ-bl-BWavSc__ATjzYvSZSIBA1G5EeDk-ZaRb3eXkHRQ/") no-repeat left -75px;padding:0 0 0 57px;font-size:13px;}
.dlRoundCornersLft {clear:both;height:300px;}
.dlRoundCornersLft a{text-decoration:none;}
.dlRoundCornersLft a:hover{text-decoration:none;}
.dlRoundCornersLft .top{background-image:url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizONfMXtEO2M_xSlMGnfRCuIFDFK7ymTCh3KfAbg0MsUbq-Q1z8S9VGpPBfLtS8tSDlDM8DpdYkP1tROY_76nfROsZ3WKTilN6nLObPPUvjiGE_8TArgCbawyTp42SSxxGQHDKjdc23e0/");background-position:left -24px;background-repeat:no-repeat;height:6px;padding-left:6px;overflow:hidden;}
.dlRoundCornersLft .top div{border-top:1px solid #999;;line-height:9px;}
.dlRoundCornersLft .content{padding:0;height:282px;border:0;overflow:hidden;}
.dlRoundCornersLft .content .imageDeck{height:280px;width:630px;margin:0 0 6px 6px;border:1px solid #ddd;overflow:hidden;background:transparent;position:relative;}
.dlRoundCornersLft .content .imageDeck a.mainArt{display:none;height:272px;}
.dlRoundCornersLft .bot{height:18px;}
.dlRoundCornersLft .bot div{height:17px;margin:0;padding:0;height:26px;}
.dlRoundCornersLft .bot div .footer5{border:none;background:none;position:relative;z-index:8;margin:0;padding:0;overflow:hidden;top:6px;left:-5px;}
.dlLightBox{width:356px;height:300px;background:url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLD8uxQCyIZ5eX4HnNEgOlZzEgtem5Bw5HXwM4ntBG68On3yMDx-vUTxP5kM6b0duUKTaob97dVb8NLA5ht5IUDbNfkePg6IWCxBv4atRk5H6VtKVokiTBpzxzt0dILnQmcdBgo_SqejQ/") no-repeat left top;padding:0;position:absolute;z-index:8;cursor:pointer;}
.dlLightBox ul{list-style-type:none;overflow:hidden;margin:11px 0 0 0;padding:0 0 0 11px;float:left;clear:both;}
.dlLightBox ul li{float:left;width:108px;height:128px;overflow:hidden;margin:0 6px 0 0;padding:0;}
.dlLightBox ul li.last{background:none;margin:0;width:100px;}
.dlLightBox ul li .imageDeck{border:1px solid #ccc;width:95px;overflow:hidden;height:58px;margin:4px 0px 2px 1px;padding:0;}
.dlLightBox ul li h6.title{text-align:left;width:100px;margin:1px 0px 2px 0px;padding:0;font-size:11px;color:#ff0033;height:13px;overflow:hidden;}
.dlLightBox ul li p{text-align:left;border-bottom:1px dotted #000;color:#000;margin:1px 0px 2px 0px;padding:0;font-size:11px;font-family:arial;height:40px;overflow:hidden;width:100px;}
.dlLightBox ul li p.date{margin:2px 3px 0 3px;padding:0;font-size:9px;height:20px;overflow:hidden;width:94px;color:#999;text-align:right;}
#dynamicLead ol.mainNav li a.back{background:url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZ8tKoksoq4ImIW8VfRnZm4LCmi5i9LFwd1rHfsGqitwUDxA_9u9JziLfMbdV65-6lfL0Ir0a2O-2IHoeSapuhJ3PBcSoWvjD-7qnrwDxWOMoYDj_21b9bZqz7V8uV-v0-yAsA4NWOYa0/") no-repeat;padding:6px 0 8px 24px;}
#dynamicLead ol.mainNav li a.pause{background:url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvNseOfIPE74C4e3kGQ1ZhcNh3N9-XOJf6vuWwTuY1_NuFsemq4N4B1FVr5YKvcxn12B7zeYrYfXCP9Ckf25z-u09aqBjpkMm7pNNiFrGlvnA7hYTSTeMwgmkCZIYCGS0r5bOs6PZNyBk/") no-repeat;padding:6px 0 8px 24px;}
#dynamicLead ol.mainNav li a.play{background:url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPgwn12wr22sSkYdJTAcXXVR3pyKzvtBeo2kuR7pPv2kCz1G2hW8BJLzoC3l_xYZuRYfd-hRNb046MhvYrfgo4R91To54ptHEJIykuZdAGCw4DEuuGCiW4I6cSFXmY1iAZB03YOsjndGE/") no-repeat;padding:6px 0 8px 24px;}
#dynamicLead ol.mainNav li a.next{background:url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPgwn12wr22sSkYdJTAcXXVR3pyKzvtBeo2kuR7pPv2kCz1G2hW8BJLzoC3l_xYZuRYfd-hRNb046MhvYrfgo4R91To54ptHEJIykuZdAGCw4DEuuGCiW4I6cSFXmY1iAZB03YOsjndGE/") no-repeat;padding:6px 0 8px 24px;}
<!-- END -->
Tiếp theo bạn tìm và paste đoạn code sau ngay sau thẻ <body> . Thường là paste sau Id='Menu' hoặc paste sau trong id='outer-wraper'
<!-- Start Recent post -->
<script src='https://sites.google.com/site/share123vn/lib.js' type='text/javascript'/>
<script language='JavaScript'>
imgr = new Array();
imgr[0] = "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjN41sJkolPFbh1rEDAK3GsrGfW5LCQn3FzmZaNZ2aM6DHOUnB-pDsWxnvbzBKGna6s1spJb62_ZqmYZdGml9EwoLJraYI4I48_lu5OaHskvIiB4r2yOikqpcpILLAIbiivmn8DRx6S5Nn5/";
showRandomImg = false;
fntsize = 12;
acolor = "#E67C15";
aBold = true;
text = "no";
showPostDate = true;
summaryPost = 300;
summaryFontsize = 12;
summaryColor = "#000";
numposts =6;
home_page = "http://www.share123.vn/";
</script>
<div class='libra-tab'>
<div class='dlRoundCornersLft' id='dynamicLead'>
<div class='content'>
<div class='imageDeck'>
<a class='mainArt' href='javascript:void(0);'>
<img alt='' height='280' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigGDb4dYn0DE_f9KSYdq9kdGer2BM9HulmJugyThiq11jaXLaYcmKCaUEfPHjAd3ZqywH27ZazHB4YDOQrarS1Lsix2nQ-3qltJBq5RwjI3Lwc2DjcmoqbsqkzP5Gyn-PUZnmmHjCOHjA/' title='' width='640'/></a>
<div id='dlOverlay'>
<span class='close transp'/>
<div class='caption'/>
</div></div></div>
<div class='bot'><div>
<div class='footer5'>
<ol class='mainNav'>
<li><a class='ctrl back' href='javascript:void(0);'/></li>
<li><a class='ctrl pausePlay pause' href='javascript:void(0);'/></li>
<li><a class='ctrl next' href='javascript:void(0);'/></li>
</ol>
<ol class='subNav'>
<script src='https://sites.google.com/site/share123vn/Recentpostjs.js'/>
</ol>
<div class='lightBox' style='height:15px; line-height:15px;'>
<a href='javascript:void(0);'/></div>
</div>
</div>
</div>
</div>
</div>
<script type='text/javascript'>
//AP.Core.JS.Initialization.add(loadHomeBox);
homeBoxLoaded = true;
AP.Core.JS.Initialization.call(_initDynamicLead);
//AP.Core.JS.PopupLead.init('bestNews');
AP.Core.JS.Initialization.add(_initTopNews);
AP.Core.JS.Initialization.call(_initHomeAdv);
try{
AP.Core.JS.Initialization.add(_bindGoldPrice);
}catch(ex1){}
try{
AP.Core.JS.Initialization.add(_bindExchangeRate);
}catch(ex2){}
try{
AP.Core.JS.Initialization.add(_bindStockInfo);
}catch(ex3){}
AP.Core.JS.Initialization.add(_initboxInfo);
function _initDynamicLead()
{
AP.Core.JS.DynamicLead.GB = true;
AP.Core.JS.DynamicLead.globalSlidePause = 6.5;
AP.Core.JS.DynamicLead.globalTitleTransition = 1.4;
AP.Core.JS.DynamicLead.init();
}
</script>
<!-- End Recent Post -->
Bạn chú ý đến các link màu xanh và thông số màu đỏ để tùy chỉnh cho hợp lý, down File Js về và up lên host của bạn đề phòng link die.
Chúc bạn thành công - Share123.vn
Không có nhận xét nào: