2013-09-27

I'm trying to do some OO JavaScript to just simply swap pictures with a fade transition, but nothing happens when the page loads.

All my images are named Joe_#.jpg, where # is a number.

Here is my imagesJS.js file:

Here is how I include everything on the HTML page:

And this is the myJavascript.js file (maybe it has something to do with it):

Should I be putting the objects in the onLoad function? I can't seem to find me problem.
Thanks in Advance!

//######################################################################################
UPDATE 1

Here's the code after correcting the advice from net.uk.sweet below and some scope issues from this link Using setTimeout() within a JavaScript class function

UPDATED CODE -

Unfortunately, it still doesn't work.... Any ideas?

Show more