Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
var mousepos = new Array();
function init_pos() {
if(document.layers) {
document.captureEvents(Event.MOUSEMOVE)
}
document.onmousemove = pos
}
function pos(e) {
var xPos = e? e.pageX : window.event.x
var yPos = e? e.pageY : window.event.y
mousepos = new Array(xPos,yPos)
if (document.layers)
routeEvent(e)
}
window.onload = function () {
init_pos();
document.onclick = function () {
alert(mousepos[0]+"x"+mousepos[1])
}
}
danke dir,
aber wie würde das aussehen, wenn es nicht für netscape ist?
alert(window.event.screenY)
var mousepos = new Array();
function init_pos() {
if(document.layers) {
document.captureEvents(Event.MOUSEMOVE)
}
document.onmousemove = pos
}
function pos(e) {
var xPos = e? e.pageX : window.event.x
var yPos = e? e.pageY : window.event.y
mousepos = new Array(xPos,yPos)
if (document.layers)
routeEvent(e)
}
window.onload = function () {
init_pos();
document.onclick = function () {
alert(mousepos[0]+"x"+mousepos[1])
}
}