TRForumcu | ForumWebmaster / Web Dizayn Scriptler / Programlama DilleriPHP / ASP WeB SiSTeMLeRi SMF (Moderatör: Gondolin)Mousewheel Fare tekerliği ile resim büyültüp küçültme
Konu Bilgileri
Konu Başlığı Mousewheel Fare tekerliği ile resim büyültüp küçültme
Cevaplar 0
Sonraki Sonraki Konu
Görüntüleyenler0 Üye ve 1 Ziyaretçi konuyu incelemekte.
Görüntülenme 92
Önceki Önceki Konu

Sayfa: [1]   Aşağı git
Yazdır
Gönderen Konu: Mousewheel Fare tekerliği ile resim büyültüp küçültme  (Okunma Sayısı 92 defa)
Gondolin
Bölüm Sorumlusu
*


Yer : Gondolin
Mesaj : 1.069
Forum Para : 7240.00 YTL
Karizma Puanı : 198
Teşekkür: Edilen: 7
Alınan: 64
WWW
Offline
« : 28 Mayıs 2008, 19:10:25 »


Tüyo adı:Mousewheel | Fare tekerliği ile resim büyültüp küçültme!
Yazan:Hoochie Coochie Man
Açıklama:Forumunuz daki resimleri farenin tekerliği ile büyültüp küçültme.. Not: Malesef tekerlikli fare kullanmayanlar bu tüyoyu kullanamaz. Zaten günümüzde herkes tekerlikli kullanıyor..



Subs.php'de..
Bul:
'content' => '<img src="$1" alt="" border="0" />',

Değiştir:
'content' => '<img id="hcm1" src="$1" alt="" border="0" />',

index.tempalte.php'de..
Bul:
</head>

Öncesine ekle:
<script language="JavaScript" type="text/javascript" src="', $settings['theme_url'], '/mootools.js"></script>

<script type="text/javascript">
window.addEvent("domready", function(){
Element.Events.extend({
"wheelup": {
type: Element.Events.mousewheel.type,
map: function(event){
event = new Event(event);
if (event.wheel >= 0) this.fireEvent("wheelup", event)
}
},

"wheeldown": {
type: Element.Events.mousewheel.type,
map: function(event){
event = new Event(event);
if (event.wheel <= 0) this.fireEvent("wheeldown", event)
}
}
});

/* Mousewheel by Hoochie Coochie Man */
$("hcm1").addEvents({
"wheelup": function(e) {
e = new Event(e).stop();

this.width *= 1.1;
this.height *= 1.1;
},

"wheeldown": function(e) {
e = new Event(e).stop();

if (this.width-30 >= 30) {
this.width /= 1.1;
this.height /= 1.1;
}
}
});

});
</script>

Ve son olarak ekteki scripti temanızın içine atın.
Kullandığım efekt Mootools'un paylaşıma sürdüğü bir Mousewheel efektir..

Linklerin Görülmesine İzin Verilmiyor
Linki Görebilmek İçin Üye Ol veya Giriş Yap
Hoochie Coochie Man™
'a teşekkürler.

Logged
Bu Sayfayı Paylaş
Google Ekle Yumile Ekle Yahoo Ekle Msn Ekle Netspace Ekle Ask Ekle Clesto Ekle Digg Ekle Reddit Ekle Furl Ekle Del.icio.us Ekle Submit to Jeqq Spurl Ekle Technorati Ekle Newsvine Ekle Simpy Ekle BlinkList Ekle Shadows Ekle
Sayfa: [1]   Yukarı git
Yazdır
Tags: smf