Slide de postagens recentes

Views:
Código JQuery:

<!-- jQuery começo-->
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js' type='text/javascript'/>
 <script src='https://dl.dropboxusercontent.com/u/32613589/slidebyelainegaspareto.js' type='text/javascript'/>
 <script type='text/javascript'>
 $(window).load(function() {
 $(&#39;#slider&#39;).nivoSlider();
 });
 </script>
<!-- jQuery fim-->



Código CSS:

*-----Começo do código CSS ----------------------------------------*/
.theme-default .nivoSlider {
position:relative;
background:#fff url(https://assets2.datemyschool.com/img/ajax-loader.gif) no-repeat 50% 50%; /* cor de fundo do slide*/-webkit-box-shadow: 0px 1px 5px 0px #4a4a4a;
-moz-box-shadow: 0px 1px 5px 0px #4a4a4a;
box-shadow: 0px 1px 5px 0px #4a4a4a;
}
.theme-default .nivoSlider img {
position:absolute;top:0px;left:0px;display:none;
}
.theme-default .nivoSlider a {
border:0;display:block;
}
.theme-default .nivo-controlNav {
position:absolute;left:50%;bottom:-42px;
margin-left:-70px; /* posicionamento das setas*/}
.theme-default .nivo-controlNav a {
display:block;width:22px;height:22px;
background:url(https://4.bp.blogspot.com/-tF-omlKqcnY/VuhROBcNbPI/AAAAAAABONs/NFwiLT_KFyADkdqMqU1ZG6osbBbuWvTnw/s1600/bullets.png) no-repeat;
text-indent:-9999px;border:0;margin-right:3px;float:left;
}
.theme-default .nivo-controlNav a.active {
background-position:0 -22px;
}
.theme-default .nivo-directionNav a {
display:block;width:30px;height:30px;
background:url(https://2.bp.blogspot.com/-33KXpp2mm8Y/VuhRyJO1cUI/AAAAAAABONw/G9dNfdhq3X4xuYgJ7gCO4VBKzuG8i_7gw/s1600/arrows.png) no-repeat;
text-indent:-9999px;border:0;
}
.theme-default a.nivo-nextNav {
background-position:-30px 0;right:15px;
}
.theme-default a.nivo-prevNav {
left:15px;
}
.theme-default .nivo-caption {
font-family: Helvetica, Arial, sans-serif;
font-weight: bold;
}
.theme-default .nivo-caption a {
color:#fff; /* cor da fonte da numeração*/
border-bottom:1px dotted #fff; /* cor e tipo de borda*/}
.theme-default .nivo-caption a:hover {
color:#fff; /* cor da fonte em estado hover*/}
/*----- END Default Theme ----------------------------------------*/
/* The Nivo Slider styles */
.nivoSlider {
position:relative;
}
.nivoSlider img {
position:absolute;top:0px;left:0px;
}
/* If an image is wrapped in a link */
.nivoSlider a.nivo-imageLink {
position:absolute;top:0px;left:0px;width:100%;height:100%;border:0;
padding:0;margin:0;z-index:6;display:none;
}
/* The slices and boxes in the Slider */
.nivo-slice {
display:block;
position:absolute;
z-index:5;
height:100%;
}
.nivo-box {
display:block;
position:absolute;
z-index:5;
}
/* Caption styles */
.nivo-caption {
position:absolute;
left:0px;
bottom:0px;
background:#000; /* cor de fundo do texto*/color:#fff; /* cor da fonte do texto*/opacity:0.8; /* Overridden by captionOpacity setting */
width:100%;
z-index:8;
}
.nivo-caption p {
padding:5px;
margin:0;
}
.nivo-caption a {
display:inline !important;
}
.nivo-html-caption {
display:none;
}
/* Direction nav styles (e.g. Next & Prev) */
.nivo-directionNav a {
position:absolute;
top:45%;
z-index:9;
cursor:pointer;
}
.nivo-prevNav {
left:0px;
}
.nivo-nextNav {
right:0px;
}
/* Control nav styles (e.g. 1,2,3...) */
.nivo-controlNav a {
position:relative;
z-index:9;
cursor:pointer;
}
.nivo-controlNav a.active {
font-weight:bold;
}
.theme-default #slider {
margin:20px auto 50px auto;
width:700px; /* Defina aqui a largura do slide*/
height:300px; /* Defina aqui a altura do slide*/}
.theme-pascal.slider-wrapper,
.theme-orman.slider-wrapper {
margin-top:20px; /* defina aqui o posicionamento do slide em relação ao topo*/ }
.clear {
clear:both;
}
/* Final do código CSS



Código HTML:

<div class="slider-wrapper theme-default">
<div class="ribbon"></div>
 <script style="text/javascript" src="https://dl.dropboxusercontent.com/u/32613589/codigohtmlslidebyelaine.js"></script>
<script style="text/javascript">
 var numposts_gal = 6;   //NÚMERO DE POSTS
 var image_height = 300; //ALTURA DA IMAGEM
 var image_width = 700;  //LARGURA DA IMAGEM
</script>
<script src="ENDEREÇO COMPLETO DO BLOG/feeds/posts/default?orderby=published&alt=json-in-script&callback=showgalleryposts"></script>
</div>



Home Sobre mim Tutoriais Loja de templates Portfólio Fanpage