There is no automatic way to do this.
You could include Frames as a part of a style definition. However they will not switch sides.
Frames and Textboxes in Microsoft Word
If you wanted the colored bars on the entire side of a page, this could be handled with even and odd headers/footers.
Header/Footer Settings Recap