function jump(){ x = document.getElementById("char"); var cutoff = 100; var bottom = x.style.bottom; for (x = 0; x <= cutoff; x += 5) { x.style.bottom = x + "px"; document.frm.txt3.value = x.style.bottom; } for (y = cutoff; y <= bottom; y -= 5) { x.style.bottom = y + "px"; document.frm.txt3.value = x.style.bottom; } }[Edited by - Fl4sh on November 8, 2010 9:59:42 AM]