On this site I train to do a lengdin, I try to steal a fancybox, but I write an Uncaught TypeError error: $ (...). Fancybox is not a function, I just can't fix it ... I’m connecting this way:

<!-- Connect Fancybox.source --> <script type="text/javascript" src="/landing/fancybox/source/jquery.fancybox.pack.js"></script> <script type="text/javascript" src="/landing/fancybox/source/fancybox/jquery.fancybox.js"></script> <link rel="stylesheet" href="/landing/fancybox/source/jquery.fancybox.css" type="text/css" media="screen"/> <!-- Connect Fancybox.helpers --> <script type="text/javascript" src="/landing/fancybox/source/helpers/jquery.fancybox-buttons.js"></script> <script type="text/javascript" src="/landing/fancybox/source/helpers/jquery.fancybox-media.js"></script> <script type="text/javascript" src="/landing/fancybox/source/helpers/jquery.fancybox-thumbs.js"></script> <!-- Connect Fancybox.lib --> <script type="text/javascript" src="/landing/fancybox/lib/jquery.mousewheel-3.0.6.pack.js"></script> <script type="text/javascript" src="/landing/fancybox/lib/jquery-1.9.0.min.js"></script> <script type="text/javascript" src="/landing/fancybox/lib/jquery-1.10.1.min.js"></script> 

On this page you can see everything about what I wrote. http://www.mebeldarom24.ru/landing/landing.html

  • If you are given an exhaustive answer, mark it as correct (tick the selected answer). - Mihanik71

2 answers 2

Connection procedure should be as follows:

 <script type="text/javascript" src="/landing/fancybox/lib/jquery-1.10.1.min.js"></script> <script type="text/javascript" src="/landing/fancybox/source/fancybox/jquery.fancybox.js"></script> <script type="text/javascript" src="/landing/fancybox/lib/jquery.mousewheel-3.0.6.pack.js"></script> <script type="text/javascript" src="/landing/fancybox/source/helpers/jquery.fancybox-buttons.js"></script> <script type="text/javascript" src="/landing/fancybox/source/helpers/jquery.fancybox-media.js"></script> <script type="text/javascript" src="/landing/fancybox/source/helpers/jquery.fancybox-thumbs.js"></script> 

First jquery, then fancybox, then all the plugins for it. And do not connect jquery several times

  • The change of the connected files did not give any result, the button “Get consultation” doesn’t come off anything, although the URL is changing. - sidirovich
  • Is the error gone? - Mihanik71
  • @sidirovich put jquery connection on the very first - Mihanik71
  • set like you, nothing has changed ... - sidirovich
  • @sidirovich you have a file /landing/fancybox/source/fancybox/jquery.fancybox.js empty - Mihanik71

for understanding read this

  • Although the link can find the answer to the question, it is better to provide an answer extract here, and the link as a source. Link references may become invalid in case of changing the page to which the link is given. - ߊߚߤߘ
  • Please try to publish detailed answers containing a specific example of the minimum solution, supplementing them with a link to the source. Answers –references (as well as comments) do not add knowledge to the Runet. - Nicolas Chabanovsky