title: How can I use fancybox using onclick?
body: <p>I am trying to make use of JQuery and Fancybox. This is how it should be used: <a href="http://fancy.klade.lv/howto" rel="noreferrer">http://fancy.klade.lv/howto</a></p>
  
  <p>However, I can not generate many ids for "a href" and I do not want to make many instances of fancybox ready. So I want to be able to use one fancy box instance for many hyperlinks that do the same thing.</p>
  
  <p>Whenever any of these links are clicked, the fancybox should popup for it. I thought I would use the onclick attribute for a "<code>&lt;a href</code>" tag or any other tags, I can chnage this but how do I use the fancybox? I tried this but nothing came up:</p>
  
  <pre><code>&lt;a href="#not-working" onclick="fancybox(hideOnContentClick);"&gt;Not Working?&lt;/a&gt;
  </code></pre>
  
  <p>Thanks for any help</p>