CAROUSEL POST SLIDER No 2 (1350X210)

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<script>
document.write("<script src=\"https://the-best-widgets.blogspot.com//feeds/posts/default/-/YOUR-LABEL?max-results="+numposts1+"&orderby=published&alt=json-in-script&callback=showrecentposts\"><\/script>");</script>
<style>
#carousel{
width:1350px;
height:210px;
margin-bottom:0px;
position:relative;
display:block} 
#carousel .container {
position:absolute;
left:40px;
width:1350px;
height:210px;
overflow:hidden;
background:#FBBB22}
#carousel #previous_button{
position:absolute;
width:40px;
height:210px;
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 #FFFFFF; background-color:#F2D994;} 
#carousel #previous_button:hover{background-color:#FBBB22;} 
#carousel #next_button{
position:absolute;
right:0;
width:40px;
height:210px;
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 #FFFFFF; background-color:#F2D994;} 
#carousel #next_button:hover{background-color:#FBBB22;}
#carousel ul{width:100000px;position:relative;margin-top:2px}
#carousel ul li{
display:inline;
float:left;
text-align:left;
font: 12px arial;
line-height:14px;
width:167px;
height:190px;
margin:2px 2px 2px 2px;
padding:4px 4px 4px 4px;
border:1px solid #000000;
-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;
margin-top:0px;
left:0px;
bottom:-10px;
position:absolute;
padding:4px 4px 4px 4px;
background-color: #FFFFFF;
color:#000000;
width:100%;
height:80px;}
#carousel ul li a.slider_title:hover{color:#000000;background-color:#FFFF00;}
#carousel img{display:block;padding:4px;}
#carousel a img{display:block;background:#115595; padding:0px;margin-top:0px; margin-bottom:0px;}
.container {width:1300px !important;}
</style>

<script src='https://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="165" height="106" 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=\"https://the-best-widgets.blogspot.com//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: 7,
speed: 800, 
visible: 7,
start: 1,
circular: true,
btnPrev: "#previous_button",
btnNext: "#next_button"});
})})(jQuery)
// ]]>
</script>