Category Archives: JavaScript

Using a function with parameters as parameter

Imagine that you have a function that expects a reference to a function. Here is an example of such a function: function bar(fn) { fn(); } Now imagine that the function that you want to pass to bar accepts a … Continue reading

Posted in JavaScript | Leave a comment

Image scroller

// +————————————————————————— // | Author: Tim Van Wassenhove <timvw@users.sourceforge.net> // | // | A javascript picture scroller // +————————————————————————— var i = 0; var pics = new Array(); // define the pictures you want to show (html id, image url, … Continue reading

Posted in JavaScript | Leave a comment