Hallo!
Bei mir tritt ab und zu das Problem auf, dass das event-Objekt nicht zu existieren scheint. (Internet Explorer 6.0.2600).
Zum Biespiel in diesem Code:
<html>
<head>
<script type="text/javascript">
var m = 0;
function startUp() {
c = window.createPopup();
c.document.write("hallo");
c.document.body.onmousedown = function() {parent.m=1};
c.document.body.onmouseup = function() {parent.m=0};
c.show(200, 200, 400, 400);
window.setInterval('moveDa()', 20);
}
function moveDa() {
if (m == 1) {
daX = window.event.x; // <==
daY = window.event.x; // <==
c.show(daX, daY, 400, 400);
}
}
</script>
</head>
<body>
<button onclick="startUp()">open</button>
<br>
<br>
</body>
</html>
Da wo die Variablen daX und daY ihren Wert erhalten, bekomme ich die Fehlermeldung "Objekt erforderlich". Vielleicht steh ich einfach nur aufm Schlauch... bitte helft mir ;) !
Danke im Voraus, Hannes