Jump to content


Photo

Recursive Methods


  • Please log in to reply
No replies to this topic

#1 Lars Ole

Lars Ole

    New Member

  • Members
  • Pip
  • 3 posts

Posted 23 November 2012 - 11:58 PM

The recursive methods should be like this, if the should work with a parameter

function lightning_one( t ){
$("#container #lightning1" ).fadeIn(250).fadeOut(250);
setTimeout( "lightning_one("+ t +")", t );
};

Otherwise the "t" will of course be "undefined"




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users