Yedinci jQuery dersimizde aşağıdakileri öğrendik;
– jQuery hover Metodu
– jQuery size – length Metodu
– jQuery fade Metodları
* fadeOut
* fadeIn
* fadeTo
* fadeToggle
Hover Metodunun Kullanımı
$("div.hover").hover(function(){
$("div.diger").hide();
}, function(){
$("div.diger").show();
});
Size Metodu Kullanımı
var toplamLi = $("ul li").size();
alert(toplamLi);
fadeOut Metodunun Kullanımı
$("button.b1").click(function() {
$("div.div1").fadeOut(1000);
});
fadeIn Metodunun Kullanımı
$("button.b2").click(function() {
$("div.div2").fadeIn();
});
fadeToggle Metodunun Kullanımı
$("button.b3").click(function() {
$("div.div3").fadeToggle();
});
fadeToggle Metodunun Kullanımı
$("button.b4").click(function() {
$("div.div4").fadeTo(2000, 0.3);
});