View Single Post
Old 09-17-2012, 05:39 PM   PM User | #7
blaze4218
Regular Coder

 
Join Date: Apr 2005
Location: Texas
Posts: 448
Thanks: 24
Thanked 63 Times in 63 Posts
blaze4218 is an unknown quantity at this point
Quote:
Originally Posted by WolfShade View Post
Put the setInterval after the function.

function bildbyte(){
code
}
setInterval('bildbyte()',5000);
That should read

Code:
setInterval( bildbyte , 5000 );
And to address
Quote:
why doesn't it work?
I would venture:
-either Logic Ali's reply
-or the $() is expecting a string. ie: $('body')
__________________
Allwisend bin ich nicht, doch viel ist mir bewursst
-Goethe
blaze4218 is offline   Reply With Quote