On the effects of bursts of massive star formation during the evolution of elliptical galaxies