我需要帮助解决视频播放器和花式盒之间的jquery冲突?

时间:2013-10-09 08:05:10

标签: javascript jquery fancybox conflict

我需要帮助来解决视频播放器jquery和花式盒子jquery之间的jquery冲突问题?

视频播放器脚本

<script src="videoplayer/videos/video.js"></script>

<script type="text/javascript" src="
http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>

<script src="videoplayer/js/jquery.easing.1.3.js" type="text/javascript"></script>

Fancy Box Scripts

<script type="text/javascript" src="jquery-1.10.1.min.js"></script>
<script type="text/javascript" src="jquery.mousewheel-3.0.6.pack.js">   </script>
<script type="text/javascript" src="jquery.fancybox.js?v=2.1.5"></script>
<script type="text/javascript" src="jquery.fancybox-buttons.js?v=1.0.5"></script>
<script type="text/javascript" src="jquery.fancybox-thumbs.js?v=1.0.7"></script>
<script type="text/javascript" src="jquery.fancybox-media.js?v=1.0.6"></script>

问题

jquery.easing.1.3.js script conflict with fancybox lightbox jquery? 

when i used this method then video player not working properly  

<script src="videoplayer/js/jquery.easing.1.3.js" type="text/javascript"></script>

<script type="text/javascript" language="javascript">
var jq = jQuery.noConflict();
</script>

1 个答案:

答案 0 :(得分:0)

如果两个库之间存在冲突,请尝试

$.noConflict();

jQuery.noConflict();

有关noConflict的更多信息:http://api.jquery.com/jQuery.noConflict/