I forgot one thing: to make sure your variables are global:

<script type="text/javascript">
window.digg_url = 'http://domain.com/library.rbf?id=5';
window.digg_bgcolor = '#c9cc67';
window.digg_skin = 'compact';

var script = document.createElement('script');
script.type = 'text/javascript';
script.charset = 'utf-8';
script.src = 'http://digg.com/tools/diggthis.js';

document.getElementsByTagName('head')[0].appendChild(script);
</script>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to