In this paper, we suggest a scheme which can produce various types of entangled states of the cavity field. In the scheme, cavities with different circumstances which evolve in time are utilized. It is shown that if two cavities are arranged in a way that, the first cavity is governed by the Jaynes-Cummings (JC) and the other with anti-Jaynes-Cummings (anti-JC) Hamiltonian, entangled EPR state of the cavity field is generated. Also, the proposal can be extended to the multi-cavity case, where the cavities are arranged such that their time evolutions change alternately from JC to anti-JC Hamiltonian. From this configuration, three-and four-partite GHZ states can be generated. At last, it is illustrated that in the multi-cavity set up if one prepares all cavities with the same time evolution property, W state can be produced. An important feature of this scheme is the fact that the result of the processes is independent of the result of atomic detection.