aloso ich habs jetzt so:
function shake(n) {
for (i = 10; i > 0; i--) {
for (j = n; j > 0; j--) {
document.getElementById('phone').style.top = 0 +"px"
document.getElementById('phone').style.left = i +"px"
document.getElementById('phone').style.top = -i +"px"
document.getElementById('phone').style.left = 0 +"px"
}
}
}
aber jetzt springt der layer (ebene?) nur in die linke, obere ecke. also die schleife wird nciht mehr ausgeführt ;-(
woran liegts?
danke
Bernd