title: Showing content based on screen resolution
body: <p>I have a website with some content. Based on the users screen resolution i want to show different content so that mobile devices will have some other content, but the rest of the site will be the same. I did some research, and it seems like the only possible way is with javascript. I code PHP most of the time, so i really suck at javascript, so it would be nice if someone could provide me with a simple script.</p>
  
  <p>What i need is a javascript function like this:</p>
  
  <pre><code>if (screen resolution &lt; X x X) {
  show some content...
  } else {
  show some other content ...
  }
  </code></pre>
  
  <p>If javascript is off, it should just show some other content.. :) I can install jquery if it helps. Thanks</p>
  
  <p>It would be nice with examples for the html code too.</p>