For instance, if you have a texture of a button, and you want it to flash from green to red, you could load a texture object for both the red and the green one. Save thier id's, and when you have to render the button, alternatly bind the red and green texture id. This would have the effect of having the button change texture every frame.
Sorry I can't offer any code, but that's the first thing I would try.