
















1
| $( 'img' ).attr( 'title' , 'okyanus' ); |
1
| < img src = "resim.png" alt = "" title = "Gökyüzü" /> |
1
| $( 'img' ).attr( 'alt' , '' ); |
1
| $( 'a' ).css( 'text-decoration' , 'none' ); |
1
2
3
4
5
6
| $( 'a' ).css({ 'text-decoration' : 'none' , 'color' : 'red' }); |
1
| $( 'p' ).toggleClass( 'yazi' ); |
1
2
3
4
| < div class = "cerceve" > < h1 >jQuery .append()</ h1 > < p class = "metin" >Soru : jQuery append</ p > </ div > <!-- cerceve DIV Kapanış --> |
1
2
3
4
5
6
7
| $(document).ready( function (){ $( 'div.cerceve h1' ).append( ' ~ aycan.net' ); $( 'div.cerceve p' ).append( '<b>nedir? <br> Cevap : Ne bileyim ben arkadaş!</b>' ); $( 'div.cerceve' ).append( '<h1><a href="http://www.aycan.net/"><img src="http://www.aycan.net/wp-content/themes/headlines/images/logo.png" alt="aycan logo"/></a>' ); }); |
1
| $(document).ready( function (){ .. } |
1
| $( 'div.cerceve h1' ).append( ' ~ aycan.net' ); |
1
| $( 'div.cerceve p' ).append( '<b>nedir? <br> Cevap : Ne bileyim ben arkadaş!</b>' ); |
1
| $( 'div.cerceve' ).append( '<h1><a href="http://www.aycan.net/"><img src="http://www.aycan.net/wp-content/themes/headlines/images/logo.png" alt="aycan logo"/></a>' ); |
1
| $( '<htmlTagi>Eklenecek icerik</htmlTagi>' ).appendTo( 'eklenecek nesne ' ) |
1
2
3
4
| < div class = "cerceve" > < h1 >jQuery .appendTo()'da değişik birşey </ h1 > < p class = "metin" >Hınk ?</ p > </ div > <!-- cerceve DIV Kapanış --> |
1
2
3
4
5
6
7
| $(document).ready( function (){ $( '<b> var!</b>' ).appendTo( 'div.cerceve h1' ); $( '<p>Farketmedin mi ?</p>' ).appendTo( 'div.cerceve' ); $( '<p>İşleyişi farklı</p>' ).appendTo( 'div.cerceve' ); }); |
1
| $( '<b> var!</b>' ).appendTo( 'div.cerceve h1' ); |
1
| $( '<p>Farketmedin mi ?</p>' ).appendTo( 'div.cerceve' ); |
$("a.gizle").click(function(){ $("div").hide("slow"); }); $("a.goster").click(function(){ $("div").show("fast"); }); $("a.gizleGoster").click(function(){ $("div").toggle(1000); });Örneği buradan inceleyebilirsiniz. Buradan da indirebilirsiniz.
$("a").click(function(){ $("div").toggle("slow", function(){ alert("Efekt İşlemi Başarılı !"); }); });
$("a.gizle").click(function(){ $("div").fadeOut("slow"); }); $("a.goster").click(function(){ $("div").fadeIn("fast"); }); $("a.gizleGoster").click(function(){ $("div").fadeToggle(1000); }); $("a.ayarla").click(function(){ $("div").fadeTo(300,0.3); });Sonuca buradan bakabilirsiniz, buradan da indirebilirsiniz.
$("a.slideUp").click(function(){ $("div").slideUp("slow"); }); $("a.slideDown").click(function(){ $("div").slideDown("fast"); }); $("a.slideToggle").click(function(){ $("div").slideToggle(1000); });Sonucu buradan inceleyebiirsiniz, buradan indirebilirsiniz.
$("div").animate({ left : "100px" },"slow"); // Sola gittik $("div").animate({ top : "100px" },"slow"); // Aşağı gittik $("div").animate({ padding : "50px" },"slow"); // Padding değerini arttırdıkSonuca buradan bakabilirsiniz, buradan indirebilirsiniz.
$("div").animate({ left : "100px", top : "100px", padding : "50px" },"slow");Bir başka özel efetk fonksiyonu olan delay fonksiyonu ile gerçekleştirmek istediğiniz animasyonların gecikmeli olarak gerçekleşmesini sağlayabiliyorsunuz.
$("div").delay(1000).animate({ left : "100px", top : "100px", padding : "50px" },"slow");Buradan inceleyebilir, buradan indirebilirsiniz.
$("a.animate").click(function(){ $("div").animate({ left : "500px", },3000); }); $("a.stop").click(function(){ $("div").stop(); });