Mostrando entradas con la etiqueta Slideshows. Mostrar todas las entradas
Mostrando entradas con la etiqueta Slideshows. Mostrar todas las entradas

Galería de videos para el blog – Culture – Lawyers



En esta entrada vamos a vercómo crear una galería de videos de YouTube usando jQuery. Es una elegante galería a la que le caben 5 videos y que por sus dimesiones la pondremos debajo de la cabecera del blog. En realidad puedes ponerla en cualquier parte, pero se recomienda en esa área por los 765px que mide de ancho la galería.
Puedes verla funcionando en estedemo.

Para agregar esteslider de videos en tu blog entra enPlantilla | Edición de HTML y antes de/head agrega los scripts:
script src='http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js' type='text/javascript'/

script
//![CDATA[
/*hoverscroll v.0.2.4*/
(function($) {
$.fn.hoverscroll = function(params) {
if (!params) { params = {}; }
params = $.extend({}, $.fn.hoverscroll.params, params);
this.each(function() {
var $this = $(this);
if (params.debug) {$.log('[HoverScroll] Trying to create hoverscroll on element ' + this.tagName + '#' + this.id);}
if (params.fixedArrows) {
$this.wrap('div class="fixed-listcontainer"/div')
}
else {
$this.wrap('div class="listcontainer"/div');
}

$this.addClass('list');
var listctnr = $this.parent();
listctnr.wrap('div class="ui-widget-content hoverscroll' +
(params.rtl && !params.vertical ? " rtl" : "") + '"/div');
//listctnr.wrap('div class="hoverscroll"/div');

var ctnr = listctnr.parent();

var leftArrow, rightArrow, topArrow, bottomArrow;
if (params.arrows) {
if (!params.vertical) {
if (params.fixedArrows) {
leftArrow = 'div class="fixed-arrow left"/div';
rightArrow = 'div class="fixed-arrow right"/div';

listctnr.before(leftArrow).after(rightArrow);
}
else {
leftArrow = 'div class="arrow left"/div';
rightArrow = 'div class="arrow right"/div';

listctnr.append(leftArrow).append(rightArrow);
}
}
else {
if (params.fixedArrows) {
topArrow = 'div class="fixed-arrow top"/div';
bottomArrow = 'div class="fixed-arrow bottom"/div';

listctnr.before(topArrow).after(bottomArrow);
}
else {
topArrow = 'div class="arrow top"/div';
bottomArrow = 'div class="arrow bottom"/div';

listctnr.append(topArrow).append(bottomArrow);
}
}
}
ctnr.width(params.width).height(params.height);

if (params.arrows && params.fixedArrows) {
if (params.vertical) {
topArrow = listctnr.prev();
bottomArrow = listctnr.next();

listctnr.width(params.width)
.height(params.height - (topArrow.height() + bottomArrow.height()));
}
else {
leftArrow = listctnr.prev();
rightArrow = listctnr.next();

listctnr.height(params.height)
.width(params.width - (leftArrow.width() + rightArrow.width()));
}
}
else {
listctnr.width(params.width).height(params.height);
}

var size = 0;

if (!params.vertical) {
ctnr.addClass('horizontal');
$this.children().each(function() {
$(this).addClass('item');

if ($(this).outerWidth) {
size += $(this).outerWidth(true);
}
else {
size += $(this).width() + parseInt($(this).css('padding-left')) + parseInt($(this).css('padding-right'))
+ parseInt($(this).css('margin-left')) + parseInt($(this).css('margin-right'));
}
});
$this.width(size);

if (params.debug) {
$.log('[HoverScroll] Computed content width : ' + size + 'px');
}
if (ctnr.outerWidth) {
size = ctnr.outerWidth();
}
else {
size = ctnr.width() + parseInt(ctnr.css('padding-left')) + parseInt(ctnr.css('padding-right'))
+ parseInt(ctnr.css('margin-left')) + parseInt(ctnr.css('margin-right'));
}

if (params.debug) {
$.log('[HoverScroll] Computed container width : ' + size + 'px');
}
}
else {
ctnr.addClass('vertical');
$this.children().each(function() {
$(this).addClass('item')

if ($(this).outerHeight) {
size += $(this).outerHeight(true);
}
else {
size += $(this).height() + parseInt($(this).css('padding-top')) + parseInt($(this).css('padding-bottom'))
+ parseInt($(this).css('margin-bottom')) + parseInt($(this).css('margin-bottom'));
}
});
$this.height(size);

if (params.debug) {
$.log('[HoverScroll] Computed content height : ' + size + 'px');
}
if (ctnr.outerHeight) {
size = ctnr.outerHeight();
}
else {
size = ctnr.height() + parseInt(ctnr.css('padding-top')) + parseInt(ctnr.css('padding-bottom'))
+ parseInt(ctnr.css('margin-top')) + parseInt(ctnr.css('margin-bottom'));
}

if (params.debug) {
$.log('[HoverScroll] Computed container height : ' + size + 'px');
}
}
var zone = {
1: {action: 'move', from: 0, to: 0.06 * size, direction: -1 , speed: 16},
2: {action: 'move', from: 0.06 * size, to: 0.15 * size, direction: -1 , speed: 8},
3: {action: 'move', from: 0.15 * size, to: 0.25 * size, direction: -1 , speed: 4},
4: {action: 'move', from: 0.25 * size, to: 0.4 * size, direction: -1 , speed: 2},
5: {action: 'stop', from: 0.4 * size, to: 0.6 * size},
6: {action: 'move', from: 0.6 * size, to: 0.75 * size, direction: 1 , speed: 2},
7: {action: 'move', from: 0.75 * size, to: 0.85 * size, direction: 1 , speed: 4},
8: {action: 'move', from: 0.85 * size, to: 0.94 * size, direction: 1 , speed: 8},
9: {action: 'move', from: 0.94 * size, to: size, direction: 1 , speed: 16}
}

ctnr[0].isChanging = false;
ctnr[0].direction = 0;
ctnr[0].speed = 1;
function checkMouse(x, y) {
x = x - ctnr.offset().left;
y = y - ctnr.offset().top;

var pos;
if (!params.vertical) {pos = x;}
else {pos = y;}

for (i in zone) {
if (pos = zone[i].from && pos zone[i].to) {
if (zone[i].action == 'move') {startMoving(zone[i].direction, zone[i].speed);}
else {stopMoving();}
}
}
}

function setArrowOpacity() {
if (!params.arrows || params.fixedArrows) {return;}

var maxScroll;
var scroll;

if (!params.vertical) {
maxScroll = listctnr[0].scrollWidth - listctnr.width();
scroll = listctnr[0].scrollLeft;
}
else {
maxScroll = listctnr[0].scrollHeight - listctnr.height();
scroll = listctnr[0].scrollTop;
}
var limit = params.arrowsOpacity;
var opacity = (scroll / maxScroll) * limit;

if (opacity limit) { opacity = limit; }
if (isNaN(opacity)) { opacity = 0; }

var done = false;
if (opacity = 0) {
$('div.arrow.left, div.arrow.top', ctnr).hide();
if(maxScroll 0) {
$('div.arrow.right, div.arrow.bottom', ctnr).show().css('opacity', limit);
}
done = true;
}
if (opacity = limit || maxScroll = 0) {
$('div.arrow.right, div.arrow.bottom', ctnr).hide();
done = true;
}

if (!done) {
$('div.arrow.left, div.arrow.top', ctnr).show().css('opacity', opacity);
$('div.arrow.right, div.arrow.bottom', ctnr).show().css('opacity', (limit - opacity));
}
}

function startMoving(direction, speed) {
if (ctnr[0].direction != direction) {
if (params.debug) {
$.log('[HoverScroll] Starting to move. direction: ' + direction + ', speed: ' + speed);
}

stopMoving();
ctnr[0].direction = direction;
ctnr[0].isChanging = true;
move();
}
if (ctnr[0].speed != speed) {
if (params.debug) {
$.log('[HoverScroll] Changed speed: ' + speed);
}

ctnr[0].speed = speed;
}
}

function stopMoving() {
if (ctnr[0].isChanging) {
if (params.debug) {
$.log('[HoverScroll] Stoped moving');
}

ctnr[0].isChanging = false;
ctnr[0].direction = 0;
ctnr[0].speed = 1;
clearTimeout(ctnr[0].timer);
}
}

function move() {
if (ctnr[0].isChanging == false) {return;}

setArrowOpacity();

var scrollSide;
if (!params.vertical) {scrollSide = 'scrollLeft';}
else {scrollSide = 'scrollTop';}

listctnr[0][scrollSide] += ctnr[0].direction * ctnr[0].speed;
ctnr[0].timer = setTimeout(function() {move();}, 50);
}

if (params.rtl && !params.vertical) {
listctnr[0].scrollLeft = listctnr[0].scrollWidth - listctnr.width();
}

ctnr
.mousemove(function(e) {checkMouse(e.pageX, e.pageY);})
.bind('mouseleave', function() {stopMoving();});

this.startMoving = startMoving;
this.stopMoving = stopMoving;

if (params.arrows && !params.fixedArrows) {
// Initialise arrow opacity
setArrowOpacity();
}
else {
// Hide arrows
$('.arrowleft, .arrowright, .arrowtop, .arrowbottom', ctnr).hide();
}
});

return this;
};

if (!$.fn.offset) {
$.fn.offset = function() {
this.left = this.top = 0;

if (this[0] && this[0].offsetParent) {
var obj = this[0];
do {
this.left += obj.offsetLeft;
this.top += obj.offsetTop;
} while (obj = obj.offsetParent);
}

return this;
}
}

$.fn.hoverscroll.params = {
vertical: false,
width: 400,
height: 50,
arrows: true,
arrowsOpacity: 0.7,
fixedArrows: false,
rtl: false,
debug: false
};
$.log = function() {
try {console.log.apply(console, arguments);}
catch (e) {
try {opera.postError.apply(opera, arguments);}
catch (e) {}
}
};
})(jQuery);

// Aplicar desde aquí el hack de compatibilidad con Scriptaculous en caso de ser necesario

$(function(){
$("#slidervideo-tabs a").click(function(){
var container = $("#slidervideo-content");
container.html("img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYz3yq3U22M5zGpQcyYB8TLTGXUv8H31XcRrr_wsGpbx8BUSjKvbpsbtotvo8G96sPpcrUv5hW3F61RyrMwjfSkaLeFdaKQCrbkS6ksL2O9WlakOEibtFtU0qvR7U_6bzwxv9yo449IPY/s400/loading.gif' class='loading-vid' /");
var id = $(this).attr("href").slice(1);
loadvideo(id);
return false;
});
$("#slidervideo-tabs").hoverscroll({vertical:true,width:300,height:330,arrows:false});
$("#slidervideo-tabs li").hover(function(){$(this).addClass("hover");},function(){$(this).removeClass("hover");});
loadvideo();
});

function loadvideo (hash){if(hash){hash = hash.slice(3);$("#slidervideo-content").html(video[hash]);$("#slidervideo-tabs li").removeClass("actVid");$("#slidervideo-tabs a[href=#vid"+hash+"]").parent().addClass("actVid");}else{$("#slidervideo-content").html(video[1]);$("#slidervideo-tabs li").removeClass("actVid");$("#slidervideo-tabs a[href=#vid1]").parent().addClass("actVid");}}
//
/script
Luego agrega los estilos antes de/b:skin
/* Galería de videos
----------------------------------------------- */
#slidervideo {
background:#000; /* Color de fondo */
clear:both;
margin:0 auto;
padding:5px;
width:765px;
border-radius: 5px;
-moz-background-clip: padding;
-webkit-background-clip: padding-box;
background-clip: padding-box;
}
#slidervideo, #slidervideo-content, #slidervideo-tabs {height:350px;overflow:hidden;}
#slidervideo-content {color:#fff;float:left;text-align:center;width:460px;z-index:1;}
.loading-vid {display:block;margin:165px auto 0;}
#slidervideo-tabs {float:right;width:300px;margin:0;}
#slidervideo-tabs li {background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHJZjgd1G9-dVtaAUR6BpbiO1a6S1yeMshMSc6x6xUsaLtJ2iZjcz3HD6y2susCZApjtOI-GGlLUvDs2R9bEt8Yz6uG9EN_80mWoqVUQJsdTLrZPqH9ZUwG4acwPm_bz8E39_ixcXuM1c/s0/tab_bg.jpeg) repeat-x top left;float:left;height:60px;padding:5px;width:290px;list-style:none;}
#slidervideo-tabs li a {padding:0 !important;border:0 !important;}
#slidervideo-tabs li.hover {background:#333;}
#slidervideo-tabs li.actVid {background:#555;}
#slidervideo-tabs li img.thumb-vid {background-color:#fff;float:left;height:52px;margin:0 8px 0 0;padding:5px;width:52px;}
#slidervideo-tabs li span.vidTit {
display:block;
color:#CD332D; /* Color de los títulos */
font-size:14px; /* Tamaño de los títulos */
font-weight:bold;
text-decoration:none;
}
#slidervideo-tabs li .vidDesc {
display:block;
color:#fff;/* Color de la descripción */
font-size:12px;/* Tamaño del texto de la descripción */
font-weight:bold;
text-decoration:none;
}
#slidervideo-tabs a {text-decoration:none;}
#slidervideo-tabs li.actVid .vidDesc {color:#fff;}
.ui-widget-content{float:right;}
.tabs-outer {background-image: none !important;}
#slidervideo-tabs li a:hover {background: none !important;}
Ahora en un elementoHTML/Javascript pega la estructura del slider, este gadget es el que pondrás debajo de la cabecera:
script
var video = [];
video[1] = 'iframe width="460" height="345" src="http://www.youtube.com/embed/ID_video_1" frameborder="0" allowfullscreen/iframe';
video[2] = 'iframe width="460" height="345" src="http://www.youtube.com/embed/ID_video_2" frameborder="0" allowfullscreen/iframe';
video[3] = 'iframe width="460" height="345" src="http://www.youtube.com/embed/ID_video_3" frameborder="0" allowfullscreen/iframe';
video[4] = 'iframe width="460" height="345" src="http://www.youtube.com/embed/ID_video_4" frameborder="0" allowfullscreen/iframe';
video[5] = 'iframe width="460" height="345" src="http://www.youtube.com/embed/ID_video_5" frameborder="0" allowfullscreen/iframe';
/script
div id="slidervideo"
div id="slidervideo-content"/div
ul id="slidervideo-tabs"
lia href="#vid1"img src="//i2.ytimg.com/vi/ID_video_1/default.jpg" class="thumb-vid" /span class="vidTit"Nombre del video/spanspan class="vidDesc"Descripción del video/span/a/li

lia href="#vid2"img src="//i2.ytimg.com/vi/ID_video_2/default.jpg" class="thumb-vid" /span class="vidTit"Nombre del video/spanspan class="vidDesc"Descripción del video/span/a/li

lia href="#vid3"img src="//i2.ytimg.com/vi/ID_video_3/default.jpg" class="thumb-vid" /span class="vidTit"Nombre del video/spanspan class="vidDesc"Descripción del video/span/a/li

lia href="#vid4"img src="//i2.ytimg.com/vi/ID_video_4/default.jpg" class="thumb-vid" /span class="vidTit"Nombre del video/spanspan class="vidDesc"Descripción del video/span/a/li

lia href="#vid5"img src="//i2.ytimg.com/vi/ID_video_5/default.jpg" class="thumb-vid" /span class="vidTit"Nombre del video/spanspan class="vidDesc"Descripción del video/span/a/li

/ul
/div
Agrega los IDs de los videos, sus nombres y su descripción y listo. La descripción deberá ser muy breve para que no tengas problemas de espacios.
Si no sabes cómo obtener la ID de un video abre el video en YouTube y mira en la barra de direcciones, los últimos caracteres son la ID que necesitas.


Toma en cuenta que la ID de cada video se agrega dos veces, uno es para que muestre el video y otra para la miniatura de las pestañas.

Es una galería que como funciona con jQuery deberás cerciorarte deno repetir la versión del script en caso de que ya tengas jQuery, ysi usas Scriptaculous deberás aplicarle unos cambios, casi al final del primer código verás en color azul desde dónde deberás aplicárselos en caso de que lo necesites.

Donate Car To Charity CALIFORNIA DONATE CAR FOR TAX CREDITDONATE CARS IN MADONATE YOUR CAR SACRAMENTOHOW TO DONATE A CAR IN CALIFORNIA DONATE YOUR CAR FOR KIDS,CAR INSURANCE QUOTES COLORADO ,NUNAVUT CULTURE,DAYTON FREIGHT LINESHARDDRIVE DATA RECOVERY SERVICES,DONATE A CAR IN MARYLAND,MOTOR REPLACEMENTS,CHEAP DOMAIN REGISTRATION HOSTING,DONATING A CAR IN MARYLANDUn dia en Mundial Football MESOTHELIOMA LAW FIRM FIFA World Cup,DONATE CAR TO CHARITY CALIFORNIA , and STRUCTURED ANNUITY SETTLEMENT ,ANNUITY SETTLEMENTS, habia mucha monja pero fui a NUNAVUT CULTURE, DAYTON FREIGHT LINES and BUSINESS VOIP SOLUTIONS,CAR INSURANCE COMPANIES pero for you ONLINE CRIMINAL JUSTICE DEGREE ,PERSONAL INJURY LAW FIRM, Virtual data rooms and future now Automobile accident attorney and pero mas aya del visita and Mesothelioma law firm CHEAP CAR INSURANCE IN VIRGINIA,Selling annuity payments for cashSelling annuity payments for cash,Sell my structured settlement,Sell structured settlement,Structured settlement,Structured settlement companies,Sell my annuity payments lump sum,Car accident lawyer Denver,Accident injury attorneys,Sell my annuity

Donate Car To Charity CALIFORNIA DONATE CAR FOR TAX CREDITDONATE CARS IN MADONATE YOUR CAR SACRAMENTOHOW TO DONATE A CAR IN CALIFORNIA DONATE YOUR CAR FOR KIDS,CAR INSURANCE QUOTES COLORADO ,NUNAVUT CULTURE,DAYTON FREIGHT LINESHARDDRIVE DATA RECOVERY SERVICES,DONATE A CAR IN MARYLAND,MOTOR REPLACEMENTS,CHEAP DOMAIN REGISTRATION HOSTING,DONATING A CAR IN MARYLANDMundial Football Los Abogado de lesiones personales en Chicago,FIFA World Cup son muy buenos en chicago y nos ofrecen una Cotizacion de seguro y Cotizacion de Seguro de Vida y Cotizacion de seguro de coches,mesotelioma. Y visitar mesothelioma lawyers o tambien podriamos visitar mesothelioma symptoms y lexington law tambien many people lexington law firm and merlin olsen mesothelioma many people mesothelioma trial lawyers and atlanta mesothelioma lawyers Mesothelioma law firm, massachusetts mesothelioma attorney EEUU,Selling annuity payments for cash,Sell my structured settlement,Sell structured settlement,Structured settlement,Structured settlement companies,Sell my annuity payments lump sum,Car accident lawyer Denver,Accident injury attorneys,Sell my annuity

Psd to WordPress Auto Mobile Insurance Quote DONATE YOUR CAR FOR KIDS Mortgage adviser car insurance quotes mn Home phone internet bundle alabama mesothelioma lawyer chicago hair laser removal Hard drive data recovery services Donate Car To Charity CALIFORNIA Online casino Auto Mobile Shipping Quote car insurance quotes Custom WordPress theme designer World trade center footage most profitable internet business Casino illinois law lemon Casino reviews Computer science classes online Adobe illustrator classes fast cash for house Cheap Auto Insurance in VA ROYALTY FREE IMAGES STOCK Car Insurance Quotes PA online motor insurance quotes criminal defense federal lawyer Mobile casino Proud Italian cook MET AUTO Psd to html michigan motorcycle accident lawyer Live casino Register Free Domains NEUSON Health Records Personal Health Record domain yahoo CAR DONATE Online College Course Best social media platforms Make money online Australia Mortgage Adviser Criminal defense attorneys Florida buy gift card Donate a Car in Maryland Dayton Freight Lines WordPress hosting onlineclasses Personal Injury Lawyers mesothelioma lawyer california Hire php programmers Hire php developer accident lawyers in los angeles DUI lawyer Hire php developers arizona auto accident attorney sell annuity payment auto accident lawyer san francisco accident attorney in los angeles Business finance group Cheap Car Insurance in Virginia Dwi lawyer motor replacements cash out structured settlement benchmark lending motorcycle accident attorney sacramento Criminal lawyer SELL ANNUITY PAYMENT Psychic for free structured settlement buyer Service business software Motor Replacements buying an annuity calculator Motor replacements Donate car to charity California STRUCTURED ANNUITY SETTLEMENT personal injury solicitor Online Colleges PHD on Counseling Education Criminal defense lawyer ashely madis personal injury firm Best social media platforms for business New social media platforms life insurance co lincoln Best Seo company Psychic for Free Php programmers for hire Seo company Donate Car for Tax Credit mesothelioma information structured annuity settlement Car Insurance in South Dakota Bankruptcy lawyer Php programmers personal injury lawyer sarasota fl Insurance Companies Cheap Car Insurance for Ladies Online motor insurance quotes Seo companies refinance with poor credit att call conference NUNAVUT CULTURE Social media examiner dui lawyer scottsdale Social media platforms for business Social media tools selling structured settlement Seo services la personal injury lawyer Gas/Electricity EMAIL BULK SERVICE cheap car insurance in virginia Business management software Holland Michigan College

Share:

Slideshow de imágenes como fondo del blog – Negocios – Negocios


En la entrada anterior vimoscómo hacer que la imagen de fondo del blog cubra toda la pantalla sin importar la resolución del monitor. El método que usamos con jQuery es un plugin llamadoBackStretch el cual también tiene la opción de crear un slideshow de imágenes como fondo del blog sin perder la cualidad de ajustarse al ancho y alto de la pantalla.
Lo que haremos en esta en estrada es justamente eso,que el fondo del blog tenga imágenes que vayan cambiando, todas con un efecto de desvanecimiento entre cada transición.

Puedes ver un ejemplo eneste blog de pruebas.

Para poner esteslideshow de imágenes en el fondo del blog entra en laEdición HTML de la plantilla y antes de/head agrega el siguiente código:
script src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js' type='text/javascript'/
script
//![CDATA[
/*
* jQuery Backstretch
* Version 1.2.8
* http://srobbin.com/jquery-plugins/jquery-backstretch/
* Add a dynamically-resized background image to the page
* Copyright (c) 2012 Scott Robbin (srobbin.com)
* Licensed under the MIT license
* https://raw.github.com/srobbin/jquery-backstretch/master/LICENSE.txt
*/
;(function(a){a.backstretch=function(p,b,l){function s(){if(p){var b;0==c.length?c=a("div /").attr("id","backstretch").css({left:0,top:0,position:m?"fixed":"absolute",overflow:"hidden",zIndex:-999999,margin:0,padding:0,height:"100%",width:"100%"}):c.find("img").addClass("deleteable");b=a("img /").css({position:"absolute",display:"none",margin:0,padding:0,border:"none",zIndex:-999999,maxWidth:"none"}).bind("load",function(d){var b=a(this),e;b.css({width:"auto",height:"auto"});e=this.width||a(d.target).width();d=this.height||a(d.target).height();n=e/d;q();b.fadeIn(g.speed,function(){c.find(".deleteable").remove();"function"==typeof l&&l()})}).appendTo(c);0==a("body #backstretch").length&&(0===a(window).scrollTop()&&window.scrollTo(0,0),a("body").append(c));c.data("settings",g);b.attr("src",p);a(window).unbind("resize.backstretch").bind("resize.backstretch",function(){"onorientationchange"in window&&window.pageYOffset===0&&window.scrollTo(0,1);q()})}}function q(){try{j={left:0,top:0},rootWidth=h=o.width(),rootHeight=r?window.innerHeight:o.height(),f=h/n,f=rootHeight?(k=(f-rootHeight)/2,g.centeredY&&(j.top="-"+k+"px")):(f=rootHeight,h=f*n,k=(h-rootWidth)/2,g.centeredX&&(j.left="-"+k+"px")),c.css({width:rootWidth,height:rootHeight}).find("img:not(.deleteable)").css({width:h,height:f}).css(j)}catch(a){}}var t={centeredX:!0,centeredY:!0,speed:0},c=a("#backstretch"),g=c.data("settings")||t;c.data("settings");var o,m,r,n,h,f,k,j;b&&"object"==typeof b&&a.extend(g,b);b&&"function"==typeof b&&(l=b);a(document).ready(function(){var b=window,d=navigator.userAgent,c=navigator.platform,e=d.match(/AppleWebKit\/([0-9]+)/),e=!!e&&e[1],f=d.match(/Fennec\/([0-9]+)/),f=!!f&&f[1],g=d.match(/Opera Mobi\/([0-9]+)/),h=!!g&&g[1],i=d.match(/MSIE ([0-9]+)/),i=!!i&&i[1];o=(m=!((-1c.indexOf("iPhone")||-1c.indexOf("iPad")||-1c.indexOf("iPod"))&&e&&534e||b.operamini&&"[object OperaMini]"==={}.toString.call(b.operamini)||g&&7458h||-1d.indexOf("Android")&&e&&533e||f&&6f||"palmGetResource"in window&&e&&534e||-1d.indexOf("MeeGo")&&-1d.indexOf("NokiaBrowser/8.5.0")||i&&6=i))?a(window):a(document);r=m&&window.innerHeight;s()});return this}})(jQuery);
//
/script
script
//![CDATA[
var images = [
"URL de la imagen",
"URL de la imagen",
"URL de la imagen",
"URL de la imagen",
"URL de la imagen",
];

$(images).each(function(){
$('img/')[0].src = this;
});
var index = 0;
$.backstretch(images[index], {speed: 1000});
var slideshow = setInterval(function() {
index = (index = images.length - 1) ? 0 : index + 1;
$.backstretch(images[index]);
},5000);
//
/script
Ahí agrega las URLs de las imágenes que estarán como fondo del blog.
Si quisieras añadir más imágenes sólo agrega después devar images = [ otra línea como esta:
"URL de la imagen",

Las imágenes irán pasando según el orden que las hayas puesto, si quisieras que éstas fueran al azar entonces cambia la segunda parte del código por este:
script
//![CDATA[
var images=new Array();
images[1 ]="URL de la imagen";
images[2 ]="URL de la imagen";
images[3 ]="URL de la imagen";
images[4 ]="URL de la imagen";
images[5 ]="URL de la imagen";

Array.prototype.shuffle = function() {
var len = this.length;
var i = len;
while (i--) {
var p = parseInt(Math.random()*len);
var t = this[i];
this[i] = this[p];
this[p] = t;
}
};

images.shuffle();
$(images).each(function(){
$('img/')[0].src = this;
});
var index = 0;
$.backstretch(images[index], {speed: 1000});
var slideshow = setInterval(function() {
index = (index = images.length - 1) ? 0 : index + 1;
$.backstretch(images[index]);
},5000);
//
/script
También puedes añadir más imágenes agregando una línea como esta:
images[6 ]="URL de la imagen";
Sin embargo verás que en este caso hay unos números consecutivos en color azul, por lo que si agregas otra será la 6, luego la 7, etc.

En ambos casos puedes modificar el tiempo que dura cada imagen en el5000 que está al final del script.
La ventaja de este slideshow en el fondo del blog es que las imágenes se redimensionarán automáticamente al tamaño del monitor, así que en cualquier resolución se deberá ver bien.

No está de más recordar que si usas Scriptaculous deberáshacer unos cambios, y si ya usas jQuery deberás dejarsólo una versión.


Página del autor | BackStretch

MESOTHELIOMA LAW FIRMDONATE CAR TO CHARITY CALIFORNIAHARDDRIVE DATA RECOVERY SERVICESDONATE A CAR IN MARYLAND DONATING A CAR IN MARYLAND,DONATE CARS ILLINOIS,CRIMINAL DEFENSE ATTORNEYS FLORIDA ,BEST CRIMINAL LAWYER IN ARIZONASTRUCTURED ANNUITY SETTLEMENT,ASBESTOS LAWYERS,NUNAVUT CULTURE,DAYTON FREIGHT LINES ,Bextra Bankruptcy Dental Plan Private JetMundial Football Perros,FIFA World Cup Peinados caninos,Veterinarios caninos,MESOTHELIOMA LAW FIRM,MESOTHELIOMA LAW FIRM,DONATE CAR TO CHARITY CALIFORNIA ,DONATE CAR FOR TAX CREDIT,DONATE CARS IN MA,DONATE YOUR CAR SACRAMENTO,HOW TO DONATE A CAR IN CALIFORNIA,SELL ANNUITY PAYMENT,DONATE YOUR CAR FOR KIDS,ASBESTOS LAWYERS,DONATE YOUR CAR FOR KIDS ,Selling annuity payments for cashSelling annuity payments for cash,Sell my structured settlement,Sell structured settlement,Structured settlement,Structured settlement companies,Sell my annuity payments lump sum,Car accident lawyer Denver,Accident injury attorneys,Sell my annuity

MESOTHELIOMA LAW FIRMDONATE CAR TO CHARITY CALIFORNIAHARDDRIVE DATA RECOVERY SERVICESDONATE A CAR IN MARYLAND DONATING A CAR IN MARYLAND,DONATE CARS ILLINOIS,CRIMINAL DEFENSE ATTORNEYS FLORIDA ,BEST CRIMINAL LAWYER IN ARIZONASTRUCTURED ANNUITY SETTLEMENT,ASBESTOS LAWYERS,NUNAVUT CULTURE,DAYTON FREIGHT LINES ,Bextra Bankruptcy Dental Plan Private Jet

Casino reviews Photo Christmas cards HOLLAND MICHIGAN COLLEGE Seo companies structured settlement company Best Seo company Online casino donate car for tax credit accident attorney orange county Insurance Companies Social media campaigns Mobile casino Criminal lawyer Miami Email Bulk Service PAPERPORT PROMOTIONAL CODE Personal Injury Law Firm DUI lawyer asbestos lawyers Hire php developers Seo company Life Insurance Co Lincoln hughes net business Social media management Best social media platforms for business adverse credit remortgage new mexico mesothelioma lawyer DONATE YOUR CAR SACRAMENTO Auto Mobile Insurance Quote Casino Adobe illustrator classes Attorney los angeles auto accident attorneys Hire php developer Online Colleges Cheap Car Insurance for Ladies structured settlement sell best structured settlement companies WordPress hosting Make money online Australia motor replacements personal injury attorney torrance houston mesothelioma attorney Best Criminal Lawyers in Arizona event management security Dallas Mesothelioma Attorneys Criminal defense lawyer Auto Accident Attorney Hire php programmers HOME PHONE INTERNET BUNDLE Live casino selling my structured settlement Donate Car for Tax Credit Online Stock Trading virtual data rooms Service business software Bankruptcy lawyer World Trade Center Footage boca raton personal injury attorney Car Insurance Companies Dwi lawyer automobile accident attorney Cheap auto insurance in VA FORENSICS ONLINE COURSE Nunavut Culture refinance with poor credit ASBESTOS LAWYERS register free domains Criminal lawyer Home Phone Internet Bundle auto insurance cost by state cheap car insurance in virginia DONATE YOUR CAR FOR MONEY hair removal washington dc Dallas mesothelioma attorneys Php programmers for hire refinance with bad credit mesothelioma information See more at http//wwwginfostopnet/ forensics online course structured annuity settlement Low Credit Line Credit Cards structured settlement buyers PHD IN COUNSELING EDUCATION car accident lawyers dallas mesothelioma lawyer Php programmers illinois law lemon NUNAVUT CULTURE Dedicated Hosting Dedicated Server Hosting Best social media platforms Donate Your Car for Kids houston tx auto insurance Computer science classes online Proud Italian cook mesothelioma lawyers san diego New social media platforms mesothelioma settlement amounts motorcycle accident lawyer california Donate a Car in Maryland what is structured settlement CAR INSURANCE QUOTES COLORADO REGISTER FREE DOMAINS webex costs DALLAS MESOTHELIOMA ATTORNEYS mesothelioma claim Sell Annuity Payment philadelphia mesothelioma lawyer verizon sip mesothelioma lawyer virginia Donating used cars to charity business voice mail service CHEAP CAR INSURANCE FOR LADIES Donate your Car for Money Donate old cars to charity Annuity Settlements

Share:

Slider automático para mostrar las últimas entradas del blog (Easy Slider) – Settlement – Lincoln – programmers



Este es un slider queAbu Farhan adaptó delEasy Slider, unslider hecho con jQuery, y que con su adaptación lo ha hechoautomático de manera que muestre las últimas entradas del blog tal como elslider automático que vimos hace algunas semanas, es decir, que el slider mostrará las últimas entradas del blog de forma automática, sin necesidad de agregar manualmente las entradas.

Nosotros por nuestra parte, hemos modificado un poco el slider, no mucho en realidad, sólo hemos cambiado la forma como se muestran los resúmenes de las entradas, y en lugar de usar servicios externos para alojar los scripts, los alojaremos directo en la plantilla.

El demo del slider lo puedes ver aquí mismo en esta entrada.

Para poner este slider en tu blog entra en laEdición HTML, y antes de/b:skin agrega los estilos:
/* Easy Slider (Automático)
-------------------------------------------------------------------- */
#slide-container {
width:480px;
height:320px;
position:relative;
}
#slider {
width:480px;
height:320px;
left:25px;
overflow-x:hidden;
overflow-y:hidden;
position:relative;
}
.slide-desc {
background:transparent url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUOz7qiW8lxmeOGBaLejJDFGlB8YQhZLFn_kHqKl-CqHFtsGWYI7qRV3UJARYIdTcKJJ91y_ZDc0Yu9zBXFP-JRQGf8jCAMpaQMVNNH0Pvj3W_FsPNXD2psNmM3usIBaZJZQjP-mlXvao/s30/bgtransparent.png) repeat scroll 0 0;
color:#FFFFFF;
padding:10px;
position:absolute;
text-align:left;
bottom:0;
width:100%;
z-index:99999;
}
.slide-desc h2{
display:block;
color:#f2f2f2;
font-size:14px;
}
.crosscol .widget-content {position:relative;}
#slider ul, #slider li {
margin:0;
padding:0;
list-style:none;
}
#slider li {
width:480px;
height:320px;
overflow:hidden;
}
#prevBtn, #nextBtn {
display:block;
width:30px;
height:77px;
position:absolute;
left:-30px;
text-indent:-9999px;
top:71px;
z-index:1000;
}
#nextBtn {
left:500px !important;
}
#prevBtn, #nextBtn {
display:block;
left:0;
position:absolute;
top:132px;
width:30px;
height:77px;
z-index:1000;
}
#prevBtn a, #nextBtn a {
display:block;
position:relative;
width:30px;
height:77px;
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi44azfaLjGkc8e-1dGcbPgMsP6OnLz8GiF9avK_wYT37SSodRyILAHuRSZ_uuaeUymWfoIj2ROsy2QUZ-qnMJM5mGHyxEAs1Voimp8HL350Hq5RBFplf7g6c6H7HgbLYwJ49wpTWes-Pw/s77/flecha-prev.png) no-repeat 0 0;
}
#nextBtn a {
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQTMiW_YbwZbWBBEiJgGi77CGmmFZOk_TCKpUCyho0kszGq0udKn5lyTaDv2V5cCIoE5QbOzcQt8hsPltKmA1LdjCweBfiA4RbStpGSpqHa-7_a2dF5uOaVoZnmlGOYtHm7k4_Armko7A/s77/flecha-next.png) no-repeat 0 0;
}
/* Estilos de los números */
ol#controls{
margin:8px 25px;
padding:0;
height:28px;
}
ol#controls li{
margin:0 4px 0 0;
padding:0;
float:left;
list-style:none;
height:28px;
line-height:28px;
}
ol#controls li a{
float:left;
height:28px;
line-height:28px;
border:1px solid #000; /* Borde de los números */
background:#0B243B;/* Color de fondo de los números */
color:#fff;/* Color de los números */
padding:0 10px;
text-decoration:none;
}
ol#controls li.current a{
background:#5DC9E1;/* Color de fondo del número activo */
color:#fff;/* Color del número activo */
}
ol#controls li a:focus, #prevBtn a:focus, #nextBtn a:focus{outline:none;}
Ahora antes de/head agrega este script:
script
//![CDATA[
var showpostthumbnails_gal = true;
var showpostsummary_gal = true;
var random_posts = false;
var numchars_gal = 150;
var numposts_gal = 10;
function showgalleryposts(json) {
var numPosts = json.feed.openSearch$totalResults.$t;
var indexPosts = new Array();
document.write('ul');
for (var i = 0; i numPosts; ++i) {
indexPosts[i] = i;
}
if (random_posts == true){
indexPosts.sort(function() {return 0.5 - Math.random()});
}
if (numposts_gal numPosts) {
numposts_gal = numPosts;
}
for (i = 0; i numposts_gal; ++i) {
var entry_gal = json.feed.entry[indexPosts[i;
var posttitle_gal = entry_gal.title.$t;
for (var k = 0; k entry_gal.link.length; k++) {
if ( entry_gal.link[k].rel == 'alternate') {
posturl_gal = entry_gal.link[k].href;
break;
}
}
if ("content" in entry_gal) {
var postcontent_gal = entry_gal.content.$t
}
s = postcontent_gal;
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 != "")) {
var thumburl_gal = d
} else var thumburl_gal = 'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg25uGB2CHzJuN7vT1E1CwKYugvYRaMffgD0XE14mbin97lvLTVZ8RQo2dAnYN8IpW4HFEsreKuvuPMNQJGt5s8BRAizeaqEWDJGPIKNiTu7pVL5HGA2_azvihXni81DjLTdV_eQ5p5QpU/s0/sin-imagen.png';
document.write('lidiv id="slide-container"span class="slide-desc"h2 style="margin:10px 0px;"');
document.write(posttitle_gal + '/h2');
var re = /\S[^]*/g;
postcontent_gal = postcontent_gal.replace(re, "");
if (showpostsummary_gal == true) {
if (postcontent_gal.length numchars_gal) {
document.write(postcontent_gal);
document.write('/span')
} else {
postcontent_gal = postcontent_gal.substring(0, numchars_gal);
var quoteEnd_gal = postcontent_gal.lastIndexOf(" ");
postcontent_gal = postcontent_gal.substring(0, quoteEnd_gal);
document.write(postcontent_gal + '...');
document.write('/span')
}
}
document.write('a href="' + posturl_gal + '"img src="' + thumburl_gal + '" width="480px" height="320"//a/div');
document.write('/li');
}
document.write('/ul');

}
//
/script
Lo siguiente será pegar antes de/body este script:
script src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js' type='text/javascript'/

script type='text/javascript'
//![CDATA[
/*
* Easy Slider 1.7 - jQuery plugin
* written by Alen Grakalic
* http://cssglobe.com/post/4004/easy-slider-15-the-easiest-jquery-plugin-for-sliding
* Copyright (c) 2009 Alen Grakalic (http://cssglobe.com)
*/
(function($){$.fn.easySlider=function(options){var defaults={prevId:'prevBtn',prevText:'Previous',nextId:'nextBtn',nextText:'Next',controlsShow:true,controlsBefore:'',controlsAfter:'',controlsFade:true,firstId:'firstBtn',firstText:'First',firstShow:false,lastId:'lastBtn',lastText:'Last',lastShow:false,vertical:false,speed:800,auto:false,pause:5000,continuous:false,numeric:false,numericId:'controls'};var options=$.extend(defaults,options);this.each(function(){var obj=$(this);var s=$("li",obj).length;var w=$("li",obj).width();var h=$("li",obj).height();var clickable=true;obj.width(w);obj.height(h);obj.css("overflow","hidden");var ts=s-1;var t=0;$("ul",obj).css('width',s*w);if(options.continuous){$("ul",obj).prepend($("ul li:last-child",obj).clone().css("margin-left","-"+w+"px"));$("ul",obj).append($("ul li:nth-child(2)",obj).clone());$("ul",obj).css('width',(s+1)*w)};if(!options.vertical)$("li",obj).css('float','left');if(options.controlsShow){var html=options.controlsBefore;if(options.numeric){html+='ol id="'+options.numericId+'"/ol'}else{if(options.firstShow)html+='span id="'+options.firstId+'"a href=\"javascript:void(0);\"'+options.firstText+'/a/span';html+=' span id="'+options.prevId+'"a href=\"javascript:void(0);\"'+options.prevText+'/a/span';html+=' span id="'+options.nextId+'"a href=\"javascript:void(0);\"'+options.nextText+'/a/span';if(options.lastShow)html+=' span id="'+options.lastId+'"a href=\"javascript:void(0);\"'+options.lastText+'/a/span'};html+=options.controlsAfter;$(obj).after(html)};if(options.numeric){for(var i=0;is;i++){$(document.createElement("li")).attr('id',options.numericId+(i+1)).html('a rel='+i+' href=\"javascript:void(0);\"'+(i+1)+'/a').appendTo($("#"+options.numericId)).click(function(){animate($("a",$(this)).attr('rel'),true)})}}else{$("a","#"+options.nextId).click(function(){animate("next",true)});$("a","#"+options.prevId).click(function(){animate("prev",true)});$("a","#"+options.firstId).click(function(){animate("first",true)});$("a","#"+options.lastId).click(function(){animate("last",true)})};function setCurrent(i){i=parseInt(i)+1;$("li","#"+options.numericId).removeClass("current");$("li#"+options.numericId+i).addClass("current")};function adjust(){if(tts)t=0;if(t0)t=ts;if(!options.vertical){$("ul",obj).css("margin-left",(t*w*-1))}else{$("ul",obj).css("margin-left",(t*h*-1))}clickable=true;if(options.numeric)setCurrent(t)};function animate(dir,clicked){if(clickable){clickable=false;var ot=t;switch(dir){case"next":t=(ot=ts)?(options.continuous?t+1:ts):t+1;break;case"prev":t=(t=0)?(options.continuous?t-1:0):t-1;break;case"first":t=0;break;case"last":t=ts;break;default:t=dir;break};var diff=Math.abs(ot-t);var speed=diff*options.speed;if(!options.vertical){p=(t*w*-1);$("ul",obj).animate({marginLeft:p},{queue:false,duration:speed,complete:adjust})}else{p=(t*h*-1);$("ul",obj).animate({marginTop:p},{queue:false,duration:speed,complete:adjust})};if(!options.continuous&&options.controlsFade){if(t==ts){$("a","#"+options.nextId).hide();$("a","#"+options.lastId).hide()}else{$("a","#"+options.nextId).show();$("a","#"+options.lastId).show()};if(t==0){$("a","#"+options.prevId).hide();$("a","#"+options.firstId).hide()}else{$("a","#"+options.prevId).show();$("a","#"+options.firstId).show()}};if(clicked)clearTimeout(timeout);if(options.auto&&dir=="next"&&!clicked){;timeout=setTimeout(function(){animate("next",false)},diff*options.speed+options.pause)}}};var timeout;if(options.auto){;timeout=setTimeout(function(){animate("next",false)},options.pause)};if(options.numeric)setCurrent(0);if(!options.continuous&&options.controlsFade){$("a","#"+options.prevId).hide();$("a","#"+options.firstId).hide()}})}})(jQuery);

$(document).ready(function(){
$("#slider").easySlider({
auto: true,
continuous: true,
numeric: false// Cambiar a true si se quiere mostrar la paginación de números
});
});
//
/script
Por último entra en la sección deDiseño y agrega un elementoHTML/Javascript, ahí pega esto:
div id="slider"
script style="text/javascript"
var numposts_gal = 10;// Número de entradas a mostrar
var numchars_gal = 150;// Número de caracteres en el resumen
var random_posts = false;// Cambiar por true si se quieren aleatorios
/script
script src="http://nombre-de-mi-blog.blogspot.com/feeds/posts/default?orderby=published&alt=json-in-script&callback=showgalleryposts&max-results=999999"/script
/div

Cambia el nombre de tu blog donde se indica y listo.
En color naranja puedes ver algunas variantes, una de ellas es que connumeric podemos hacer desaparecer las flechas y en su lugar mostrar una paginación con números para poder navegar por las entradas del slider.
En el último código podrás ver dónde configurar el número de entradas a mostrar, el número de caracteres en el resumen, y si se desea que las entradas aparezcan de forma aleatoria.

Si deseas cambiar el tamaño del slider cambia todos los width:480px; y height:320px; que encuentres, incluyendo los de esta área:
img src="' + thumburl_gal + '"width="480px" height="320"/

Las flechas son imágenes, así que si deseas modificarlas en color o forma tendrás que cambiar las URLs que se encuentran en el primer código.

Como puedes ver, es un slider con muchas ventajas, la principal es que muestra el contenido de forma automática, sin necesidad de estar agregando entrada por entrada; pero además, la posibilidad de elegir la paginación y las entradas de forma aleatoria le dan un extra.


Vía | Abu Farhan

MESOTHELIOMA LAW FIRMDONATE CAR TO CHARITY CALIFORNIAHARDDRIVE DATA RECOVERY SERVICESDONATE A CAR IN MARYLAND DONATING A CAR IN MARYLAND,DONATE CARS ILLINOIS,CRIMINAL DEFENSE ATTORNEYS FLORIDA ,BEST CRIMINAL LAWYER IN ARIZONASTRUCTURED ANNUITY SETTLEMENT,ASBESTOS LAWYERS,NUNAVUT CULTURE,DAYTON FREIGHT LINES ,Bextra Bankruptcy Dental Plan Private JetPero tuve que ser Mundial Football consolidating FIFA World Cup web host rating,register web address,online psychology degree,her first lesbian sex, make extra money ,make money fast and easy,addwords y mejor obtuve un credit application,visa gift carda,Mesothelioma law firm,voip phone service,Selling annuity payments for cash,Sell my structured settlement,Sell structured settlement,Structured settlement,Structured settlement companies,Sell my annuity payments lump sum,Car accident lawyer Denver,Accident injury attorneys,Sell my annuity

Donate Car To Charity CALIFORNIA DONATE CAR FOR TAX CREDITDONATE CARS IN MADONATE YOUR CAR SACRAMENTOHOW TO DONATE A CAR IN CALIFORNIA DONATE YOUR CAR FOR KIDS,CAR INSURANCE QUOTES COLORADO ,NUNAVUT CULTURE,DAYTON FREIGHT LINESHARDDRIVE DATA RECOVERY SERVICES,DONATE A CAR IN MARYLAND,MOTOR REPLACEMENTS,CHEAP DOMAIN REGISTRATION HOSTING,DONATING A CAR IN MARYLANDUn dia en Mundial Football MESOTHELIOMA LAW FIRM FIFA World Cup,DONATE CAR TO CHARITY CALIFORNIA , and STRUCTURED ANNUITY SETTLEMENT ,ANNUITY SETTLEMENTS, habia mucha monja pero fui a NUNAVUT CULTURE, DAYTON FREIGHT LINES and BUSINESS VOIP SOLUTIONS,CAR INSURANCE COMPANIES pero for you ONLINE CRIMINAL JUSTICE DEGREE ,PERSONAL INJURY LAW FIRM, Virtual data rooms and future now Automobile accident attorney and pero mas aya del visita and Mesothelioma law firm CHEAP CAR INSURANCE IN VIRGINIA,Selling annuity payments for cashSelling annuity payments for cash,Sell my structured settlement,Sell structured settlement,Structured settlement,Structured settlement companies,Sell my annuity payments lump sum,Car accident lawyer Denver,Accident injury attorneys,Sell my annuity

canada personals yahoo CAR INSURANCE QUOTES MN google affiliate broward county dui lawyer mesothelioma law firms best criminal lawyer in arizona Car Insurance Quotes PA Donate Car to Charity California Donate Cars Illinois structured settlements annuities car accident lawyers los angeles Claim asbestos mesothelioma lawsuit DONATE OLD CARS TO CHARITY Criminal defense attorneys Florida purchase structured settlements Nunavut Culture DUI lawyer selling annuity Car Insurance Quotes Colorado la personal injury lawyer DONATE A CAR IN MARYLAND Php programmers for hire ROYALTY FREE IMAGES STOCK Business finance group Donate car to charity California mesothelioma care Casino reviews Custom Christmas cards personal injury firm mesothelioma lawyer houston Cheap Car Insurance for Ladies Service business software WordPress themes for designers federal criminal defense attorney Car Insurance Quotes Utah Online Classes Online casino CAR DONATE Casino Mobile casino cash out structured settlement uk homeowner loans Make money online Australia bus accident attorneys Mortgage Adviser Psd to WordPress STRUCTURED ANNUITY SETTLEMENT donate car for tax credit compare life assurance Low Credit Line Credit Cards Live casino structured settlement purchasers injury lawyer houston tx structured settlement blog NUNAVUT CULTURE Hire php developers alcohol rehab center in florida Register free domains Hire php programmers workers compensation lawyer los angeles car insurance quotes HOME PHONE INTERNET BUNDLE Computer science classes online WordPress theme designers Donating Used Cars to Charity Better conferencing calls BEST CRIMINAL LAWYER IN ARIZONA Nunavut culture FORENSICS ONLINE COURSE injury lawyers west palm beach Forensics Online Course AUTO ACCIDENT ATTORNEY Cheap Auto Insurance in VA domain name yahoo world trade center footage Cheap Domain Registration Hosting Dwi lawyer Criminal lawyer Php programmers mesothelioma lawsuits home phone internet bundle mesothelioma drug Criminal defense lawyer georgia truck accident lawyer Register Free Domains Hire php developer domain yahoo Tech school Bankruptcy lawyer what is structured settlement Seo companies better conferencing calls Best social media platforms MET AUTO selling structured settlement Best social media platforms for business Donate your car Sacramento New social media platforms CHEAP CAR INSURANCE FOR LADIES mesothelioma attorney assistance Social media platforms for business maritime lawyer houston DONATE YOUR CAR SACRAMENTO CHEAP AUTO INSURANCE IN VA Custom WordPress theme designer Seo services Best Seo company Business management software car donate Seo company Motor Insurance Quotes DONATE CARS IN MA Online Christmas cards Donate a Car in Maryland

Share:

Slider automático para mostrar las últimas entradas (Featured Content Slider) – Hard drive – Dominios – programmers

Slider Automático

Hemos visto variossliders con distintos efectos para todos los gustos. Pero muchos no se animan a usar uno por el "mantenimiento" que este implica, es decir, tener que estar editando el slider continuamente para cambiar los textos, los títulos, las imágenes, etc. Así que una petición constante es un slider que haga el "trabajo sucio", es decir, unslider que muestra las últimas entradas del blog de forma automática, sin necesidad de estar editando el slider una vez que esté puesto.

Featured Content Slider es un script original de Dynamic Drive, aunque el slider en sí es una extracción de la plantillaSimplex Transcript.Muestra las últimas 10 entradas publicadas en el blog con su imagen, el título, y un resumen de cada entrada.
El demo puedes verlo aquí mismo.


Para poner este slider automático en el blog entra en laEdición HTML de la plantilla y antes de
/b:skin pega los estilos:

/* Featured Content Slider
----------------------------------------------- */
#featuredContent {
margin:0 auto;
padding:7px 7px 5px;
width:450px;
display:block;
background:#efefef;/* Color de fondo */
}
#featured-slider {
position: relative;
overflow: hidden;
width:450px;
height: 320px;
}
#featured-slider img {
display:block;
height:auto !important;
}
#featured-slider .sliderPostPhoto {
position:relative;
height:256px;
width:450px;
overflow:hidden;
}
#featured-slider .sliderPostInfo {
position:absolute;
bottom:0;
width:450px;
min-height:30px;
color:#fff;
padding:5px;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUOz7qiW8lxmeOGBaLejJDFGlB8YQhZLFn_kHqKl-CqHFtsGWYI7qRV3UJARYIdTcKJJ91y_ZDc0Yu9zBXFP-JRQGf8jCAMpaQMVNNH0Pvj3W_FsPNXD2psNmM3usIBaZJZQjP-mlXvao/s30/bgtransparent.png);
height:30px;
}
#featured-slider .sliderPostInfo p {
color:#fff;
font-size:1.1em;
padding:3px 5px 5px 6px;
}
#featured-slider .contentdiv {
visibility: hidden;
position: absolute;
left: 0;
top: 0;
z-index:1;
}
#paginate-featured-slider {
display:block;
margin-bottom:5px;
font:bold14.6px Arial, verdana, sans-serif;/* Tamaño fuente de los números */
}
#paginate-featured-slider a {
color:#000;
padding:2px 7px;
background:#ddd;
}
#paginate-featured-slider a:hover {
text-decoration:none;
color:#cd1713;/* Color de fondo de la pestaña al pasar el cursor */
}
#paginate-featured-slider a.selected {
color:#fff;
text-decoration:none;
background:#cd1713;/* Color de fondo de la pestaña activa */
}
h2.featuredTitle {
font:14px "trebuchet ms", arial, sans-serif;/* Tamaño fuente de los títulos */
font-weight:normal;
letter-spacing:1px;
display:block !important;
margin: auto 0 !important;
}
h2.featuredTitle a {
color:#fff;
display:block;
padding:3px;
}
h2.featuredTitle a:hover {
text-decoration:underline;
}
Ahora antes de/head pega los scripts, que son algo largos:

script type='text/javascript'
//![CDATA[
// Featured Content Slider (CB)
//** Featured Content Slider script- (c) Dynamic Drive DHTML code library: http://www.dynamicdrive.com.
// Featured Content Slider- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
// This notice MUST stay intact for legal use
// Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more

var featuredcontentslider={
ajaxloadingmsg: 'div style="margin: 20px 0 0 20px"img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifKdtXpvAvD3XfJsq76edCCIWvzyl0mouoPnssfPCX4QMvMbsC-XBpARtg54hSZ4q83kK9H79gAkj3NqGaIeRslScqPfliak09R31dzneuqiYewc-QyKMSEvHAN4mXByw4u5HArEpBXWBZ/s32/loading.gif" / Cargando imágenes.../div',
bustajaxcache: true,
enablepersist: true,
settingcaches: {},
jumpTo:function(fcsid, pagenumber){
this.turnpage(this.settingcaches[fcsid], pagenumber)
},

ajaxconnect:function(setting){
var page_request = false
if (window.ActiveXObject){
try {
page_request = new ActiveXObject("Msxml2.XMLHTTP")
}
catch (e){
try{
page_request = new ActiveXObject("Microsoft.XMLHTTP")
}
catch (e){}
}
}
else if (window.XMLHttpRequest)
page_request = new XMLHttpRequest()
else
return false
var pageurl=setting.contentsource[1]
page_request.onreadystatechange=function(){
featuredcontentslider.ajaxpopulate(page_request, setting)
}
document.getElementById(setting.id).innerHTML=this.ajaxloadingmsg
var bustcache=(!this.bustajaxcache)? "" : (pageurl.indexOf("?")!=-1)? "&"+new Date().getTime() : "?"+new Date().getTime()
page_request.open('GET', pageurl+bustcache, true)
page_request.send(null)
},

ajaxpopulate:function(page_request, setting){
if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1)){
document.getElementById(setting.id).innerHTML=page_request.responseText
this.buildpaginate(setting)
}
},

buildcontentdivs:function(setting){
var alldivs=document.getElementById(setting.id).getElementsByTagName("div")
for (var i=0; ialldivs.length; i++){
if (this.css(alldivs[i], "contentdiv", "check")){
setting.contentdivs.push(alldivs[i])
alldivs[i].style.display="none"
}
}
},

buildpaginate:function(setting){
this.buildcontentdivs(setting)
var sliderdiv=document.getElementById(setting.id)
var pdiv=document.getElementById("paginate-"+setting.id)
var phtml=""
var toc=setting.toc
var nextprev=setting.nextprev
if (typeof toc=="string" && toc!="markup" || typeof toc=="object"){
for (var i=1; i=setting.contentdivs.length; i++){
phtml+='a href="#'+i+'" class="toc"'+(typeof toc=="string"? toc.replace(/#increment/, i) : toc[i-1])+'/a '
}
phtml=(nextprev[0]!=''? 'a href="#prev" class="prev"'+nextprev[0]+'/a ' : '') + phtml + (nextprev[1]!=''? 'a href="#next" class="next"'+nextprev[1]+'/a' : '')
pdiv.innerHTML=phtml
}
var pdivlinks=pdiv.getElementsByTagName("a")
var toclinkscount=0 //var to keep track of actual # of toc links
for (var i=0; ipdivlinks.length; i++){
if (this.css(pdivlinks[i], "toc", "check")){
if (toclinkscountsetting.contentdivs.length-1){
pdivlinks[i].style.display="none"
continue
}
pdivlinks[i].setAttribute("rel", ++toclinkscount)
pdivlinks[i][setting.revealtype]=function(){
featuredcontentslider.turnpage(setting, this.getAttribute("rel"))
return false
}
setting.toclinks.push(pdivlinks[i])
}
else if (this.css(pdivlinks[i], "prev", "check") || this.css(pdivlinks[i], "next", "check")){
pdivlinks[i].onclick=function(){
featuredcontentslider.turnpage(setting, this.className)
return false
}
}
}
this.turnpage(setting, setting.currentpage, true)
if (setting.autorotate[0]){
pdiv[setting.revealtype]=function(){
featuredcontentslider.cleartimer(setting, window["fcsautorun"+setting.id])
}
sliderdiv["onclick"]=function(){
featuredcontentslider.cleartimer(setting, window["fcsautorun"+setting.id])
}
setting.autorotate[1]=setting.autorotate[1]+(1/setting.enablefade[1]*50)
this.autorotate(setting)
}
},

urlparamselect:function(fcsid){
var result=window.location.search.match(new RegExp(fcsid+"=(\\d+)", "i"))
return (result==null)? null : parseInt(RegExp.$1)
},

turnpage:function(setting, thepage, autocall){
var currentpage=setting.currentpage //current page # before change
var totalpages=setting.contentdivs.length
var turntopage=(/prev/i.test(thepage))? currentpage-1 : (/next/i.test(thepage))? currentpage+1 : parseInt(thepage)
turntopage=(turntopage1)? totalpages : (turntopagetotalpages)? 1 : turntopage //test for out of bound and adjust
if (turntopage==setting.currentpage && typeof autocall=="undefined") //if a pagination link is clicked on repeatedly
return
setting.currentpage=turntopage
setting.contentdivs[turntopage-1].style.zIndex=++setting.topzindex
this.cleartimer(setting, window["fcsfade"+setting.id])
setting.cacheprevpage=setting.prevpage
if (setting.enablefade[0]==true){
setting.curopacity=0
this.fadeup(setting)
}
if (setting.enablefade[0]==false){ //if fade is disabled, fire onChange event immediately (verus after fade is complete)
setting.contentdivs[setting.prevpage-1].style.display="none" //collapse last content div shown (it was set to "block")
setting.onChange(setting.prevpage, setting.currentpage)
}
setting.contentdivs[turntopage-1].style.visibility="visible"
setting.contentdivs[turntopage-1].style.display="block"
if (setting.prevpage=setting.toclinks.length) //make sure pagination link exists (may not if manually defined via "markup", and user omitted)
this.css(setting.toclinks[setting.prevpage-1], "selected", "remove")
if (turntopage=setting.toclinks.length) //make sure pagination link exists (may not if manually defined via "markup", and user omitted)
this.css(setting.toclinks[turntopage-1], "selected", "add")
setting.prevpage=turntopage
if (this.enablepersist)
this.setCookie("fcspersist"+setting.id, turntopage)
},

setopacity:function(setting, value){
var targetobject=setting.contentdivs[setting.currentpage-1]
if (targetobject.filters && targetobject.filters[0]){ //IE syntax
if (typeof targetobject.filters[0].opacity=="number") //IE6
targetobject.filters[0].opacity=value*100
else //IE 5.5
targetobject.style.filter="alpha(opacity="+value*100+")"
}
else if (typeof targetobject.style.MozOpacity!="undefined") //Old Mozilla syntax
targetobject.style.MozOpacity=value
else if (typeof targetobject.style.opacity!="undefined") //Standard opacity syntax
targetobject.style.opacity=value
setting.curopacity=value
},

fadeup:function(setting){
if (setting.curopacity1){
this.setopacity(setting, setting.curopacity+setting.enablefade[1])
window["fcsfade"+setting.id]=setTimeout(function(){featuredcontentslider.fadeup(setting)}, 50)
}
else{ //when fade is complete
if (setting.cacheprevpage!=setting.currentpage) //if previous content isn't the same as the current shown div (happens the first time the page loads/ script is run)
setting.contentdivs[setting.cacheprevpage-1].style.display="none" //collapse last content div shown (it was set to "block")
setting.onChange(setting.cacheprevpage, setting.currentpage)
}
},

cleartimer:function(setting, timervar){
if (typeof timervar!="undefined"){
clearTimeout(timervar)
clearInterval(timervar)
if (setting.cacheprevpage!=setting.currentpage){ //if previous content isn't the same as the current shown div
setting.contentdivs[setting.cacheprevpage-1].style.display="none"
}
}
},

css:function(el, targetclass, action){
var needle=new RegExp("(^|\\s+)"+targetclass+"($|\\s+)", "ig")
if (action=="check")
return needle.test(el.className)
else if (action=="remove")
el.className=el.className.replace(needle, "")
else if (action=="add")
el.className+=" "+targetclass
},

autorotate:function(setting){
window["fcsautorun"+setting.id]=setInterval(function(){featuredcontentslider.turnpage(setting, "next")}, setting.autorotate[1])
},

getCookie:function(Name){
var re=new RegExp(Name+"=[^;]+", "i"); //construct RE to search for target name/value pair
if (document.cookie.match(re)) //if cookie found
return document.cookie.match(re)[0].split("=")[1] //return its value
return null
},

setCookie:function(name, value){
document.cookie = name+"="+value

},


init:function(setting){
var persistedpage=this.getCookie("fcspersist"+setting.id) || 1
var urlselectedpage=this.urlparamselect(setting.id) //returns null or index from: mypage.htm?featuredcontentsliderid=index
this.settingcaches[setting.id]=setting //cache "setting" object
setting.contentdivs=[]
setting.toclinks=[]
setting.topzindex=0
setting.currentpage=urlselectedpage || ((this.enablepersist)? persistedpage : 1)
setting.prevpage=setting.currentpage
setting.revealtype="on"+(setting.revealtype || "click")
setting.curopacity=0
setting.onChange=setting.onChange || function(){}
if (setting.contentsource[0]=="inline")
this.buildpaginate(setting)
if (setting.contentsource[0]=="ajax")
this.ajaxconnect(setting)
}}

imgr = new Array();
imgr[0] = "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg25uGB2CHzJuN7vT1E1CwKYugvYRaMffgD0XE14mbin97lvLTVZ8RQo2dAnYN8IpW4HFEsreKuvuPMNQJGt5s8BRAizeaqEWDJGPIKNiTu7pVL5HGA2_azvihXni81DjLTdV_eQ5p5QpU/s0/sin-imagen.png";
showRandomImg = true;

aBold = true;

summaryPost = 220;
summaryTitle = 25;

numposts = 10;
numposts1 = 1;
numposts2 = 4;
numposts3 = 4;
numposts4 = 1;
numposts5 = 4;
numposts6 = 6;
numposts7 = 5;
numposts8= 10;
numposts9= 8;
numposts10= 12;


function removeHtmlTag(strx,chop){
var s = strx.split("");
for(var i=0;is.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 showrecentposts1(json) {
j = (showRandomImg) ? Math.floor((imgr.length+1)*Math.random()) : 0;
img = new Array();

for (var i = 0; i numposts; 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(jimgr.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') ? 'ifont color="'+acolor+'"('+pcm+' '+text+')/font/i' : '';


var trtd = 'div class="featuredPost lastPost"h2 class="postTitle"a href="'+posturl+'"'+posttitle+'/a/h2a href="'+posturl+'"img width="70" height="70" class="alignleft" src="'+img[i]+'"//ap'+removeHtmlTag(postcontent,summaryPost)+'.../p/div';
document.write(trtd);


j++;
}

}

function showrecentposts1a(json) {
j = (showRandomImg) ? Math.floor((imgr.length+1)*Math.random()) : 0;
img = new Array();

for (var i = 0; i numposts; 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(jimgr.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') ? 'ifont color="'+acolor+'"('+pcm+' '+text+')/font/i' : '';



var trtd = 'div class="featuredPost"h2 class="postTitle"a href="'+posturl+'"'+posttitle+'/a/h2a href="'+posturl+'"img width="60" height="45" class="alignright" src="'+img[i]+'"//ap'+removeHtmlTag(postcontent,summaryPost)+'.../p/div';
document.write(trtd);


j++;
}

}


function showrecentposts2(json) {
j = (showRandomImg) ? Math.floor((imgr.length+1)*Math.random()) : 0;
img = new Array();

for (var i = 0; i 10; 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(jimgr.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') ? 'ifont color="'+acolor+'"('+pcm+' '+text+')/font/i' : '';

var trtd = 'lia href="'+posturl+'"'+posttitle+'/a/li';
document.write(trtd);


j++;
}

}

function showrecentposts3(json) {
j = (showRandomImg) ? Math.floor((imgr.length+1)*Math.random()) : 0;
img = new Array();
document.write('div class="featuredPost lastpost"');
for (var i = 0; i 10; 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(jimgr.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') ? 'ifont color="'+acolor+'"('+pcm+' '+text+')/font/i' : '';



if (i==0) {
var trtd = 'a href="'+posturl+'"img width="75" height="42" class="alignleft" src="'+img[i]+'"//ah2 class="spostTitle"a href="'+posturl+'"'+posttitle+'/a/h2p'+removeHtmlTag(postcontent,summaryPost)+'.../p/div';
document.write(trtd);
}
if ((i0)&&(inumposts)) {
var trtd = 'a href="'+posturl+'" class="list"'+posttitle+'/a';
document.write(trtd);
}
j++;
}
document.write(' /div');

}

function showrecentposts4(json) {
j = (showRandomImg) ? Math.floor((imgr.length+1)*Math.random()) : 0;
img = new Array();
if (numposts5 = json.feed.entry.length) {
maxpost = numposts5;
}
else
{
maxpost=json.feed.entry.length;
}

for (var i = 0; i maxpost; 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(jimgr.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') ? 'ifont color="'+acolor+'"('+pcm+' '+text+')/font/i' : '';


if (i==0) {
var trtd = 'div class="bottomBox_wide left"div class="thumb"a href="'+posturl+'"img width="300" height="225" class="alignone" src="'+img[i]+'"//a/divdiv class="featuredPost lastPost"h2 class="postTitle"a href="'+posturl+'"'+posttitle+'/a/h2 p'+removeHtmlTag(postcontent,summaryPost)+'.../pdiv class="clear"/div/div/divdiv class="bottomBox_narrow right"';
document.write(trtd);
}
if ((i0)&&(imaxpost)) {
var trtd = 'div class="featuredPost"h2 class="postTitle"a href="'+posturl+'"'+posttitle+'/a/h2a href="'+posturl+'"img class="alignright" height="55" src="'+img[i]+'" width="55"//ap'+removeHtmlTag(postcontent,summaryPost)+'.../pdiv class="clear"/div/div';
document.write(trtd);
}
j++;
}
document.write('/div');
}

function showrecentposts4a(json) {
j = (showRandomImg) ? Math.floor((imgr.length+1)*Math.random()) : 0;
img = new Array();
if (numposts5 = json.feed.entry.length) {
maxpost = numposts5;
}
else
{
maxpost=json.feed.entry.length;
}

for (var i = 0; i maxpost; 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(jimgr.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') ? 'ifont color="'+acolor+'"('+pcm+' '+text+')/font/i' : '';


if (i==0) {
var trtd = 'div class="bottomBox_wide right"div class="thumb"a href="'+posturl+'"img width="300" height="225" class="alignone" src="'+img[i]+'"//a/divdiv class="featuredPost lastPost"h2 class="postTitle"a href="'+posturl+'"'+posttitle+'/a/h2p'+removeHtmlTag(postcontent,summaryPost)+'.../pdiv class="clear"/div/div/divdiv class="bottomBox_narrow left"';
document.write(trtd);
}
if ((i0)&&(imaxpost)) {
var trtd = 'div class="featuredPost"h2 class="postTitle"a href="'+posturl+'"'+posttitle+'/a/h2a href="'+posturl+'"img class="alignright" height="55" src="'+img[i]+'" width="55"//ap'+removeHtmlTag(postcontent,summaryPost)+'.../pdiv class="clear"/div/div';
document.write(trtd);
}
j++;
}
document.write('/div');
}


function showrecentposts5(json) {
j = (showRandomImg) ? Math.floor((imgr.length+1)*Math.random()) : 0;
img = new Array();

for (var i = 0; i numposts5; 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(jimgr.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') ? 'ifont color="'+acolor+'"('+pcm+' '+text+')/font/i' : '';


var trtd = 'lidiv class="entry"a href="'+posturl+'"img width="80" height="85" class="alignleft" src="'+img[i]+'"//ah2 class="sidebarPostTitle"a href="'+posturl+'"'+posttitle+'/a/h2p'+removeHtmlTag(postcontent,summaryPost)+'.../p/div/li';
document.write(trtd);

j++;
}

}

function showrecentposts6(json) {
j = (showRandomImg) ? Math.floor((imgr.length+1)*Math.random()) : 0;
img = new Array();

for (var i = 0; i numposts6; 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(jimgr.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') ? 'ifont color="'+acolor+'"('+pcm+' '+text+')/font/i' : '';


var trtd = 'div class="text"h2 class="postTitle"a href="'+posturl+'"'+posttitle+'/a/h2p'+removeHtmlTag(postcontent,summaryPost)+'.../pdiv class="clear"/div /divdiv class="imgThumb"a href="'+posturl+'"img width="269" height="201" class="alignright" src="'+img[i]+'"//a/div';
document.write(trtd);

j++;
}

}

function showrecentposts7(json) {
j = (showRandomImg) ? Math.floor((imgr.length+1)*Math.random()) : 0;
img = new Array();
document.write('ul');
for (var i = 0; i numposts7; 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(jimgr.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') ? 'ifont color="'+acolor+'"('+pcm+' '+text+')/font/i' : '';



var trtd = 'li class="car"div class="thumb"a href="'+posturl+'"img width="150" height="113" class="alignnone" src="'+img[i]+'"//a /divdiv class="info"p'+posttitle+'/pp class="morePhoto"a href="'+posturl+'"Leer más/a/p/div/li ';
document.write(trtd);

j++;
}
document.write('/ul');
}

function showrecentposts8(json) {
j = (showRandomImg) ? Math.floor((imgr.length+1)*Math.random()) : 0;
img = new Array();

for (var i = 0; i numposts8 ; 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(jimgr.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') ? 'ifont color="'+acolor+'"('+pcm+' '+text+')/font/i' : '';


var trtd = 'div class="contentdiv"div class="sliderPostPhoto"a href="'+posturl+'"img width="100%" height="341" class="alignnone" src="'+img[i]+'"//adiv class="sliderPostInfo"h2 class="featuredTitle"a href="'+posturl+'"'+posttitle+'/a/h2/div/divdiv class="featuredPost lastPost"p'+removeHtmlTag(postcontent,summaryPost)+'.../p/div/div';
document.write(trtd);

j++;
}

}

//
/script

script type='text/javascript'
var classicMode = false ;
var summary = 30;
var indent = 3;

function stripHtmlTags(s,max){return s.replace(/<.*?>/ig, '').split(/\s+/).slice(0,max-1).join(' ')}

function getSummaryLikeWP(id) {
return document.getElementById(id).innerHTML.split(/<!--\s*more\s*-->/)[0];
}

function getSummaryImproved(post,max){
var re = /<.*?>/gi
var re2 = /<br.*?>/gi
var re3 = /(<\/{1}p>)|(<\/{1}div>)/gi
var re4 = /(<style.*?\/{1}style>)|(<script.*?\/{1}script>)|(<table.*?\/{1}table>)|(<form.*?\/{1}form>)|(<code.*?\/{1}code>)|(<pre.*?\/{1}pre>)/gi

post = post.replace(re4,'')
post = post.replace(re3,'<br /> ').split(re2)

for(var i=0; i<post.length; i++){
post[i] = post[i].replace(re,'');
}
var post2 = new Array();
for(var i in post) {
//if(post[i]!='' && post[i]!=' ' && post[i] != '\n') post2.push(post[i]);
if(/[a-zA-Z0-9]/.test(post[i])) post2.push(post[i]) ;

}


var s = "";
var indentBlank = "";
for(var i=0;i<indent;i++){
indentBlank += " ";
}
if(post2.join('<br/>').split(' ').length < max-1 ){
s = post2.join(indentBlank +' <br/>');
} else {
var i = 0;
while(s.split(' ').length < max){
s += indentBlank + ' ' + post2[i]+'<br/>';
i++;
}
}
return s;
}


function createSummaryAndThumb(pID,title,url,date,comment){
var posturl= url;
var title=title;
var date =date;
var comment = comment;
var div = document.getElementById(pID);
var content = div.innerHTML;
if (/<!--\s*more\s*-->/.test(content)) {
div.innerHTML = getSummaryLikeWP(pID);
div.style.display = "block";
}
else {

var imgtag = "";
var img = div.getElementsByTagName("img");
var summ = summary;
if(img.length>=1) {
imgtag = '<a href="'+posturl+'"><img width="90" height="65" class="alignleft" src="'+img[0].src+'"></a>';
}
var summary1 = imgtag+'<p>'+stripHtmlTags(content,summary)+'...</p>';

div.innerHTML = summary1;
div.style.display = "block";
}
}
/script

Por último, SIN expandir los artilugios busca esta línea:
b:widget id='Blog1' locked='true' title='Entradas del blog' type='Blog'/

Justo arriba de ella agrega esto:

b:widget id='HTML88' locked='false' title='Slider' type='HTML'
b:includable id='main'
div id='featuredContent' div id='paginate-featured-slider'
a class='prev' href='#prev'Anterior/a
a class='toc' href='#1' rel='1'1/a
a class='toc' href='#2' rel='2'2/a
a class='toc' href='#3' rel='3'3/a
a class='toc' href='#4' rel='4'4/a
a class='toc' href='#5' rel='5'5/a
a class='toc' href='#6' rel='6'6/a
a class='toc' href='#7' rel='7'7/a
a class='toc' href='#8' rel='8'8/a
a class='toc' href='#9' rel='9'9/a
a class='toc' href='#10' rel='10'10/a
a class='next' href='#next'Siguiente/a
/div
div class='sliderwrapper' id='featured-slider'
script
document.write("<script src=\"http://www.nombre-de-mi-blog.blogspot.com/feeds/posts/default?max-results="+numposts10+"&orderby=published&alt=json-in-script&callback=showrecentposts8\"><\/script>");
/script
/div
script type='text/javascript'
featuredcontentslider.init({
id: "featured-slider", contentsource: ["inline", ""],
toc: "#increment",
nextprev: ["« Anterior","Siguiente »"],
revealtype: "click",
enablefade: [true, 0.4],
autorotate: [true, 5000],
onChange: function(previndex, curindex){ }
})
/script
/div
/b:includable
/b:widget
Agrega el nombre de tu blog donde se indica y listo.
El slider estará arriba de tus entradas, aunque una vez puesto puedes arrastrar el gadget al lugar que quieras desde la sección de Diseño.

Aunque el ancho del slider se puede modificar, lo ideal sería dejarlo tal como está, pues hacerlo más ancho implicaría agregar más pestañas y eso podría hacer más lenta la carga del blog, ya que como pueden ver el script es bastante largo.

Las imágenes cambian solas, pero si el usuario navega através de las pestañas entonces el slider se detendrá para que el lector pueda ver el contenido tranquilamente.

Cuando una entrada no tenga imagen mostrará una imagen por defecto, para cambiarla por alguna otra de tu preferencia, busca en el script esta URL y cámbiala por la de tu imagen:
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg25uGB2CHzJuN7vT1E1CwKYugvYRaMffgD0XE14mbin97lvLTVZ8RQo2dAnYN8IpW4HFEsreKuvuPMNQJGt5s8BRAizeaqEWDJGPIKNiTu7pVL5HGA2_azvihXni81DjLTdV_eQ5p5QpU/s0/sin-imagen.png

En caso de que el texto del resumen se llegara a exceder podemos modificar el número de caracteres a mostrar:
summaryPost = 220;
Se encuentra dentro del script, y con un valor más bajo mostrará menos caracteres en el resumen de las entradas.

Si usas las entradas con el script delLeer más automático, entonces pon el script de este sliderantes del script del Leer más, para que las miniaturas de tus entradas no se vean afectadas.

La ventaja de este slider es que una vez puesto recogerá los datos de las10 últimas entradas de forma automática, así que ya no tendremos que hacer nada más excepto disfrutarlo.

MESOTHELIOMA LAW FIRMDONATE CAR TO CHARITY CALIFORNIAHARDDRIVE DATA RECOVERY SERVICESDONATE A CAR IN MARYLAND DONATING A CAR IN MARYLAND,DONATE CARS ILLINOIS,CRIMINAL DEFENSE ATTORNEYS FLORIDA ,BEST CRIMINAL LAWYER IN ARIZONASTRUCTURED ANNUITY SETTLEMENT,ASBESTOS LAWYERS,NUNAVUT CULTURE,DAYTON FREIGHT LINES ,Bextra Bankruptcy Dental Plan Private JetMundial Football Perros,FIFA World Cup Peinados caninos,Veterinarios caninos,MESOTHELIOMA LAW FIRM,MESOTHELIOMA LAW FIRM,DONATE CAR TO CHARITY CALIFORNIA ,DONATE CAR FOR TAX CREDIT,DONATE CARS IN MA,DONATE YOUR CAR SACRAMENTO,HOW TO DONATE A CAR IN CALIFORNIA,SELL ANNUITY PAYMENT,DONATE YOUR CAR FOR KIDS,ASBESTOS LAWYERS,DONATE YOUR CAR FOR KIDS ,Selling annuity payments for cashSelling annuity payments for cash,Sell my structured settlement,Sell structured settlement,Structured settlement,Structured settlement companies,Sell my annuity payments lump sum,Car accident lawyer Denver,Accident injury attorneys,Sell my annuity

MESOTHELIOMA LAW FIRMDONATE CAR TO CHARITY CALIFORNIAHARDDRIVE DATA RECOVERY SERVICESDONATE A CAR IN MARYLAND DONATING A CAR IN MARYLAND,DONATE CARS ILLINOIS,CRIMINAL DEFENSE ATTORNEYS FLORIDA ,BEST CRIMINAL LAWYER IN ARIZONASTRUCTURED ANNUITY SETTLEMENT,ASBESTOS LAWYERS,NUNAVUT CULTURE,DAYTON FREIGHT LINES ,Bextra Bankruptcy Dental Plan Private JetPero tuve que ser Mundial Football consolidating FIFA World Cup web host rating,register web address,online psychology degree,her first lesbian sex, make extra money ,make money fast and easy,addwords y mejor obtuve un credit application,visa gift carda,Mesothelioma law firm,voip phone service,Selling annuity payments for cash,Sell my structured settlement,Sell structured settlement,Structured settlement,Structured settlement companies,Sell my annuity payments lump sum,Car accident lawyer Denver,Accident injury attorneys,Sell my annuity

structured settlement annuity companies personal injury lawyer sarasota fl Donate cars Illinois Dayton Freight Lines mesothelioma settlements amounts Dwi lawyer Php programmers Proud Italian cook Donate Old Cars to Charity Photo Christmas cards Hire php programmers Sell Annuity Payment structured settlement quote Cheap domain registration hosting New social media platforms Online casino Computer science classes online Online College Course Casino DUI lawyer selling my structured settlement WordPress theme designers CAR DONATE motorcycle accident attorney chicago Bankruptcy lawyer Paperport promotional code refinance with bad credit structured settlement buyer boca raton personal injury attorney Mobile casino california law lemon Make money online Australia yahoo web hosting Hire php developers MET AUTO Dallas mesothelioma attorneys Casino reviews Low Credit Line Credit Cards Live casino HOW TO DONATE A CAR IN CALIFORNIA Adobe illustrator classes Seo companies mesothelioma law suits Seo company Custom WordPress theme designer onlineclasses Dayton freight lines Auto Mobile Shipping Quote Car Accident Lawyers mesothelioma care Donate your car Sacramento saskatchewan auto insurance auto accident attorney Torrance fast cash for house Best social media platforms compare life assurance best mesothelioma lawyers Donate Cars in MA cell cycle regulation ppt motorcycle accident lawyer san diego Service business software DONATE YOUR CAR FOR KIDS Criminal lawyer DONATE YOUR CAR FOR MONEY Psd to WordPress motorcycle accident attorney sacramento Php programmers for hire Business management software mesotheolima injury lawyers Criminal defense lawyer NEUSON most profitable internet business Hire php developer alabama mesothelioma lawyer DAYTON FREIGHT LINES Life Insurance Co Lincoln DONATING USED CARS TO CHARITY canada personals yahoo car insurance quotes Car Insurance in South Dakota Personal Injury Law Firm MESOTHELIOMA LAW FIRM Donate Car To Charity CALIFORNIA home phone internet bundle Best social media platforms for business personal injury attorney ocala fl PHD on Counseling Education houston tx auto insurance DONATE CARS IN MA business administration masters accident attorney orange county Psd to html google adsense Online Christmas cards accident attorney in los angeles pharmacist jobs in chicago Hard drive Data Recovery Services Gas/Electricity Business finance group Donate your Car for Money att call conference Car Insurance Quotes Colorado average mesothelioma settlement Social media platforms for business Seo services Best Seo company life insurance co lincoln Psychic for Free refinance with poor credit donate your car for money illinois law lemon bowne virtual data room sell structured settlement calculator Best criminal lawyer in Arizona

Share: