have a small javscript that users can include into their sites like so:
<script src="http://www.mydomain.com/stuff.js?id=99" type="text/javascript"></script>
once included, this adds a clickable link to their page, all works good so far.
now for the part I am stuck on, in stuff.js we need to be able to use the value of id (99 in this case) in the functions
example:
destination = escape('http://mydomain.com/index.php?refferal=ID-VALUE-HERE');
basically just need to replace ID_VALUE_HERE with 99
Any ideas or tips how this relatively simple task could be accomplished?