title: Uncaught TypeError: Object [object Object] has no method 'fancybox'
body: <p>I am new in Javascript/jQuery. I try to use jQuery fancybox, but I get such error.</p>
  
  <p>Uncaught TypeError: Object [object Object] has no method 'fancybox' .</p>
  
  <p>Here is my code:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;script type = "text/javascript" src = "jquery-1.10.1.min.js"&gt;&lt;/script&gt;
  &lt;script type = "text/javascript" src = "jquery.mousewheel-3.0.6.pack.js"&gt;&lt;/script&gt;
  &lt;link rel="stylesheet" href="source/jquery.fancybox.css" type="text/css" media="screen" /&gt;
  
  &lt;script type = "text/javascript"&gt;
      jQuery(document).ready(function($) {
          $(".fancybox").fancybox({
              openEffect  : 'none',
              closeEffect : 'none'
          });
      });
  &lt;/script&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
  &lt;a class="fancybox" rel="gallery1" href="http://farm6.staticflickr.com/5471/9036958611_fa1bb7f827_b.jpg" title="Westfield Waterfalls - Middletown CT Lower (Graham_CS)"&gt;
      &lt;img src="http://farm6.staticflickr.com/5471/9036958611_fa1bb7f827_m.jpg" alt="" /&gt;
  &lt;/a&gt;
  &lt;a class="fancybox" rel="gallery1" href="http://farm4.staticflickr.com/3824/9041440555_2175b32078_b.jpg" title="Calm Before The Storm (One Shoe Photography Ltd.)"&gt;
      &lt;img src="http://farm4.staticflickr.com/3824/9041440555_2175b32078_m.jpg" alt="" /&gt;
  &lt;/a&gt;
  &lt;a class="fancybox" rel="gallery1" href="http://farm3.staticflickr.com/2870/8985207189_01ea27882d_b.jpg" title="Lambs Valley (JMImagesonline.com)"&gt;
      &lt;img src="http://farm3.staticflickr.com/2870/8985207189_01ea27882d_m.jpg" alt="" /&gt;
  &lt;/a&gt;
  &lt;a class="fancybox" rel="gallery1" href="http://farm4.staticflickr.com/3677/8962691008_7f489395c9_b.jpg" title="Grasmere Lake (Phil 'the link' Whittaker (gizto29))"&gt;
      &lt;img src="http://farm4.staticflickr.com/3677/8962691008_7f489395c9_m.jpg" alt="" /&gt;
  &lt;/a&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>What can be the problem???
  Thanks.</p>