Zie onderstaand probleem. Volgens de specs ondersteund Mozilla gewoon clientX en clientY. De enige die wel met dit script werkt is IE. Dit is zo fokking simpel, dat ik er zwaar gefrustreerd van raak. Ik heb al echt tig dingen geprobeerd; screenX, pageX, offsets etc...
Wat gaat hier fout...?
Wat gaat hier fout...?
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<script>
function PrintenBitch(e){
if (!e){e=event}
X = e.clientX;
Y = e.clientY;
window.status = 'X:'+ X +' Y:'+ Y +'';
}
</script>
</head>
<body onmousemove="PrintenBitch()">
</body>
</html> |