Quelqu'un sait-il d'un plugin jQuery qui peut faire quelque chose comme ceci: http://www.pronovias.com/Quelqu'un sait-il d'un plugin jQuery qui peut faire quelque chose comme ceci: http://www.pronovias.com/
Je veux dire quand je planez dessus tout en glissant des images. Je veux faire un zoom avant et un zoom arrière. si n'existe pas le plugin comme ceci, comment j'écris?
c'est ce que j'ai fait. peut-on remplacer avec le bon avec le support?
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script type="text/javascript" src="jquery-1.4.2.js"></script>
<script type="text/javascript">
$(function(){
setInterval(function(){
var currentPhoto=$('#photoShow .current');
var nextPhoto=currentPhoto.next('div').addClass('next');
if (nextPhoto.length==0)
nextPhoto=$('#photoShow div:first').addClass('next');
$('#photoShow .current').animate({'opacity':0},1000, function(){
nextPhoto.addClass('current');
nextPhoto.removeClass('next');
currentPhoto.css('opacity', 1)
currentPhoto.removeClass('current');
});
},2000);
$('#photoShow img').hover(
function(){
$(this).stop().animate({left:'-=4', width:'+=8', height:'+=8'});
},
function(){
$(this).stop().animate({left:'+=4', width:'-=8', height:'-=8'});
});
});
</script>
<style type="text/css">
<!--
*{margin:0; padding:0;}
img{ border:none;
cursor:pointer;}
#photoShow div{
position:relative;
visibility:hidden;
}
#photoShow img{
position:absolute;
z-index: 0;
}
#photoShow .current {
z-index: 2;
visibility:visible;
}
#photoShow .next {
z-index: 1;
visibility:visible;
}
-->
</style>
</head>
<body>
<div id="photoShow">
<div class="current"><img src="gelinlik1.jpg" /></div>
<div><img src="gelinlik2.jpg" /></div>
<div><img src="gelinlik3.jpg" /></div>
<div><img src="gelinlik4.jpg" /></div>
<a href="#" style="visibility:hidden;"></a>
</div>
</body>
</html>
Ce site utilise Flash. Il peut ne pas être possible de le faire dans jQuery d'une manière qui fonctionne sur tous les navigateurs que vous devez prendre en charge. –
Non, j'écris un code jQuery très étroitement, mais pas l'effet exact. – beratuslu