M
Max
Hi,
I'm not exactly sure why this doesn't work. I'm basically just trying a
simple approach at a slide down div.
function slide_div {
setTimeout("document.getElementById('mydiv').style.length='10px';",1000);
setTimeout("document.getElementById('mydiv').style.length='20px';",1000);
setTimeout("document.getElementById('mydiv').style.length='30px';",1000);
setTimeout("document.getElementById('mydiv').style.length='40px';",1000);
setTimeout("document.getElementById('mydiv').style.length='50px';",1000);
setTimeout("document.getElementById('mydiv').style.length='60px';",1000);
}
It seems like it just runs the last setTimeout line and pops out all at
once. I've even tried adding a=, b=, c=,. etc at the begining of each
line to no avail.
Anybody know a simple solution for this?
Thanks,
Max
I'm not exactly sure why this doesn't work. I'm basically just trying a
simple approach at a slide down div.
function slide_div {
setTimeout("document.getElementById('mydiv').style.length='10px';",1000);
setTimeout("document.getElementById('mydiv').style.length='20px';",1000);
setTimeout("document.getElementById('mydiv').style.length='30px';",1000);
setTimeout("document.getElementById('mydiv').style.length='40px';",1000);
setTimeout("document.getElementById('mydiv').style.length='50px';",1000);
setTimeout("document.getElementById('mydiv').style.length='60px';",1000);
}
It seems like it just runs the last setTimeout line and pops out all at
once. I've even tried adding a=, b=, c=,. etc at the begining of each
line to no avail.
Anybody know a simple solution for this?
Thanks,
Max