View Single Post
05-05-2008, 08:26 AM
#6
gluc0se is offline gluc0se
Status: Member
Join date: Aug 2005
Location: New York
Expertise:
Software:
 
Posts: 105
iTrader: 0 / 0%
 

gluc0se is on a distinguished road

Send a message via AIM to gluc0se Send a message via MSN to gluc0se

  Old

The syntax for setTimeout() is

Code:
setTimeout("yourfunction()", milliseconds);
So, I would try something like this:

Code:
function divSize()
{
    var element = document.getElementById("expand");
    if(hValue>0){
        heightChange(element, hValue);
        hValue = hValue - 1;
        setTimeout("divSize()", 100);
     }
}
You'll have to mess with that 100 milliseconds to see what works smoothly for you, but that should be about the implementation for what you want.