SORU
18 Kasım 2011, Cuma


Fare tekerleği jQuery olayları mı?

Bir şekilde bir WordPress kullanmak fare tekerleği olayları (scroll olaylar bahsetmiyorum) var mı?

CEVAP
19 Mart 2014, ÇARŞAMBA


Her ikisi de mousewheel DOMMouseScroll bağlama benim için gerçekten çok iyi çalışma sona erdi:

$(window).bind('mousewheel DOMMouseScroll', function(event){
    if (event.originalEvent.wheelDelta > 0 || event.originalEvent.detail < 0) {
        // scroll up
    }
    else {
        // scroll down
    }
});

Bu yöntem, Internet Explorer 9 , Chrome 33, Firefox 27'de çalışıyor.

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Nickcidious

    Nickcidious

    6 HAZİRAN 2011
  • REK Roth Productions

    REK Roth Pro

    8 Ocak 2011
  • Sergio Fernandez

    Sergio Ferna

    1 EKİM 2009