Slider jquery 100% de largeur
widi70
Messages postés
679
Statut
Membre
-
chauvsouris -
chauvsouris -
Bonjour, j'aimerais ajouter ce slider sur mon site :
http://cssglobe.com/post/5780/easy-slider-17-numeric-navigation-jquery-slider
Le seul problème est que je n'arrive pas à faire pour que ce slider soit aussi large que l'ecran...
Voici mon code, malheureusement l'image ne s'affiche plus....
html :
CSS
Merci de votre aide
http://cssglobe.com/post/5780/easy-slider-17-numeric-navigation-jquery-slider
Le seul problème est que je n'arrive pas à faire pour que ce slider soit aussi large que l'ecran...
Voici mon code, malheureusement l'image ne s'affiche plus....
html :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Easy Slider jQuery Plugin Demo</title>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/easySlider1.7.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#slider").easySlider({
auto: true,
continuous: true,
numeric: true
});
});
</script>
<link href="css/screen.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<div id="container">
<div id="content">
<div id="slider">
<ul>
<li><a href="https://sedo.com/search/details/?domain=templatica.com&tracked=&partnerid=30882&origin=partner"><img src="images/01.jpg" alt="Css Template Preview" /></a></li>
<li><a href="https://sedo.com/search/details/?domain=templatica.com&tracked=&partnerid=30882&origin=partner"><img src="images/02.jpg" alt="Css Template Preview" /></a></li>
<li><a href="https://sedo.com/search/details/?domain=templatica.com&tracked=&partnerid=30882&origin=partner"><img src="images/03.jpg" alt="Css Template Preview" /></a></li>
<li><a href="https://sedo.com/search/details/?domain=templatica.com&tracked=&partnerid=30882&origin=partner"><img src="images/04.jpg" alt="Css Template Preview" /></a></li>
<li><a href="https://sedo.com/search/details/?domain=templatica.com&tracked=&partnerid=30882&origin=partner"><img src="images/05.jpg" alt="Css Template Preview" /></a></li>
</ul>
</div>
</div>
</div>
</body>
</html>
CSS
/* image replacement */
.graphic, #prevBtn, #nextBtn, #slider1prev, #slider1next{
margin:0;
padding:0;
display:block;
overflow:hidden;
text-indent:-8000px;
}
/* // image replacement */
#container{
margin:0 auto;
position:relative;
text-align:left;
width:90%;
background:#fff;
margin-bottom:2em;
}
#content{
position:relative;
}
/* Easy Slider */
#slider ul, #slider li,
#slider2 ul, #slider2 li{
margin:0;
padding:0;
list-style:none;
}
#slider2{margin-top:1em;}
#slider li, #slider2 li{
/*
define width and height of list item (slide)
entire slider area will adjust according to the parameters provided here
*/
width:100%;
overflow:hidden;
}
#prevBtn, #nextBtn,
#slider1next, #slider1prev{
display:block;
width:30px;
height:77px;
position:absolute;
left:-30px;
top:71px;
z-index:1000;
}
#nextBtn, #slider1next{
left:696px;
}
#prevBtn a, #nextBtn a,
#slider1next a, #slider1prev a{
display:block;
position:relative;
width:30px;
height:77px;
background:url(../images/btn_prev.gif) no-repeat 0 0;
}
#nextBtn a, #slider1next a{
background:url(../images/btn_next.gif) no-repeat 0 0;
}
/* numeric controls */
ol#controls{
margin:1em 0;
padding:0;
height:28px;
}
ol#controls li{
margin:0 10px 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 #ccc;
background:#DAF3F8;
color:#555;
padding:0 10px;
text-decoration:none;
}
ol#controls li.current a{
background:#5DC9E1;
color:#fff;
}
ol#controls li a:focus, #prevBtn a:focus, #nextBtn a:focus{outline:none;}
/* // Easy Slider */
Merci de votre aide
A voir également:
- Slider jquery 100% de largeur
- 100 mo en go - Forum Mobile
- Code 100 details manifest incompatible - Forum TV & Vidéo
- Formate pour taxer client 100€ - Forum PDF
- 100 mb en mo ✓ - Forum Matériel & Système
- Question 1 Mb = ?Mo - Forum Matériel & Système