I started to make an really simple experiment, just to learn the basics of JavaScript. The problem is that I’m trying to move the events (like: onmouseover, onclick) from the HTML code to the external js file, that already contain the functions. I’ve tried few methods but nothing works.
I believe that must be something really simple, but I can’t figure it out now.
If you can and want to help, please take a look: http://www.animatedbuilding.net16.net/
You can assign event handlers programmatically, like this:
More info here.