Dsa ich anfänger bin stimmt, hier:
var a = 0;
function start() {
if (a < 20) {
a = a + 1;
document.getElementById("icon").style.top = a+ "px";
window.setTimeout("start()", 25);
} else {
a = a - 1;
document.getElementById("icon").style.top = a+ "px";
window.setTimeout("start()", 25);
}
}