2
I’ve been trying to get this slide to work for a long time, but it doesn’t work at all, I wanted help from you.
My Html code:
.slideshow{
width:100%;
max-width:980px;
overflow:hidden;
height:505px;
margin:0 auto;
}
.slides{
width:100%;
height:auto;
display:block;
}
.slide-1{
width:80%;
height:505px;
float:left;
}
.slide-2{
width:20%;
height:250px;
float:left;
}
.slide-3{
width:20%;
height:250px;
float:left;
}
.slide-1 img{
width:635px;
height:500px;
}
.slide-2 img{
width:345px;
height:250px;
margin-left:-150px;
}
.slide-3 img{
width:345px;
height:250px;
margin-left:-150px;
}
#btn-slide{
margin-top:-320px;
}
#btn-next{
float:right;
position:relative;
left:-94px;
}
#btn-prev{
float:left;
position:relative;
left:90px;
margin-top:-4px;
}
/*-----------Fim da Config. do slideshow------------*/
.info-slide-left{
font-family:Arial,Trebuchet MS, sans-serif;
font-size:1.563em;
width:650px;
margin-top:-180px;
margin-left:10px;
line-height:1.68em;
}
.info-slide-left a{
text-decoration:none;
color:#000;
}
.info-slide-left a:hover{
text-decoration:underline;
}
.info-slide-rigth{
font-family:Arial,Trebuchet MS, sans-serif;
font-size:13px;
width:400px;
margin-top:-100px;
margin-left:-140px;
line-height:22px;
}
.info-slide-rigth a{
text-decoration:none;
color:#000;
}
.info-slide-rigth a:hover{
text-decoration:underline;
}
.info-slide-right-3{
font-family:Arial,Trebuchet MS, sans-serif;
font-size:13px;
width:400px;
margin-top:-100px;
margin-left:-140px;
line-height:22px;
}
.info-slide-right-3 a{
text-decoration:none;
color:#000;
}
.info-slide-right-3 a:hover{
text-decoration:underline;
}
.seta-direita:before {
content: "";
display: inline-block;
vertical-align: middle;
margin-right: 10px;
width: 0;
height: 0;
margin-top:-920px;
border-top: 12px solid transparent;
border-bottom: 12px solid transparent;
border-left: 12px solid #FF7F00;
}
.seta-direita p{
z-index:99;
margin-left:14px;
font-family:Arial,Trebuchet MS, sans-serif;
font-size:14px;
font-weight:bold;
margin-top:-500px;
}
.seta-direita-2:before {
content: "";
display: inline-block;
vertical-align: middle;
margin-right: 10px;
width: 0;
height: 0;
position:relative;
top:-208px;
border-top: 12px solid transparent;
border-bottom: 12px solid transparent;
border-left: 12px solid #FF7F00;
}
.seta-direita-2 p{
z-index:99;
margin-left:14px;
font-family:Arial,Trebuchet MS, sans-serif;
font-size:14px;
font-weight:bold;
position:relative;
top:-246px;
}
.seta-direita-3:before {
content: "";
display: inline-block;
vertical-align: middle;
margin-right: 10px;
width: 0;
height: 0;
position:relative;
top:-208px;
border-top: 12px solid transparent;
border-bottom: 12px solid transparent;
border-left: 12px solid #FF7F00;
}
.seta-direita-3 p{
z-index:99;
margin-left:14px;
font-family:Arial,Trebuchet MS, sans-serif;
font-size:14px;
font-weight:bold;
position:relative;
top:-246px;
}
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="http://malsup.github.com/jquery.cycle2.js"></script>
<div class="slideshow">
<div class="slides">
<div class="slide-1">
<a href="#"><img src="img/01.jpg"></a>
<div class="info-slide-left">
<a href="#"><h2>Lorem Ipsum é simplesmente uma simulação de texto da indústria.</h2></a>
<div class="seta-direita">
<p>Categoria #1</p>
</div>
</div>
</div>
<div class="slide-2">
<a href="#"><img src="img/img02.jpg"><a/>
<div class="info-slide-rigth">
<a href="#"><h2>Lorem Ipsum é simplesmente uma simulação de texto da indústria.</h2></a>
<div class="seta-direita-2">
<p>Categoria #1</p>
</div>
</div>
</div>
<div class="slide-3">
<a href="#"><img src="img/img02.jpg"></a>
<div class="info-slide-right-3">
<a href="#"><h2>Lorem Ipsum é simplesmente uma simulação de texto da indústria.</h2></a>
<div class="seta-direita-3">
<p>Categoria #1</p>
</div>
</div>
</div>
</div>
<div class="slide"><!--Grupo 2 de slide-->
<div class="slide-1">
<a href="#"><img src="img/01.jpg"></a>
<div class="info-slide-left">
<a href="#"><h2>Lorem Ipsum é simplesmente uma simulação de texto da indústria.</h2></a>
<div class="seta-direita">
<p>Categoria #1</p>
</div>
</div>
</div>
<div class="slide-2">
<a href="#"><img src="img/img02.jpg"><a/>
<div class="info-slide-rigth">
<a href="#"><h2>Lorem Ipsum é simplesmente uma simulação de texto da indústria.</h2></a>
<div class="seta-direita-2">
<p>Categoria #1</p>
</div>
</div>
</div>
<div class="slide-3">
<a href="#"><img src="img/img02.jpg"></a>
<div class="info-slide-right-3">
<a href="#"><h2>Lorem Ipsum é simplesmente uma simulação de texto da indústria.</h2></a>
<div class="seta-direita-3">
<p>Categoria #1</p>
</div>
</div>
</div>
</div>
</div><!--Fim do 2 Slide-->
</div><!--Fim da div slideshow-->
<!-- begin snippet: js hide: false -->
Javascript code:
$(document).ready(function() {
$('.slideshow').cycle({
speed: 600,
manualSpeed: 100
});
});
@Marconi jquery Cycle 2
– Gilmar Santos
It is very simple to implement, see if this is what you want http://jsfiddle.net/buh159/BvgU3/15/ if it is put in the answer explaining the code
– Brunno
@Brunno I’ll put the photo of the designer of my slide
– Gilmar Santos
OK the implementation is simpler than I posted, the javascript is great because of the menu below, if remove the menu is light ;)
– Brunno
@Brunno post as answer.
– Marconi
@Brunno there this the designe of my slide
– Gilmar Santos
@Brunno I didn’t understand what you meant ?
– Gilmar Santos
@Gilmarsantos, this implementation I made, was in an html of mine, when I get home I make the slide work in your html that you posted to top :D
– Brunno
@Brunno If you do it by, I’ll be very grateful !
– Gilmar Santos
@Gilmarsantos as promised, follow the implementation fiddle on top of your html http://jsfiddle.net/buh159/BvgU3/17/ your version of jquery is ok don’t worry about it. And I didn’t touch the css, maybe some image overwrites something, but it’s all css detail. D anything I’m available
– Brunno
@Brunno just have to thank you, you helped me a lot. Thank you very much.
– Gilmar Santos
I’ve been trying to create a website for a long time and now you’ve put my work forward !!
– Gilmar Santos