title: Facebook Emotions
body: <p>This code is from <strong>Facebook Chat Emoticons Bar</strong> Grease Monkey UserScript</p>
  
  <pre><code>ImagesURL = HttpsOn?'https://s-static.ak.fbcdn.net/images/':'http://static.ak.fbcdn.net/images/';
  
  
  emotsInfo = [':)', ':(', ':p', ':D', ':o', ';)', '8)', '8|', '&gt;:(', ':/', ':\'(', '3:)', 'O:)', ':*', '&lt;3', '^_^', '-_-', 'o.O', '&gt;:O', ':v', ':3'];
  
  
  
  for(i=0;i&lt;emotsInfo.length;i+=1) {
          var fEmotsDom = document.createElement('img');
          fEmotsDom.setAttribute('alt',emotsInfo[i]);
          fEmotsDom.setAttribute('style','cursor: pointer; background-position: -'+ 16*i +'px 0px;');
          fEmotsDom.setAttribute('src',ImagesURL + 'blank.gif');
          fEmotsDom.setAttribute('class','emote_img');
          fEmotsListDom.appendChild(fEmotsDom);
      }
  </code></pre>
  
  <p><br></p>
  
  <p>This code brings Facebook emotions from Facebook server<br>
  I'm coding a WPF , I understand all code procedures except getting the emotion from blank.gif<br>
  <br>
  <strong>C# Code</strong></p>
  
  <pre><code>        const string EmotionsResources = "http://static.ak.fbcdn.net/images/";
  
  
          private Image Emoticons ( string E )
          {
              return ( new Image ( ) { Source = new BitmapImage ( new Uri ( EmotionsResources + E ) ) } );
          }
  </code></pre>
  
  <h1><br></h1>
  
  <p>if you try to get source of any of Facebook chat emotions .. you will get [ <a href="http://static.ak.fbcdn.net/images/blank.gif" rel="nofollow">http://static.ak.fbcdn.net/images/blank.gif</a> ]
  this code retrieve emotions from this link HOW ?</p>