What I am looking for is also similar to the Facebook integration. It calls a javascript file and in the DIV tag it will have information on what to call specifically:
<div id="fb-like" data-width="450" data-height="100" data-href="myhome.com"></div>
This will tell the javascript to call the FB LIke item, style it to 450px wide and 100px high, and any action (liking the page) will insert info into the database for 1 like by a certain person, for a certain page.
I need to do this with a hosting company I work for. To have ads program, and an API for clocks, and other useful widgets. I need to have the ability to have users style it, and use it on their site to their custom style. If you need more info, just ask.