Adding a CSS, JS and HTML code to a block
The link and the script can be added through drupal_set_html_head() head

drupal_set_html_head('&lt;link href="http://stg.odnoklassniki.ru/share/odkl_share.css" rel="stylesheet"&gt;&lt;script src="http://stg.odnoklassniki.ru/share/odkl_share.js" type="text/javascript" &gt;&lt;/script&gt;');


On clicks are not good practice in drupal. Behaviors are used in stead. 

So in your block you can output 

  &lt;a class="odkl-klass-stat" href="http://preferans.de"&gt;&lt;span&gt;0&lt;/span&gt;&lt;/a&gt;


You can then set a couple of behaviors in your own script, which you can put in a file and add using drupal_add_js()

 Drupal.behaviors.my_module = function (context) {
   // This will load on page load
   ODKL.init();
   // This will attach a click handler to the links
   $('.odkl-klass-stat').click(function() {
   ODKL.Share(this);
   return false;
   }); 
 };