To support code-switching bilingual teaching in computer major courses, an online e-Leaning system based on model-view-controller (MVC for short) architecture is designed and implemented using object-oriented analysis and design method. Here, Struts, Spring and Hibernate are chosen as development frameworks to implement MVC model. Google Translate API as a tool that automatically translates text from one language to another language is adopted to support web pages with multiple languages. Based on various teaching materials such as video or audio or flash, it is easy for students to finish self-study and for teachers to finish supplementary teaching. With this e-Learning system, it is convenient to arouse students’ interests of computer major courses, improving students’ English expression skills of speaking and writing and enhancing students’ international employment competence.