Jquery/Javascript - add a callback to my small function, apply that specific callback only when i choose to -


When I launch the scrolling microscin function, then I want to call the callback of some time (to which I have my flash arrow I want to create a function), which I thought would look something like this: scrollMyScreen (flashArrow ()) , but obviously it does not work, my Flash Aero function will actually be larger than just a warning , It's just for example

  Function Scroll MyScreen () {$ ('body'). Delay (600) .mate ({scrollTop: $ (target) .offet (). Top}, 1000, callback)} function flashero (warning ('flipping arrow!')};   

So, what can I do to do this work? I want to call the scrolling microscreen, and then sometimes add the function flash arrow () as a callback, or, once the scroll is microscin. Case case: "Scene": "Scene": "Scroll Mask" (Flash Arrow) Break

/ Pre>

to pass reference to flash arrow Required, : to call:

  case "header": scrollMyScreen () ; break; Case "Cover": Scrollmiscreen (Flash Arrow); // change break here; Do not forget to declare  scrollMyScreen ()  (and  callback  parameter as well!)   

Comments