Forum'da ara:
Ara


Yazar Mesaj
Mesaj14.09.2012, 01:53 (UTC)    
Mesaj konusu: jQuery Animasyon

Arkadaşlar ben videolu bir ders sayesinde jquery animasyon yapmayı öğrendim. Animasyonu yapıyorum. İşlev gerçekleşiyor. Buraya kadar hey şey normal. Ama mouse yi geri çektiğimde eleman eski haline dönmüyor. Eski haline dönmesini nasıl sağlayabilirim?

Animasyon denemesi:
Kod:
<!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" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jQuery Animasyon</title>
<script type="text/javascript" src="jquery-1.7.2.min.js"></script>

<script type="text/javascript">
$("document").hover(function(){
$("#logo").hover(function() {
$("#logo").animate({
opacity: "0.5"
},4000);
});
});
$("document").mousedown(function(){
   $("#logo").mousedown(function(){
      $("#logo").animate({
         opacity: "1.0"
      });
   });
});
</script>

</head>
<style type="text/css">
#logo {
   border: 2px;
   width: 200px;
   height: 150px;
   position: relative;
}
</style>
<body>
<img src="Envo Grafik/Logo.png" id="logo" />
</body>
</html>
Mesaj14.09.2012, 03:34 (UTC)    
Mesaj konusu:

BVak burada mousedown fonksiyonunu çağırmışsın.Doğrusu muhtemleen onshow olacak.

Alıntı:
$("document").mousedown(function(){
$("#logo").mousedown(function(){

______________
Forum'da yetkiniz olmadığından dolayı imzanızı değiştirmek durumdayım.
Mesaj14.09.2012, 12:29 (UTC)    
Mesaj konusu:

Denedim, olmadı.
Önceki mesajları göster:   


Powered by phpBB © 2001, 2005 phpBB Group
Türkçe Çeviri: phpBB Türkiye & Erdem Çorapçıoğlu