Hi Everyone,
i'm looking for information on how to create a javascript snippet to distribute code created on my site. The code is to give to other site owners to insert on their sites.

Lets assume i have a database with client ID and picture associated.
I want the website owner to insert the javascript code on his website which will include his ID to retrieve his picture (to be displayed on his site), i guess an iframe somehow.

this is an example from another site:

    <!-- BEGIN ProvideSupport.com Graphics Chat Button Code -->
<div id="ci19GP" style="z-index:100;position:absolute"></div><div id="sc19GP" style="display:inline"></div><div id="sd19GP" style="display:none"></div>
<script type="text/javascript">var se19GP=document.createElement("script");se19GP.type="text/javascript";var se19GPs=(location.protocol.indexOf("https")==0?"https":"http")+"://image.providesupport.com/js/patios4all/safe-standard.js?ps_h=19GP&ps_t="+new Date().getTime();setTimeout("se19GP.src=se19GPs;document.getElementById('sd19GP').appendChild(se19GP)",1)
<noscript><div style="display:inline"><a href="http://www.providesupport.com?messenger=patios4all">Live Support</a></div>
<!-- END ProvideSupport.com Graphics Chat Button Code -->
Thanks for the help