我正在使用手风琴,它在加载时具有灰度图像,并且在鼠标悬停时图像以真实颜色显示。我的脚本中哪里有冲突的 J 查询.. 获取error : $ is not a function
<script type="text/javascript" src="js/jquery-1.4.3.min.js"></script>
<script type="text/javascript" src="js/kwicks.js"></script>
<script src="js/greyScale.js"></script>
<script>
$j = jQuery.noConflict();
$j(function () {
$j('.greyScale').hide().fadeIn(1000); // fade in the grayscaled images to avoid visual jump
});
$j(window).load(function () {
// user window.load to ensure images have been loaded
$('.greyScale').greyScale({
fadeTime: 500
// call the plugin with non-defult fadeTime (default: 400ms)
});
});
</script>
<script type="text/javascript">
$().ready(function () {
$('.kwicks').kwicks({
max: 535,
spacing: 10,
sticky: false
});
});
</script>