Estrella de Navidad
Solución
<script>
function iniAnima()
{
var estnav = new oMovil('estrella', 10, 200,600, 190, 60, true, 'movEstrella');
estnav.situar();
animEst = new oAnimacion(estnav)
animEst.iniciar('animEst');
}
function movEstrella()
{
var y, x;
x = Math.round(this.leeX()+this.incx);
y = this.py0 + Math.round(40*Math.sin(x*Math.PI/180))
this.ponY(y);
this.ponX(x);
this.situar();
this.esFinal = Math.abs(this.px1-x) < Math.abs(this.incx);
}
</script>
<body color ="#FFFFFF" onload="iniAnima()">
<div id="estrella" style="position:absolute; z-index:1; width: 1; height: 1; overflow: visible; left: 6px; top: 14px"><img src="../../simbolos/estnav.gif" width="57" height="37"></div>
< !--Contenido de tu página-->
</body>
Explicación
animEst.enlazar('animEst',null,3000);
Antes de animEst.iniciar(). El argumento último (3000 en este
caso) indica los milisegundos que tardará en repetirse el movimiento.