> > > document.getElementById( \'santa\' ).style.left = newxPos + \'px\';
> > > document.getElementById( \'santa\' ).style.top = newyPos +
>
> > Ich weiß nicht, ob das reicht aber die beiden Plus sollten auf jeden
> Fall
> > durch Minus ersetzt werden. Wahrscheinlich mußt Du noch eine andere
> > Startposition angeben.
>
> War - glaube ich - etwas mißverständlich. Deshalb hier noch mal etwas
> genauer.
Sorry aber auf die schnelle sehe ich da keine Änderung.
function moveSanta() {
if ( document.getElementById ) {
var left = document.getElementById( \'santa\' ).style.left;
var top = document.getElementById( \'santa\' ).style.top;
if ( parseInt( top ) < 150 ) var newyPos = parseInt( top.substring( 0, top.length - 2 ) ) - 6;
else var newyPos = parseInt( top.substring( 0, top.length - 2 ) ) - 2;
var newxPos = parseInt( left.substring( 0, left.length - 2 ) ) + 10;
document.getElementById( \'santa\' ).style.left = newxPos + \'px\';
document.getElementById( \'santa\' ).style.top = newyPos + \'px\';
if ( newxPos < screen.availWidth ) {
window.setTimeout(\'moveSanta()\', 80);
} else {
document.getElementById( \'santa\' ).style.display = \'none\';
}
}
}
window.setTimeout(\'moveSanta()\', 60);