11 Eylül 2013 Çarşamba

18.09.2013:



                              STOP() METODU


STOP():Hareket  halindeki nesneleri durdurmaya yardımcı olur.


örnek:
 

 
<!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=iso-8859-1" />
</script>
<script>
$(document).ready(function(){
$("#basla").click(function(){
    $("div").animate({height:300},3000);
    $("div").animate({width:300},3000);
  });
  $("#dur").click(function(){
    $("div").stop();
  });
});
</script>
<title>stop ödev</title>
</head>
<body>
<p>
<button id="basla">basla</button>
<button id="dur">dur</button>
</p>
<div style="background:#98bf21;height:100px;width:100px">
</body>
</html>

Hiç yorum yok:

Yorum Gönder