There are a couple of practical routes to building an online game:
1) Use an online game editor to create a simple game quickly — sites like pbmcube.com offer a growing collection of browser-based game builders.
2) Learn to build games yourself using tools like Flash, Director, or Java. Flash is the most popular and has the most learning resources; Director is more complex and uses JavaScript; Java is the most demanding and requires the most training.
Another great option is Game Maker, which is excellent for teaching programming, or Torque, which is ideal for creating more advanced, professional-looking 3D games.