Crossing over happens in prophase I. Chromatids of two synapsed chromosomes trade a section. This gives those two chromatids a different combination of alleles. So the gametes containing these chromatids will have the new combination, as will any offspring.
This is the revised version so that maybe you can under stand it a little better.