Hallo,
so auf die schnelle fällt mir dazu ein...
wie wäre es wenn du einen "flag" für sliding up einführst?
var slidingUp = false;
function slideDown(whichone,target){
if(document.getElementById){
if(parseInt(!slidingUp && document.getElementById(whichone).style.top) < target){
document.getElementById(whichone).style.top = parseInt(document.getElementById(whichone).style.top) + 1 + "px";
myDown = "slideDown('" + whichone + "'," + target + ")";
setTimeout(myDown,1);
}
}
}
function slideUp(whichone,target){
if(document.getElementById){
if(parseInt(document.getElementById(whichone).style.top) > target){
document.getElementById(whichone).style.top = parseInt(document.getElementById(whichone).style.top) - 1 + "px";
myUp = "slideUp('" + whichone + "'," + target + ")";
slidingUp = true;
setTimeout(myUp,1);
}
else
{
slidingUp = false;
}
}
}
Gruß,
Cruz