-6
// functie voor omlaag gaan van de lift en character
function charliftdown1() {
if (richting == -20){
setInterval(liftdown, 500)
}
}
function liftdown() {
console.log(a = a - 2); // this one works
positioncharacter.style.marginBottom = parseInt(positioncharacter.style.marginBottom) -2 + "px";
}
我试过很多方法,但它仍然不工作。有趣的是,它工作之前? 我做错了什么?Loop and animate div
你可以创建一个演示来显示你的问题? –
它在控制台中给了什么错误? – Akshay
http://athena.fhict.nl/users/i338168/DED/site/prototype.html – rickkorsten