This is not my code, simply updated a 2015 code by vampirehunter
So it will work with CE.
This is a header carousel add-on that lets you make use of the stock osC banner function.
It’s a no core change add-on. Simply install and turn on like any other add-on.
Then go to admin/tools and use banner manager to make a new banner. The groups must be set to “Rotator”
This is a carousel so you need to make a number of banners each set to “Rotator”
It has only been tested on CE.