I'm rather new to JS, but I believe its the timing. You have 0.5, which Javascript reads as a half of a milisecond, and I'm not sure if Javascript can read decimals in that field. Anywho, 1000 miliseconds is equal to one second, so 5 seconds = 5000 or 30 seconds = 30,000.
you're passing a statement to the setTimeout, which is looking for a function
Code:
//assuming you have "id" and "orignheight" already established globally
var t1=setTimeout(function(){document.getElementById(id).style.height=origheight+"px";},20);
you're passing a statement to the setTimeout, which is looking for a function
Code:
//assuming you have "id" and "orignheight" already established globally
var t1=setTimeout(function(){document.getElementById(id).style.height=origheight+"px";},20);
Cheers fella - am i right in thinking this isn't the best way to run a statement after a set time?