Javascript 未定义未捕获引用错误$

Javascript 未定义未捕获引用错误$,javascript,jquery,Javascript,Jquery,我收到以下错误,并且我的站点上没有javascript: 未定义未捕获引用错误$ 它正在工作,但我现在看不出哪里出了问题。有人能帮忙吗 我在这里链接到javascript文件: <script src="js/jquery.js" type="text/javascript"></script> <script src="js/jsfunctions.js" type="text/javascript"></script> 下面是js

我收到以下错误,并且我的站点上没有javascript: 未定义未捕获引用错误$

它正在工作,但我现在看不出哪里出了问题。有人能帮忙吗

我在这里链接到javascript文件:

    <script src="js/jquery.js" type="text/javascript"></script>
<script src="js/jsfunctions.js" type="text/javascript"></script>

下面是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 dataString = 'name='+ name + '&email=' + email + '&comment=' + comment;

    if(name=='' || email=='' || comment=='')
     {
    alert('Please Give Valid Details');
     }
    else
    {
    $("#flash").show();
    $("#flash").fadeIn(400).html('<img src="../img/-loader.gif" align="absmiddle">&nbsp;<span class="loading">Loading Comment...</span>');
$({
        type: "POST",
  url: "comment.php",
   data: dataString,
  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)';
/------------------------------菜单移动
$(文档).ready(函数(){
$(“.one”).hover(函数(){
$(this.stop().animate({marginTop:“5px”},200);
},函数(){
$(this.stop().animate({marginTop:“0px”},300);
});
});
$(文档).ready(函数(){
$(“.two”).hover(函数(){
$(this.stop().animate({marginTop:“5px”},200);
},函数(){
$(this.stop().animate({marginTop:“0px”},300);
});
});
$(文档).ready(函数(){
$(“.three”).hover(函数(){
$(this.stop().animate({marginTop:“5px”},200);
},函数(){
$(this.stop().animate({marginTop:“0px”},300);
});
});
$(文档).ready(函数(){
$(“.four”).hover(函数(){
$(this.stop().animate({marginTop:“5px”},200);
},函数(){
$(this.stop().animate({marginTop:“0px”},300);
});
});
$(文档).ready(函数(){
$(“.5”).hover(函数(){
$(this.stop().animate({marginTop:“5px”},200);
},函数(){
$(this.stop().animate({marginTop:“0px”},300);
});
});
$(文档).ready(函数(){
$(“.plane”).stop().animate({marginRight:“2000px”},40000);
});
$(文档).ready(函数(){
$(“.signinbutton”).hover(函数(){
$(this.stop().fadeTo('slow',0.5);
},函数(){
$(this.stop().fadeTo('slow',1.0);
});
});
$(文档).ready(函数(){
$(“.forgotton”).hover(函数(){
$(this.stop().fadeTo('slow',0.5);
},函数(){
$(this.stop().fadeTo('slow',1.0);
});
});
//--------------------------------社会衰退
$(文档).ready(函数(){
$(“.twitter”).hover(函数(){
$(this.stop().fadeTo('slow',0.7);
},函数(){
$(this.stop().fadeTo('slow',1.0);
});
});
$(文档).ready(函数(){
$(“.facebook”).hover(函数(){
$(this.stop().fadeTo('slow',0.7);
},函数(){
$(this.stop().fadeTo('slow',1.0);
});
});
$(文档).ready(函数(){
$(“.rss”).hover(函数(){
$(this.stop().fadeTo('slow',0.7);
},函数(){
$(this.stop().fadeTo('slow',1.0);
});
});
//------------------------------------电子邮件详细信息
$(函数(){
$(“.submit”)。单击(函数(){
var name=$(“#name”).val();
var email=$(“#email”).val();
var comment=$(“#comment”).val();
var dataString='name='+name+'&email='+email+'&comment='+comment;
如果(姓名=“”| |电子邮件=“”| |评论=“”)
{
警报(“请提供有效的详细信息”);
}
其他的
{
$(“#flash”).show();
$(“#flash”).fadeIn(400.html('loadingcomment…');
$({
类型:“POST”,
url:“comment.php”,
数据:dataString,
cache:false,
成功:函数(html){
$(“更新”).append(html);
$(“ol#update li:last”).fadeIn(“slow”);
document.getElementById('email')。值='';
document.getElementById('name')。值='';
document.getElementById('comment')。值=“”;
$(“#名称”).focus();
$(“#flash”).hide();
}
});
}
返回false;
});
});
//-------------------------------个人资料电子邮件检查
$(文档).ready(函数(){
//用户名的最小字符数
var min_chars=3;
//结果文本
var characters_error='字符的最小数量为3';
var checking_html='checking…';
//单击按钮时
$(“#检查_用户名_可用性”)。单击(函数(){
//运行字符号检查
if($('#username').val().length<最小字符){
//如果低于最小显示字符数\u错误文本'
$('#用户名\可用性\结果').html(字符\错误);
}否则{
//否则,显示cheking_文本并运行函数进行检查
$('#用户名\可用性\结果').html(检查\ html);
检查可用性();
}
});
});
//用于检查用户名可用性的函数
功能检查_可用性(){
//获取用户名
var username=$('#username').val();
//用于运行检查
$.post(“lib/-checkemail.php”,{username:username},
功能(结果){
//如果结果是1
如果(结果==1){
//显示用户名可用
$(“#用户名\可用性\结果”).html(用户名+”未注册。他们将收到一封电子邮件,邀请他们注册。”;
}否则{
//显示用户名不可用
$(“#用户名\可用性\结果”).html(用户名+”已注册。他们将通过电子邮件收到邀请通知。“);
}
});
}
函数showImage(){
document.getElementById('overlay').style.visibility='visible';
}
document.getElementById('.videofullme').style['-webkit transform']='rotate(90deg)';
document.getElementById('.videofullme').style.WebKittTransform='旋转(90度)';
document.getElementById('.videofullme').style.WebKittTransform='旋转(90度)';

未加载对
jquery.js
的引用


使用Firebug找出原因。

可能是您有一些其他javascript库加载了类似于jquery的原型,请尝试使用jquery.noconflict并使用ready函数一次

查看firebug或开发人员控制台,以了解您的jQuery是否正在加载-可能您的应用程序服务器更改了url,或者您正在从子页面引用此JS(尝试将url更改为根相对,即从
/
开始)

此外,在firebug中,您应该能够发布一行
$({                       //    <-- Shouldn't this be $.ajax ?
    type: "POST",
    url: "comment.php",
    data: dataString,
    cache: false,
    success: function(html){
        //...