The objective of this study was to explore the possibility of obtaining stable transgenic animals by intratesticular injection. The recombinant vector pEGFP-H-FABP expressing the goat heart-type fatty acid binding protein and green fluorescent protein was mixed with liposome complexes and randomly injected into the testes of mice. Testicular section, fluorescence, and DNA detection assays of mouse sperm were performed to determine the integration of foreign DNA. The results showed that foreign DNA was successfully expressed in the treated mice. Furthermore, the expression and function of the foreign gene were analyzed in F1 generation and F2 generation mice at different levels, with the positive rates of foreign gene transfer into the F1 and F2 generations being 4.0 and 30.23 %, respectively. These results strongly support testicular injection as an effective method of producing transgenic animals and indicate that foreign genes can be stably passed on to the offspring. This research has theoretical and practical implications for the improvement in the quality of laboratory animals and for gene therapy.