There are plenty of ways to do it. Also, depends on what type of game you want. However, there is a problem with animation part that browsers seem to leak memory when the time goes by.
Anyway, there is no such a tutorial for game programming purpose. However, you could search for DHTML which was used for game before. Learn from there to get some ideas how to implement certain things.
The game I would like to make is something like a chess but it behaves a little differently. It has got a matrix of 3x4 and four different players at maximum. So if you click on one of the sequares, it should show you how much food in there (numeric value) and a little ants that you move to find out about the food in nests.
In your case, you need to think what your game needs to have. If you want to script it in OO programming fashion, it would be even better. Start with only 1 player first. If I were you to implement it, I would create classes for each part -- game board, controller (mouse/keyboard listener), ants, and the game itself. The game board contains the value of food and animation display the value if a mouse is click on, the controller ties functions from the game to whatever event listener you want (left, right, middle click), the ant displays its animation, and the game itself links and ties everything together. Just a thought.
Just show me what you got so far. If I could give you any input, I will. :)
I don't have anything at the moment. But, I was wondering if anyone knows good tutorials online so I can teach myself a bit. Yeah, I was working on a small animation project for myself but I don't think it was fully working. I will come back to it later and see what needs to be fixed!