Abstract.Virtual laboratory is an application of virtual reality technology in the field of experimental teaching. Compared with the traditional on-site experiments, virtual laboratory performs experimental applications without limitation of space and time. In this paper, a web-based virtual laboratory of mechanical elements displays is designed integrating real experimental purposes and environment. Firstly, based on SolidWorks and 3ds Max, a virtual laboratory model is created including mechanical elements or mechanisms, display cabinets and laboratory scenes. Then interaction designs by EON Studio are conducted to realize automatic path roaming, walking path, three-dimensional elements browsing and narrating. Finally, the virtual laboratory is published so that students can run the experiment by web.