hallo,
und zwar habe ich hier folgenden code:
Mausschreiber
if(document.getElementById&&document.styleSheets) {
standby=0;
p=0;
document.write("<style type=‚text/css‘>div.maus{position:absolute;right:-100px;top:-100px;font-size:80%;color:#000000}</style>");
(document.all)?max=1000:max=1000;
for(i=0;i<max;i++) document.write("<div class=‚maus‘ id=‚P"+i+"‘>°</div>");
document.onmousedown=checkStatus;
document.onmousemove=setPoint;
}
function checkStatus(e) {
((document.all&&standby==0&&event.button==1)||(!document.all&&standby==0&&e.which==1))?standby=1:standby=0;
}
function setPoint(e)
{
if(document.all&&standby==1) {
document.getElementById(„P“+p).style.left=event.x+document.body.scrollLeft-20;
document.getElementById(„P“+p).style.top=event.y+document.body.scrollTop-20;
}
else if(standby==1) {
document.getElementById(„P“+p).style.left=e.pageX-20;
document.getElementById(„P“+p).style.top=e.pageY-20;
}
(p<max-1)?p++:stuck_out_tongue:=0;
}
Das ist also eine Art Mausschreiber, bei Click auf die Maus malt die Maus folgend der Bewegung, bei erneutem Click hört sie damit aus.
Das Problem ist nur, sobal ich eine farbige div hinlege, malt die Maus nicht mehr darüber sondern darunter.
Weiss jemand wie man das ändern kann? Wäre für Hilfe sehr dankbar.