foxphpbomb
Programmer
I have this script that hides and shows a table row that is invoked on a mousover event:
The problem is that if I invoke the hiding part of the function, all the contents included in that table row disappear, but the vertical space that the row occupies on the screen remains, so if I keep hiding and showing rows, it keeps bumping down whatever is below that row one, messing up the design. This only happens in firefox. Can this function be modified to fix this problem, or is there an alternate method?
Code:
function showRow(x)
{
document.getElementById(x).style.display="block";
}
function hideRow(x)
{
document.getElementById(x).style.display="none";
}
The problem is that if I invoke the hiding part of the function, all the contents included in that table row disappear, but the vertical space that the row occupies on the screen remains, so if I keep hiding and showing rows, it keeps bumping down whatever is below that row one, messing up the design. This only happens in firefox. Can this function be modified to fix this problem, or is there an alternate method?