[CODE]
<script>
var speed = 10; // Delay between increments.
var inc = 10; // Increment amount — also changes speed
function ScaleToFit(id) {
var obj= document.getElementById(id);
resize(obj.scrollHeight, 0, id);
var buttonObj= document.getElementById(‘hidden_button’);
buttonObj.style.visibility = “hidden”;
}
function resize(height, current, id) {
var obj = document.getElementById(id);
if (current <= height) {
i = current + inc;
obj.style.height = i;
}
if (current <= height) {
var t = window.setTimeout(“resize(“+height+”, “+i+”, ‘”+id+”‘)”, speed);
} else {
obj.style.height = height;
}
}
</script>
I would like to know why this function not working with Mozila and Safari,
Thanks