谁能帮助我,我是jquery的新手。我为我的项目添加了三个 jquery 插件。
我想知道是否可以在单页中有多个 jquery?
告诉我这个文件会做什么:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
请清楚说明这些文件是否相同,库和版本之间有什么区别?有什么区别吗?
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js">
1.对于球的反弹:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script>
$(document).ready(function() {
$("ul.menu li,ul.social_media li").mouseenter(function () {
$(this).effect("bounce", { times:2 }, 400);
});
});
</script>
2.对于标签内容:
<script src="javascript/jquery-1.1.3.1.pack.js" type="text/javascript"></script>
<script src="javascript/jquery.history_remote.pack.js" type="text/javascript"></script>
<script src="javascript/jquery.tabs.pack.js" type="text/javascript"></script>
<link rel="stylesheet" href="css/jquery.tabs.css" type="text/css" media="print, projection, screen">
<script type="text/javascript">
$(function() {
$('#container-5').tabs({ fxSlide: false, fxFade: false, fxSpeed: 'normal' });
});
</script>
3.滚动:
<script src="js/jquery.thumbnailScroller.js"></script>
<script src="js/jquery-ui-1.8.13.custom.min.js"></script>
<link href="js/jquery.thumbnailScroller.css" rel="stylesheet" />
<script>
(function($){
window.onload=function(){
$("#tS1").thumbnailScroller({
scrollerType:"hoverAccelerate",
scrollerOrientation:"horizontal",
scrollEasing:"easeOutCirc",
scrollEasingAmount:400,
acceleration:2,
scrollSpeed:400,
noScrollCenterSpace:4,
autoScrolling:0,
autoScrollingSpeed:1000,
autoScrollingEasing:"easeInOutQuad",
autoScrollingDelay:20
});
$("#tS2").thumbnailScroller({
scrollerType:"clickButtons",
scrollerOrientation:"horizontal",
scrollSpeed:2,
scrollEasing:"easeOutCirc",
scrollEasingAmount:600,
acceleration:4,
scrollSpeed:800,
noScrollCenterSpace:10,
autoScrolling:0,
autoScrollingSpeed:2000,
autoScrollingEasing:"easeInOutQuad",
autoScrollingDelay:500
});
$("#tS3").thumbnailScroller({
scrollerType:"hoverPrecise",
scrollerOrientation:"vertical",
scrollSpeed:2,
scrollEasing:"easeOutCirc",
scrollEasingAmount:800,
acceleration:4,
scrollSpeed:800,
noScrollCenterSpace:10,
autoScrolling:0,
autoScrollingSpeed:2000,
autoScrollingEasing:"easeInOutQuad",
autoScrollingDelay:500
});
}
})(jQuery);
</script>
这是我的代码。帮助我避免此代码中的冲突。