By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,179 Members | 1,101 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,179 IT Pros & Developers. It's quick & easy.

Having problems using setInterval on a function which has a parameter. Help please.

P: n/a
Hi folks.
I tried to use setInterval like this but it did not work

setInterval ( removeitem (theitem)
{
theitem.style.display= "none";
},
1000 );

the function without the setInterval is

function removeitem(theitem)
{
theitem.style.display="none";
}

Sep 6 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
dn
Terry wrote:
Hi folks.
I tried to use setInterval like this but it did not work

setInterval ( removeitem (theitem)
{
theitem.style.display= "none";
},
1000 );

the function without the setInterval is

function removeitem(theitem)
{
theitem.style.display="none";
}
http://blog.paranoidferret.com/index...nd-settimeout/

D.
Sep 6 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.