CAROUSEL POST SLIDER FOR BLOGGER No 1B 1480X185

CAROUSEL POST SLIDER FOR BLOGGER No 1B
Αυτό είναι ένα πολύ πρακτικό carousel post slider διαστάσεων 1400pxX185px και εμφανίζει 9 αναρτήσεις σε κάθε πέρασμα του slider. Το πλάτος μπορείτε να το ρυθμίσετε αλλάζοντας το width:1360px που βρίστεται στην τελευταία γραμμή πρίν το </style>. Για να ρυθμίσετε τα χρώματα του background και του κειμένου του slider αλλάξτε τους κωδικούς των χρωμάτων που προηγήται το σύμβολο της δίεσης #. Το πόσες αναρτήσεις θα εμφανίζονται μπορείτε να το ρυθμίσετε αλλάζοντας το numposts100; 




<style>
#carousel{
width:1480px;
height:185px;
margin-left:0px;
margin-bottom:0px;
position:relative;
display:block} 
#carousel .container{
position:absolute;
left:30px;
width:1480px;
height:185px;
overflow:hidden;
background: #207907
#carousel #previous_button{
position:absolute;
width:30px;
height:185px;
background:url(https://lh5.googleusercontent.com/-j28HsFjcG30/VV3dCV-DpdI/AAAAAAAARdA/TgQMuUyFkpE/s64-no/arrowleft.png) center; background-repeat:no-repeat; z-index:100;cursor:pointer;border-right:1px solid #ccc; background-color:#E19797;} 
#carousel #previous_button:hover{background-color:#EE6969;} 
#carousel #next_button{
position:absolute;
right:0;
width:30px;
height:185px;
background:url(https://lh3.googleusercontent.com/-pyCcEr7m8OU/VV3dCYWdUKI/AAAAAAAARdE/nkwTgozDdYg/s64-no/arrowright.png) center;background-repeat:no-repeat; z-index:100;cursor:pointer;border-left:1px solid #ccc; background-color:#51E286;} 
#carousel #next_button:hover{background-color:#4EFF44;}
#carousel ul{width:100000px;position:relative;margin-top:2px} 
#carousel ul li{
display:inline;
float:left;
text-align:left;
font-family:Arial;
font-size: 11px;
line-height: 13px;
border:1px solid #FFFFFF;
width:145px;
height:175px;
margin:2px 2px 2px 2px;
padding:4px 4px 4px 4px;
-webkit-border-radius:5px;
-moz-border-radius:5px;
border-radius:5px;
position:relative;} 
#carousel ul li:hover{background-color:#FF6600;}
#carousel ul li a.slider_title{
color: #FFFFFF;
display:block;
position:absolute;
bottom:0px;
left:0px;
right:0px;
padding-top:4px;
padding-left:4px;
padding-right:4px;
background-color: #173374;
color:#FFFFFF;
width:100%;
height:70px;} 
#carousel ul li a.slider_title:hover{color:#000000;background-color:#FBBB22;}
#carousel img{display:block;background:#33FFFF;margin:0px;padding:0px;}
#carousel a img{display:block;background:#33FFFF;margin:0px;padding:0px;}
.container {width:1420px !important;}
</style>

<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js' type='text/javascript'></script>
<script src='https://rawgit.com/github-codes/9fe55ad953e564f6a6255c4c6c362869/raw/4d54bc53da569698c47e10d31c4c96b51bfd1ae7/carousel-slider-1.js' type='text/javascript'></script>

<script type='text/javascript'>
//<![CDATA[
imgr = new Array();
imgr[0] = "https://lh6.googleusercontent.com/-8l2FSaeBlsI/VVzGIIi_wpI/AAAAAAAARbU/eSn8ctuXaec/s300-no/no%2Bimage.jpg";
showRandomImg = false;
aBold false;
summaryPost 150;
summaryTitle = 75;
numposts1 = 150;
label1 = "YOUR-LABEL";
function removeHtmlTag(strx,chop){
var s = strx.split("<");
for(var i=0;i<s.length;i++){
if(s[i].indexOf(">")!=-1){
s[i] = s[i].substring(s[i].indexOf(">")+1,s[i].length);
}
}
s = s.join("");
s = s.substring(0,chop-1);
return s;
}
function showrecentposts(json) {
j = (showRandomImg) ? Math.floor((imgr.length+1)*Math.random()) : 0;
img = new Array();
document.write('<ul>');
for (var i = 0; i < numposts1; i++) {
var entry = json.feed.entry[i];
var posttitle = entry.title.$t;
var pcm;
var posturl;
if (i == json.feed.entry.length) break;
for (var k = 0; k < entry.link.length; k++) {
if (entry.link[k].rel == 'alternate') {
posturl = entry.link[k].href;
break;
}
}
for (var k = 0; k < entry.link.length; k++) {
if (entry.link[k].rel == 'replies' && entry.link[k].type == 'text/html') {
pcm = entry.link[k].title.split(" ")[0];
break;
}
}
if ("content" in entry) {
var postcontent = entry.content.$t;}
else
if ("summary" in entry) {
var postcontent = entry.summary.$t;}
else var postcontent = "";
postdate = entry.published.$t;
if(j>imgr.length-1) j=0;
img[i] = imgr[j];
s = postcontent ; a = s.indexOf("<img"); b = s.indexOf("src=\"",a); c = s.indexOf("\"",b+5); d = s.substr(b+5,c-b-5);
if((a!=-1)&&(b!=-1)&&(c!=-1)&&(d!="")) img[i] = d;
//cmtext = (text != 'no') ? '<i><font color="'+acolor+'">('+pcm+' '+text+')</font></i>' : '';
var month = [1,2,3,4,5,6,7,8,9,10,11,12];
var month2 = ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];
var day = postdate.split("-")[2].substring(0,2);
var m = postdate.split("-")[1];
var y = postdate.split("-")[0];
for(var u2=0;u2<month.length;u2++){
if(parseInt(m)==month[u2]) {
m = month2[u2] ; break;
}
}
var daystr = day+ ' ' + m + ' ' + y ;
var trtd = '<li class="car"><div class="thumb"><a href="'+posturl+'"><img width="145" height="100" class="alignnone" src="'+img[i]+'"/></a></div><p><a class="slider_title" href="'+posturl+'">'+posttitle+'</a></p></li>';
document.write(trtd);
j++;
}
document.write('</ul>');
}
//]]>
</script>

<div id="carousel">
<div id="previous_button"></div>
<div class="container">
<script>
document.write("<script src=\"http://the-best-widgets.blogspot.gr//feeds/posts/default/?max-results="+numposts1+"&orderby=published&alt=json-in-script&callback=showrecentposts\"><\/script>");</script>
<div class="clear"></div></div>
<div id="next_button"></div></div>
<script type="text/javascript">
// <![CDATA[
(function($) { $(document).ready(function(){ $("#carousel .container").jCarouselLite({
auto: 4000,
scroll: 5,
speed: 800
visible: 6,
start: 1,
circular: true,
btnPrev: "#previous_button",
btnNext: "#next_button"});
})})(jQuery)
// ]]>
</script>