Ad Rotator is a simple widget to display random HTML code (advertisements) from a given group of HTML-chunks on sidebar.
Sources of this plugin are available both in SVN and Git:
Feel free to check them out, make your changes and send me patches. Promise, I will apply every patch (of course, if they add a value to the product). Email for patches, suggestions, or bug reports: firstname.lastname@example.org.