![]() | |
| | #1 (permalink) |
| Lorem ipsum dolor... Üyelik Tarihi: 02/2007 Yer: Ankara
Mesaj: 229
|
Ne yapmak istediğimi söylersem ne demek istediğim daha iyi anlaşılır sanırım. Bir arkadaşım blog sitesi açmış. Bana da adresini verdi ve arkasından ekledi "reklamlara sakın çok tıklama sistemden atılırım". Ben Adsense olayından pek anlamadığım için şöyle yap diye bir öneri sunamadım elbette ama aklıma şöyle bir şey geldi: clickdensity.com'daki gibi kullanıcıların tıkladıkları yeri belirleyip (örneğin reklamların bulunduğu div'i) o bloğu kullanıma kapatmak çok tıklandı vs. gibi sorunları çözecektir. Reklam linkleri bizim kontrolümüzde olmadığı için o bölgeye yapılan tıklamaları nasıl tesbit edebilirim? |
| | |
| | #3 (permalink) |
| Çiğnenmeden yutulur. Üyelik Tarihi: 08/2007 Yer: 208.109.14.72
Mesaj: 280
|
Benimde çok merak ettiğim bir konu aynı şeyden dolayı benimde ihtiyacım var javascript ile yapılabilir belki
__________________ GUANTANAMO HAPİSANESİNE TEPKİNİZİ GÖSTERİN BİR İMZA ATMAK İÇİN TIKLAYIN |
| | |
| | #4 (permalink) |
| Üye Üyelik Tarihi: 06/2004 Yer: İstanbul
Mesaj: 2,286
| document nesnesinin elementFromPoint metodu tam istediğiniz şey fakat Firefox'ta çalışmadığı için internetten bulduğum bir kaynakla ek yapmak suretiyle Firefox'un da aynı metoda destek vermesini sağlayarak bu sorunu aştım: Kod: <SCRIPT>
// Program: document.elementFromPoint(int clientX, int clientY) in Gecko
// Author: Jason Karl Davis (www.jasonkarldavis.com)
// Date: 15 June 2003
// Purpose: Emulate Internet Explorer's document.elementFromPoint method as described here:
// http://msdn.microsoft.com/workshop/a...tfrompoint.asp
// Requirements: A browser built off of the 1.4 branch of Mozilla (or better)
// Distribution: You may freely distribute and use this script as long as these comments remain intact
if (navigator.product == "Gecko") {
Document.prototype.elementFromPoint = function(x, y) {
this.addEventListener("mousemove", this.elementFromPoint__handler, false);
var event = this.createEvent("MouseEvents");
var box = this.getBoxObjectFor(this.documentElement);
var screenDelta = { x: box.screenX, y: box.screenY };
event.initMouseEvent("mousemove", true, false, this.defaultView, 0,
x + screenDelta.x, y + screenDelta.y, x, y,
false, false, false, false, 0, null);
this.dispatchEvent(event);
this.removeEventListener("mousemove", this.elementFromPoint__handler, false);
return this.elementFromPoint__target;
}
Document.prototype.elementFromPoint__handler = function (event) {
this.elementFromPoint__target = event.explicitOriginalTarget;
// reparent target if it is a text node to emulate IE's behavior
if (this.elementFromPoint__target.nodeType == Node.TEXT_NODE)
this.elementFromPoint__target = this.elementFromPoint__target.parentNode;
// change an HTML target to a BODY target to emulate IE's behavior (if we are in an HTML document)
if (this.elementFromPoint__target.nodeName.toUpperCase() == "HTML" && this.documentElement.nodeName.toUpperCase() == "HTML")
this.elementFromPoint__target = this.getElementsByTagName("BODY").item(0);
event.preventDefault();
event.stopPropagation();
}
Document.prototype.elementFromPoint__target = null;
}
function hangiElemanaTiklanmis(e){
spanTo.innerHTML=document.elementFromPoint(e.x, e.y).tagName;
}
</SCRIPT>
:
<SPAN onclick="hangiElemanaTiklanmis(event)">
<P>Mouse Over This</P>
<P>toElement: <SPAN ID="spanTo"></SPAN></P>
</SPAN>
__________________ tuncay.kinali.net |
| | |
![]() |
| Bookmarks |
| Seçenekler | |
| |
Benzer Konular | ||||
| Konu | Konuyu açana göre | Forum | Cevap | En Son Mesaj |
| dll nasıl debug edebilirim... | jeantonick | ASP | 0 | 10/09/2007 11:43 |
| photoshopta belirli bir alanın boyutunu bulma | astronot | Photoshop / Corel / PSP | 13 | 03/09/2006 10:06 |
| Donanımlar nasıl tespit edilir? | mumugul | Donanım | 6 | 20/05/2006 09:53 |
| portlarımı nasıl kontrol edebilirim? | cpusat | Ağ / Güvenlik | 5 | 25/01/2006 18:13 |
| Ağdaki bilgisayarları nasıl kontrol edebilirim???? | notalone | Ağ / Güvenlik | 4 | 12/06/2004 16:54 |
| Reklamlar & Desteklenenler | |
| Hassas Valf | Hassas Kaplama | Antalyamız | Gazete | Ticari Bilişim | Hakan Müştak | Rüya Tabirleri | Kadın | Hastalıklar | Cepte msn ve e-posta | Webmaster | Antalya Aupair | Turkish Property Antalya | Forum | Chat | Perde | Adsl | Araba | bolindir.com | guncelle.com | livescore | Web Tasarım | evden eve nakliyat | forum | evden eve | sohbet | Resimcim| Kalifiye İnsan Kaynakları | Web Tasarım | Oyun | Yusuf KOÇ | Akın Yorulmaz | şiir | UFO | Web Tasarım | Oyunlar | Canlı Tv | |