WaterWheel Slider Yapımı- HTML - jQuery - Ders2
HTML Dosyamız İndex.html İÇERİĞİ:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>WaterWheel Slider Yapımı</title>
</head>
<body>
<div class="carousel">
<img src="images/1.jpg" id="item-1.jpg"/>
<img src="images/2.jpg" id="item-2.jpg"/>
<img src="images/3.jpg" id="item-3.jpg"/>
<img src="images/4.jpg" id="item-4.jpg"/>
<img src="images/5.jpg" id="item-5.jpg"/>
<img src="images/6.jpg" id="item-6.jpg"/>
<img src="images/7.jpg" id="item-7.jpg"/>
<img src="images/8.jpg" id="item-8.jpg"/>
<img src="images/9.jpg" id="item-9.jpg"/>
</div>
<a href="#" id="prev">Prev</a>
<a href="#" id="next">Next</a>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.waterwheelCarousel.js"></script>
<script type="text/javascript">
$(document).ready(function(){
var carousel = $(".carousel").waterwheelCarousel({
flankingItems: 3
});
$('#prev').bind('click',function(){
carousel.prev();
return false;
});
$('#next').bind('click',function(){
carousel.next();
return false;
});
});
</script>
</body>
</html>
dude where is the js file , please provide the js docs
YanıtlaSilscript type="text/javascript">
Sil$(document).ready(function(){
var carousel = $(".carousel").waterwheelCarousel({
flankingItems: 3
});
$('#prev').bind('click',function(){
carousel.prev();
return false;
});
$('#next').bind('click',function(){
carousel.next();
return false;
});
});
script>
This js code.
where is js?
YanıtlaSil