两个jquery小部件相互干扰。原因可能是什么?
我是编程高手。 我的站点的内置slider Jquery正在干扰我在外部添加的另一个slider Jquery。它们单独工作很好,但当放在一起时,内置fp滑块不起作用,而外部滑块保持良好的工作状态。经过一些搜索,我觉得它可能能够通过编辑外部滑块的一些功能得到修复 *以下是我的外部插件中的函数*两个jquery小部件相互干扰。原因可能是什么?,jquery,slider,Jquery,Slider,我是编程高手。 我的站点的内置slider Jquery正在干扰我在外部添加的另一个slider Jquery。它们单独工作很好,但当放在一起时,内置fp滑块不起作用,而外部滑块保持良好的工作状态。经过一些搜索,我觉得它可能能够通过编辑外部滑块的一些功能得到修复 *以下是我的外部插件中的函数* <script src="http://,,,/jquery-latest.js"></script> <script src="http://,,,,/js/pluso
<script src="http://,,,/jquery-latest.js"></script>
<script src="http://,,,,/js/plusone.js" type="text/javascript"></script>
<script type="text/javascript">
jQuery(document).ready(function () {
jQuery("#facebook_right").hover(function ()
{jQuery(this).stop(true,false).animate({right: 0}, 500); },
function (){
jQuery("#facebook_right").stop(true,false).animate({right: -239},500);});
jQuery("#twitter_right").hover(function (){
jQuery(this).stop(true,false).animate({right: 0},500);},function (){
jQuery("#twitter_right").stop(true,false).animate({right: -254},500);});
jQuery("#google_plus_right").hover(function(){
jQuery(this).stop(true,false).animate({right: 0},500);},function()
{jQuery("#google_plus_right").stop(true,false).animate({right: -294},500);});
jQuery("#feedburner_right").hover(function(){
jQuery(this).stop(true,false).animate({right: 0}, 500);},function()
{jQuery("#feedburner_right").stop(true,false).animate({right: -304 }, 500);});
jQuery("#youtube_right").hover(function(){
jQuery(this).stop(true,false).animate({right: 0},500);},function(){
jQuery("#youtube_right").stop(true,false).animate({right:-304},500);});});
</script>
jQuery(文档).ready(函数(){
jQuery(“#facebook_right”).hover(函数()
{jQuery(this).stop(true,false).animate({right:0},500);},
函数(){
jQuery(“#facebook_right”).stop(true,false).animate({right:-239},500);});
jQuery(“#twitter_right”).hover(函数(){
jQuery(this).stop(true,false).animate({right:0},500);},函数(){
jQuery(“#twitter_right”).stop(true,false).animate({right:-254},500);});
jQuery(“#谷歌加右”).hover(函数(){
jQuery(this).stop(true,false).animate({right:0},500);},function()
{jQuery(“#google_plus_right”).stop(true,false)。动画({right:-294},500);});
jQuery(“#feedburner_right”).hover(函数(){
jQuery(this).stop(true,false).animate({right:0},500);},function()
{jQuery(“#feedburner_right”).stop(true,false)。动画({right:-304},500);});
jQuery(“#youtube_right”).hover(函数(){
jQuery(this).stop(true,false).animate({right:0},500);},function(){
jQuery(“#youtube_right”).stop(true,false).animate({right:-304},500);});
没关系。我只是通过将外部滑块的'jQuery(document).ready(function(){'中的函数替换为我的站点模板的'jQuery(document).ready(function(){'中的函数,并通过模板引用.js src文件来修复这个错误。因此,只为小部件保留了div。它起作用了