erreur de référence non capturée $ n’est pas défini

Je reçois l’erreur suivante et aucun javascript ne fonctionne sur mon site: erreur de référence non capturée $ n’est pas défini

Cela fonctionnait mais je ne peux pas voir maintenant où il y a quelque chose qui ne va pas Quelqu’un peut-il s’il vous plaît aider?

Je fais un lien vers des fichiers javascript ici:

  

Et voici le script des fonctions js

 //-------------------------- MENU MOVE $(document).ready(function(){ $(".one").hover(function() { $(this).stop().animate({ marginTop: "5px" }, 200); },function(){ $(this).stop().animate({ marginTop: "0px" }, 300); }); }); $(document).ready(function(){ $(".two").hover(function() { $(this).stop().animate({ marginTop: "5px" }, 200); },function(){ $(this).stop().animate({ marginTop: "0px" }, 300); }); }); $(document).ready(function(){ $(".three").hover(function() { $(this).stop().animate({ marginTop: "5px" }, 200); },function(){ $(this).stop().animate({ marginTop: "0px" }, 300); }); }); $(document).ready(function(){ $(".four").hover(function() { $(this).stop().animate({ marginTop: "5px" }, 200); },function(){ $(this).stop().animate({ marginTop: "0px" }, 300); }); }); $(document).ready(function(){ $(".five").hover(function() { $(this).stop().animate({ marginTop: "5px" }, 200); },function(){ $(this).stop().animate({ marginTop: "0px" }, 300); }); }); $(document).ready(function(){ $(".plane").stop().animate({ marginRight: "2000px" }, 40000); }); $(document).ready(function(){ $(".signinbutton").hover(function() { $(this).stop().fadeTo('slow', 0.5); },function(){ $(this).stop().fadeTo('slow', 1.0); }); }); $(document).ready(function(){ $(".forgotton").hover(function() { $(this).stop().fadeTo('slow', 0.5); },function(){ $(this).stop().fadeTo('slow', 1.0); }); }); //-------------------------------- SOCIAL FADES $(document).ready(function(){ $(".twitter").hover(function() { $(this).stop().fadeTo('slow', 0.7); },function(){ $(this).stop().fadeTo('slow', 1.0); }); }); $(document).ready(function(){ $(".facebook").hover(function() { $(this).stop().fadeTo('slow', 0.7); },function(){ $(this).stop().fadeTo('slow', 1.0); }); }); $(document).ready(function(){ $(".rss").hover(function() { $(this).stop().fadeTo('slow', 0.7); },function(){ $(this).stop().fadeTo('slow', 1.0); }); }); //------------------------------------ EMAIL DETAILS $(function() { $(".submit").click(function() { var name = $("#name").val(); var email = $("#email").val(); var comment = $("#comment").val(); var dataSsortingng = 'name='+ name + '&email=' + email + '&comment=' + comment; if(name=='' || email=='' || comment=='') { alert('Please Give Valid Details'); } else { $("#flash").show(); $("#flash").fadeIn(400).html(' Loading Comment...'); $({ type: "POST", url: "comment.php", data: dataSsortingng, cache: false, success: function(html){ $("ol#update").append(html); $("ol#update li:last").fadeIn("slow"); document.getElementById('email').value=''; document.getElementById('name').value=''; document.getElementById('comment').value=''; $("#name").focus(); $("#flash").hide(); } }); } return false; }); }); // ----------------------------- Profile Email Check $(document).ready(function() { //the min chars for username var min_chars = 3; //result texts var characters_error = 'Minimum amount of chars is 3'; var checking_html = 'Checking...'; //when button is clicked $('#check_username_availability').click(function(){ //run the character number check if($('#username').val().length < min_chars){ //if it's bellow the minimum show characters_error text ' $('#username_availability_result').html(characters_error); }else{ //else show the cheking_text and run the function to check $('#username_availability_result').html(checking_html); check_availability(); } }); }); //function to check username availability function check_availability(){ //get the username var username = $('#username').val(); //use to run the check $.post("lib/-checkemail.php", { username: username }, function(result){ //if the result is 1 if(result == 1){ //show that the username is available $('#username_availability_result').html(username + ' is not registered. They will be sent an email to invite them to sign up.'); }else{ //show that the username is NOT available $('#username_availability_result').html(username + ' is already registered. They will be notified of their invitation via email.'); } }); } function showImage(){ document.getElementById('overlay').style.visibility='visible'; } document.getElementById('.videofullme').style['-webkit-transform'] = 'rotate(90deg)'; document.getElementById('.videofullme').style.webkitTransform = 'rotate(90deg)'; document.getElementById('.videofullme').style.WebkitTransform = 'rotate(90deg)'; 

Votre référence à jquery.js ne charge pas.

Utilisez Firebug pour savoir pourquoi.

Examinez firebug ou la console de développement pour savoir si votre jQuery est en cours de chargement. Par exemple, le serveur de votre application modifie l’URL ou vous vous référez à ce JS depuis une sous-page (essayez de modifier les URL en racine relative , c’est-à-dire commençant par / ).

En outre, dans Firebug, vous devriez être capable de poster une ligne sur laquelle une erreur se produit – peut-être qu’il existe un autre problème.

Et…

 $({ // <-- Shouldn't this be $.ajax ? type: "POST", url: "comment.php", data: dataString, cache: false, success: function(html){ //... 

modifier

Existe-t-il une jquery.js jsfunctions.js jQuery.noConflict() dans vos jquery.js ou jsfunctions.js ? J'espère que non: P Pour éviter cela, vous pouvez utiliser jQuery(function($){ /* ... */ }); ou (function($){ /* ... */ }(jQuery)) . Bien sûr, en supposant que vous avez des problèmes UNIQUEMENT avec $ , pas jQuery ;]

Peut-être que vous avez une autre bibliothèque javascript chargée avec jquery comme prototype, essayez d’utiliser jquery.noconflict et utilisez également la fonction ready une fois.