JS ile Fare Pozisyonu ve Tuş Denetimi <html> <head> <title>JS ile Fare Pozisyonu ve Tuş Denetimi</title> <style type="text/css"> .tasinan { position: absolute; border: dashed 1px #59f; margin: 15px 15px 15px 10px; padding: 15px; } </style> <script type="text/javascript"> var FarePosUst = 0; var FarePosSol = 0; function FarePosAl(olay) { if(!olay) var olay = window.event; FarePosSol = olay.clientX; FarePosUst = olay.clientY; document.getElementById("BilgiKutusu").style.top = FarePosUst; document.getElementById("BilgiKutusu").style.left = FarePosSol; document.getElementById("mousepos").innerHTML = FarePosSol + ", " + FarePosUst; return true; } // Fare hareket olay kontrolünü kendi fonksiyonumuza bağlıyoruz. window.document.onmousemove = FarePosAl; </script> </head> <body> <div class="tasinan" id="BilgiKutusu"> <span>Fare Pozisyonu: </span><span id="mousepos"> </span> <br /> </div> </body> </html> |
Tüm Zamanlar GMT +3 Olarak Ayarlanmış. Şuanki Zaman: 12:20. |
Powered by vBulletin® Version 3.8.8 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO
Copyright ©2004 - 2024 IRCForumlari.Net